/* login.css - TEMA TEAL (Basado en tu estructura original) */

:root {
    /* Nueva paleta de colores "Teal" */
    --bg-primary: #009688;         /* Teal Principal para el botón */
    --bg-button-hover: #00796b;    /* Teal más oscuro para el hover del botón */
    --bg-body: #f0f2f5;            /* Un fondo gris muy claro y moderno */
    --bg-card: #ffffff;           /* El contenedor del login ahora será blanco */
    --color-sombra: rgba(0, 0, 0, 0.1); /* Sombra suave y neutra */
    --text-primary: #333333;      /* Texto principal oscuro */
    --text-secondary: #888888;    /* Texto secundario/iconos gris */
    --text-label: #555555;        /* Color para las etiquetas (labels) */
}

html, body {
    height: 100%;
}

body {
    background: var(--bg-body);
    display: flex;
    justify-content: center; /* Descomentado para centrar vertical y horizontalmente */
    align-items: center;
}

.d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.d-none {
    display: none;
}

.version {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
}

/* Contenedor del Login */
#signin {
    width: 100%;
    background: var(--bg-card); /* Fondo blanco */
    margin: 50px 0;
    box-shadow: 0 4px 20px var(--color-sombra); /* Sombra más pronunciada */
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Bordes un poco más redondeados */
}

/* Título */
#signin .form-title {
    font: 500 16px/1 'Roboto', sans-serif;
    color: var(--text-primary); /* Texto oscuro */
    text-align: center;
    margin-bottom: 25px; /* Un poco más de espacio */
}

#signin .form-title h2 {
    color: var(--bg-primary); /* Título principal en color Teal */
}
#signin .form-title h5 {
    color: var(--text-label);
}

/* Campos de entrada */
#signin .input-field {
    position: relative;
    height: 50px;
    margin: 50px 0;
    transition: all 300ms;
}

#signin .input-field i {
    position: absolute;
    bottom: 28px;
    left: 15px;
    color: var(--text-secondary); /* Iconos en gris secundario */
    height: 0;
    visibility: hidden;
    font-size: 100%;
    transition: height 250ms;
}

#signin .input-field label {
    width: 100%;
    height: 100%;
    position: absolute;
    margin-top: 20px;
    left: 4px;
    font: 400 16px/1 'Roboto', sans-serif;
    color: var(--text-label); /* Etiqueta en gris */
    opacity: 1;
    transition: all 300ms;
}

#signin .input-field input {
    width: 100%;
    height: 4px;
    font: 500 16px/1 'Roboto', sans-serif;
    padding: 0 20px 0 50px;
    border: none;
    box-shadow: 0 2px 0 0 var(--text-secondary); /* Línea inferior en lugar de sombra */
    color: var(--text-primary); /* Texto del input oscuro */
    border-radius: 0; /* Sin borde redondeado para el estilo de línea */
    background-color: transparent; /* Fondo transparente */
    outline: 0;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 300ms;
}

/* Enlace de "olvidó contraseña" y versión */
#signin .forgot-pw {
    font: 600 14px/1 'Roboto', sans-serif;
    color: var(--bg-primary); /* Enlace en color Teal */
    text-decoration: none;
    text-align: center;
    margin: 0 0 30px 0;
    display: block;
    height: 20px;
}

/* Botón de Login */
#signin button.login {
    min-height: 50px; /* Un poco más bajo */
    font: 500 16px/1 'Roboto', sans-serif;
    width: 100%;
    padding: 15px; /* Ajuste de padding */
    display: block;
    background: var(--bg-primary); /* Fondo Teal */
    color: #FFF;
    border: none;
    border-radius: 5px; /* Bordes redondeados */
    outline: 0;
    cursor: pointer;
    position: relative; /* Cambiado de absolute a relative */
    margin-top: 30px;
    transition: all 0.3s ease;
}

#signin button.login:hover {
    background: var(--bg-button-hover); /* Teal más oscuro */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); /* Sombra sutil al pasar el ratón */
}


/* Animaciones al enfocar el input */
#signin .input-field input:focus {
    color: var(--text-primary);
    box-shadow: 0 3px 0 0 var(--bg-primary); /* Línea inferior se vuelve Teal y más gruesa */
}

#signin .input-field input:focus,
#signin .input-field input.not-empty {
    height: auto;
    padding: 14px 20px 14px 50px;
}

#signin .input-field input:focus+i,
#signin .input-field input.not-empty+i {
    font-size: 24px;
    bottom: 26px;
    height: 10px;
    visibility: visible;
    color: var(--bg-primary); /* Icono se vuelve Teal */
}

#signin .input-field input:focus+i+label,
#signin .input-field input.not-empty+i+label {
    font-size: 14px;
    margin-top: -15px;
    opacity: 1; /* Más opaco */
    color: var(--bg-primary); /* Etiqueta se vuelve Teal */
    animation: label 300ms 1;
}

@keyframes label {
    0% {
        margin-top: -15px;
    }
    50% {
        margin-top: -25px;
    }
    100% {
        margin-top: -15px;
    }
}

/* Clases de utilidad */
.mr-1 {
    margin-left: 10px;
}