/* Estilos generales */
body {
    font-family: "DM Serif Text", serif;
    background: linear-gradient(135deg, #000000, #417bdd);
    /* Fondo degradado */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

h1 {
    text-align: center;
    font-family: "DM Serif Text", serif;
    font-size: 1.9em;
    color: black;
    font-weight: 600;
    animation: fadeIn 1s ease;
}

/* Contenedor del formulario */
form {
    padding: 5px;

    /* Bordes redondeados del contenedor */
    width: 100%;
    max-width: 100%;
    text-align: center;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

.error {
    font-size: 16px;
    color: black;
    text-align: center;
    animation: fadeIn 1s ease;
}

input {
    width: 167px;
    height: 21px;
    border-radius: 7px;
    border: none;
}

/* AnimaciÃ³n de entrada */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo */
.logo {
    width: 43%;
    /* AumentÃ© mÃ¡s el tamaÃ±o del logo */
    margin: 0 auto 11px;
    display: block;
    animation: fadeIn 1s ease;
}

/* AnimaciÃ³n suave para el logo */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ti­tulo */
.form h2 {
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    color: #333;
}

/* Campos de seleccion */
.form select {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 20px;
    /* Bordes redondeados */
    font-size: 1em;
    color: #555;
    background: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form select:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.3);
    outline: none;
}

/* Campos de entrada */
.form input {
    width: 96%;
    padding: 14px 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 20px;
    /* Bordes redondeados */
    font-size: 1em;
    color: #555;
    background: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.3);
    outline: none;
}

/* BotÃ³n */
button {
    width: 20%;
    height: auto;
    margin: 5px 1px;
    padding: 4px;
    background: #1e88e5;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    /* Bordes redondeados */
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
    background: #1565c0;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.form button:active {
    transform: scale(0.98);
}

/* Texto adicional */
.form p {
    margin-top: 20px;
    font-size: 0.95em;
    color: #666;
}

.form a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form a:hover {
    color: #1565c0;
}

.register-link {
    font-size: 16px;
    color: black;
    text-align: center;
    animation: fadeIn 1s ease;
}

.register-link a {
    font-size: 16px;
    color: black;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.register-link a:hover {
    font-size: 16px;
    color: #ffff10;
    font-weight: 900;
    text-align: center;
    text-decoration: underline;
    animation: fadeIn 1s ease;
}

/* Ajustes para dispositivos pequeÃ±os */
@media (max-width: 768px) {
    .form {
        padding: 35px;
    }

    .form h2 {
        font-size: 1.8em;
    }

    .form button {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .form {
        padding: 25px;
    }

    .form h2 {
        font-size: 1.6em;
    }

    .form input {
        font-size: 0.95em;
    }

    .form button {
        font-size: 0.95em;
    }
}