
/* 1. Fondo Vivo y Tipografía */
body {
    font-family: 'Poppins', sans-serif;
    /* Gradiente más complejo y animado */
    background: linear-gradient(-45deg, #1a1c4b, #333880, #4a50b0, #24285b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Animación del fondo */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 2. Tarjeta Principal con Animación de Entrada */
.login-card {
    border-radius: 24px; /* Bordes extra suaves */
    overflow: hidden;
    width: 100%;
    max-width: 1050px;
    height: auto;
    max-height: calc(100vh - 40px);
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
    /* Animación fluida de entrada */
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Keyframes para la entrada de la tarjeta */
@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* 3. Botón de Asistencia (Estilo Glassmorphism) */
.btn-asistencia {
    background-color: rgba(255, 255, 255, 0.85);
    color: #333880;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-asistencia:hover {
    background-color: #333880;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(51, 56, 128, 0.3);
}

/* 4. Inputs Ultra Modernos (Soft Focus) */
.form-control {
    background-color: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px; /* Borde más amigable */
    padding-left: 1.2rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-control:focus {
    background-color: #ffffff;
    border-color: #333880;
    box-shadow: 0 10px 20px -5px rgba(51, 56, 128, 0.15), 0 0 0 4px rgba(51, 56, 128, 0.1);
    transform: translateY(-2px); /* Micro-salto al hacer clic */
}
.form-floating label {
    color: #94a3b8;
    padding-left: 0.7rem;
    font-weight: 500;
}

/* 5. Botón Call to Action (Glow Effect) */
.btn-login {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    padding: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(225, 29, 72, 0.39); /* Sombra lumínica */
}
.btn-login:hover {
    background: linear-gradient(135deg, #e11d48, #be123c);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.5);
    color: white;
}
.btn-login:active {
    transform: translateY(0); /* Se hunde al presionar */
}

/* Widget de Avisos Refinado */
#memo-widget-container {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #333880;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
#memo-widget-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Ojito de la contraseña */
#togglePassword {
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #94a3b8;
}
#togglePassword:hover {
    color: #333880 !important;
    transform: scale(1.1);
}
