/* Diseño de las páginas de acceso: iniciar sesión, recuperar cuenta y
   cambiar contraseña. Solo el aspecto: los campos, sus id y los scripts de
   validación de cada página son los de siempre. */
body {
    margin: 0;
    min-height: 100vh;
    background: #f3f6fc;
    font-family: Montserrat, system-ui, sans-serif;
    color: #0f1b33;
}
.login-pantalla { display: flex; flex-wrap: wrap; min-height: 100vh; }

/* Izquierda: la foto de Valparaíso con el azul de la línea encima. */
.login-foto {
    flex: 1 1 460px;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.login-foto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(8, 24, 72, .85), rgba(10, 16, 36, .55) 55%, rgba(31, 94, 255, .6));
}
.login-foto > * { position: relative; }
.login-logos { display: flex; gap: 12px; }
.login-logos img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.login-foto h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.1; margin: 8px 0 12px; }
.login-foto p { max-width: 440px; margin: 0; opacity: .92; }
.login-lugar { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: .9; }

/* Derecha: el formulario. */
.login-lado {
    flex: 1 1 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.caja-login, .caja-login-reset {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e1e7f2;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 24px 48px -28px rgba(15, 27, 51, .45);
}
.caja-login h2, .caja-login-reset h2 { font-weight: 700; font-size: 26px; margin: 0; }
.subtitulo { color: #56627d; margin: 6px 0 22px; }
.form-label { font-weight: 600; font-size: 14px; }
.form-control { height: 48px; border-radius: 12px; border-color: #d6deec; }
.form-control:focus { border-color: #1f5eff; box-shadow: 0 0 0 .2rem rgba(31, 94, 255, .18); }
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 48px; }
#togglePassword, .toggle-password-icon {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #56627d;
    cursor: pointer;
    border-radius: 10px;
}
#togglePassword:hover, .toggle-password-icon:hover { color: #1f5eff; }
.reset-pass, .enlace-volver { font-size: 13px; font-weight: 600; color: #1749d6; text-decoration: none; }
.reset-pass:hover, .enlace-volver:hover { text-decoration: underline; }
.btn-entrar {
    height: 50px;
    border-radius: 12px;
    border: 0;
    font-weight: 600;
    background: linear-gradient(135deg, #3b7bff, #0b3fd9);
}
.btn-entrar:hover { background: #0b3fd9; }
.btn-entrar:disabled { opacity: .75; }
.login-pie { font-size: 12px; color: #56627d; text-align: center; margin: 18px 0 0; }
.caja-login .alert, .caja-login-reset .alert { border-radius: 12px; font-size: 14px; }
.aviso-mayus { font-size: 13px; color: #92400e; margin-top: 6px; }
.form-check-input:checked { background-color: #1f5eff; border-color: #1f5eff; }
