/* ===== LOGIN - Estilo TimeOps (Waves + Liquid Glass) ===== */

#loginScreen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Background con gradiente + waves */
.login-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-5);
    background: linear-gradient(135deg, #ffffff 0%, #b2ebf2 100%);
    background-attachment: fixed;
}

/* Contenedor de waves SVG */
.login-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 0;
    overflow: hidden;
}

.login-waves svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    animation: wave-drift 12s ease-in-out infinite;
}

.login-waves svg:nth-child(2) {
    bottom: -10px;
    animation-duration: 15s;
    animation-delay: -2s;
    opacity: 0.6;
}

.login-waves svg:nth-child(3) {
    bottom: -20px;
    animation-duration: 18s;
    animation-delay: -4s;
    opacity: 0.4;
}

@keyframes wave-drift {
    0%, 100% {
        transform: translateX(0) translateZ(0);
    }
    50% {
        transform: translateX(-25%) translateZ(0);
    }
}

/* Liquid Glass - Card del formulario */
.login-card {
    position: relative; /* Para posicionar el toggle de tema */
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-8);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 420px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-card:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Logo sobre fondo glass */
.login-card .login-header {
    text-align: center;
    margin-bottom: var(--spacing-7);
}

.login-card .login-logo {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Inputs con efecto glass sutil */
#loginScreen .form-group input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#loginScreen .form-group input::placeholder {
    color: rgba(15, 17, 21, 0.5);
}

#loginScreen .form-group input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

#loginScreen .form-group label {
    color: #0c4a6e;
    font-weight: 500;
}

/* Botón con estilo coherente */
#loginScreen .btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #0e7490;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#loginScreen .btn-primary:hover:not(:disabled) {
    background: #ffffff;
    color: #0a5d73;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mensaje de error con contraste (paleta semántica) */
#loginScreen #loginError {
    color: var(--accent-danger) !important;
    font-weight: 500;
}
