/* Page styles for templates/security/login.html.twig (moved out of the template so they are cached). */
/* === FOND ANIMÉ MODERNE === */
.login-bg {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1.5rem;
    margin-bottom: -3rem;
    min-height: calc(100dvh - 64px);
    padding: 2rem 0;
    background: radial-gradient(circle at 20% 20%, #b8d4ff 0%, #9fb3ff 25%, #7a8cff 70%, #6673ff 100%);
    animation: bgMove 12s ease-in-out infinite alternate;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animation fluide du fond */
@keyframes bgMove {
    0% { background-position: 0% 0%; background-size: 100% 100%; }
    50% { background-position: 100% 100%; background-size: 110% 110%; }
    100% { background-position: 0% 50%; background-size: 100% 100%; }
}

/* === Carte de login === */
.login-card {
    background: rgba(17, 24, 64, 0.42);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 420px;
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1.2s ease forwards;
}

/* Apparition douce */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card h2 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
}

/* === Champs === */
.login-card label {
    text-align: left;
    display: block;
    font-weight: 500;
    color: #f0f4ff;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.3rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-card input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* === Checkbox === */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #f1f4ff;
}

.remember-me input {
    margin-right: 0.5rem;
}

/* === Bouton === */
.btn-login {
    background: linear-gradient(90deg, #6f8cff, #7ba6f2, #9cb9ff);
    background-size: 200%;
    border: none;
    color: white;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(100, 140, 255, 0.4);
}

.btn-login:hover {
    background-position: 100% 0;
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(100, 140, 255, 0.5);
}

/* === Liens secondaires === */
.login-card .small-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
}

.login-card .small-text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

/* === Erreur === */
.alert {
    background: rgba(255, 71, 71, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 71, 71, 0.3);
    border-radius: 10px;
    padding: 0.7rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* === Responsive === */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.25rem;
        border-radius: 15px;
    }
    .login-card h2 {
        font-size: 1.5rem;
    }
}
@media (max-width: 576px) {
    .login-bg, .register-bg { align-items: flex-start; }
}
