.card {
    background-color: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 440px;
    margin: 0 auto;
    padding: 2rem 2rem 1.5rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
    width: 100%;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #4b2f29;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #5b403a;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-control:focus {
    border-color: #a4877f;
    box-shadow: 0 0 0 0.15rem rgba(164, 135, 127, 0.25);
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
    background-color: #eee;
    border-color: #ccc;
}

.btn-primary,
.btn-success {
    background-color: #8b6659;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.7rem;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-success:hover {
    background-color: #6d5045;
}

.btn-outline-secondary {
    border-radius: 10px;
    font-size: 0.9rem;
    background-color: #f9f9f9;
}

.switch-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.switch-link a {
    color: #8b6659;
    text-decoration: none;
    font-weight: 500;
}

.switch-link a:hover {
    text-decoration: underline;
}

.alert {
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: #4e3c35;
}

.text-muted {
    font-size: 0.8rem;
}

.card .brand-header {
    background: linear-gradient(135deg, #e8dfd5, #f3f1ef);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1rem;
}

.brand-header span {
    font-weight: bold;
    color: #4d2c25;
    font-size: 1.2rem;
}

/* Animation pour le déplacement de l'arrière-plan */
@keyframes backgroundScroll {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

body {
    background: url('../images/tendance-mode-paris-fashion-week-rappeurs-hip-hop-amine-j-hope-bts-tyga-kid-cudi-doums-sik-k-ken.jpg') no-repeat center center;
    background-size: cover; /* 🧠 couvre tout sans déformer */
    background-attachment: fixed; /* optionnel si tu veux effet \"parallaxe\" */
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #f5f5f5; /* une couleur de secours si jamais l'image ne charge pas */
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: backgroundScroll 30s ease-in-out infinite;
}


/* Flou léger en overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    z-index: 0;
}

/* Style de base pour tous les spans erreurs */
span[id^="Err_"] {
    display: block;
    color: #b64949;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Quand le span N'EST PAS vide, on applique l'animation */
span[id^="Err_"]:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}