/* Login. theme.min.css se carga después: los selectores llevan .auth-wrapper para ganarle. */

/* Panel izquierdo: el logo queda centrado y contenido en el panel (antes iba con position:absolute y márgenes en %,
   y en pantallas medianas se salía sobre el formulario). */
.auth-wrapper .lavalite-bg { display: flex; align-items: center; justify-content: center; height: 100vh; overflow: hidden; background: #baa388; }
.auth-wrapper .lavalite-bg .lavalite-overlay { left: 0; }
.auth-wrapper .lavalite-bg .img-login { position: relative; z-index: 1; margin: 0; width: 70%; max-width: 520px; height: auto; object-fit: contain; }

.auth-wrapper .authentication-form { width: 80%; max-width: 380px; padding: 60px 0; }
.auth-wrapper .authentication-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-wrapper .authentication-form > p { color: #6c757d; margin-bottom: 26px; }
.auth-wrapper .authentication-form label { display: block; font-size: 12px; font-weight: 600; color: #52514e; margin-bottom: 5px; }

/* Campo con icono a la izquierda y, en la contraseña, botón de ver a la derecha. */
.auth-wrapper .authentication-form .login-campo { position: relative; }
.auth-wrapper .authentication-form .form-group .login-campo .form-control {
    height: 42px; padding: 0 42px 0 40px; border: 1px solid #d6d9de; border-radius: 6px; background: #fff;
    font-size: 14px; color: #272d36; transition: border-color .15s, box-shadow .15s;
}
.auth-wrapper .authentication-form .login-campo .form-control::placeholder { color: #a5a8ad; }
.auth-wrapper .authentication-form .login-campo .form-control:focus { border-color: #8a6a45; box-shadow: 0 0 0 3px rgba(186, 163, 136, .35); outline: none; }
.auth-wrapper .authentication-form .form-group .login-campo .form-control ~ i { top: 50%; left: 14px; transform: translateY(-50%); color: #8a8985; font-size: 15px; pointer-events: none; }
.auth-wrapper .authentication-form .form-group .login-campo .form-control:focus ~ i { color: #8a6a45; }
.auth-wrapper .authentication-form .login-ver-pass {
    position: absolute; top: 0; right: 0; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: #8a8985; cursor: pointer; border-radius: 0 6px 6px 0;
}
.auth-wrapper .authentication-form .login-ver-pass i { position: static; transform: none; font-size: 16px; }
.auth-wrapper .authentication-form .login-ver-pass:hover { color: #272d36; }
.auth-wrapper .authentication-form .login-ver-pass:focus-visible { outline: 2px solid #8a6a45; outline-offset: -4px; }
/* Oculta el "ojo" nativo de Edge para que no haya dos. */
.auth-wrapper .authentication-form input[type=password]::-ms-reveal { display: none; }

.auth-wrapper .authentication-form .sign-btn { margin-top: 26px; }
.auth-wrapper .authentication-form .sign-btn .btn { width: 100%; height: 42px; border-radius: 6px; font-weight: 600; }

/* Logo para teléfono (el panel café se oculta por debajo de 768px). */
.auth-wrapper .authentication-form .logo-centered { width: auto; margin: 0 0 28px; }
.auth-wrapper .authentication-form .logo-centered img { width: 150px; max-width: 60%; }

/* Pie "Copyright" fijo abajo: antes quedaba debajo del panel de 100vh y agregaba scroll vertical,
   y en el teléfono flotaba a media pantalla pegado al borde. */
body:has(.auth-wrapper) .footer {
    position: fixed; left: auto; right: 0; bottom: 0; z-index: 2;
    width: auto; margin: 0; padding: 8px 16px;
    background: transparent; border: 0; box-shadow: none;
    font-size: 12px; color: #8a8985;
}

@media (max-width: 767.98px) {
    .auth-wrapper .lavalite-bg { height: auto; }
    .auth-wrapper .authentication-form { width: auto; max-width: 400px; padding: 40px 20px 56px; }
    /* 16px evita el zoom automático de iOS al tocar el campo. */
    .auth-wrapper .authentication-form .form-group .login-campo .form-control { font-size: 16px; }
    body:has(.auth-wrapper) .footer { left: 0; text-align: center; background: #fff; }
}
