* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Empêche le défilement si l'image est grande */
}

.login-container {
    display: flex;
    height: 100vh;
}

/* --- SECTION GAUCHE --- */
.login-left {
    flex: 0 0 50%; /* Fixe la largeur à exactement 50% */
    background-color: #ffffff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center; /* Centre le formulaire verticalement */
}

.top-icon {
    position: absolute;
    top: 25px;
    left: 25px;
}

.form-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 380px;
}

    .form-wrapper h1 {
        color: #2c3e50;
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 35px;
    }

.input-group {
    margin-bottom: 25px;
}

    .input-group label {
        display: block;
        font-size: 0.85rem;
        color: #7f8c8d;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .input-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ebedef;
        border-radius: 4px;
        outline: none;
        transition: border 0.3s;
    }

        .input-group input:focus {
            border-color: #80161a;
        }

.btn-submit {
    background-color: #80161a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: lowercase;
}

.info-alert {
    margin-top: 50px;
    background-color: #fff9e6;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .info-alert p {
        font-size: 0.8rem;
        color: #d4a017;
        line-height: 1.5;
    }
/* La carte blanche */
.user-info-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0; /* Bordure très légère comme sur l'image */
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Le titre USER DEMO */
.user-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.6rem;
}

/* Le mot "Score" en rouge */
.score-text-label {
    color: #80161a;
    font-weight: 700;
    font-size: 1rem;
}

/* La pillule bordeaux */
.score-pill-red {
    background-color: #80161a;
    color: white;
    padding: 8px 24px;
    border-radius: 50px; /* Forme capsule parfaite */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

/* Petit espace pour l'icône ballon */
.ms-2 {
    margin-left: 10px;
}
.check-mark {
    color: #d4a017;
    font-weight: bold;
}

/* --- SECTION DROITE --- */
.login-right {
    flex: 0 0 50%; /* Fixe la largeur à exactement 50% */
    background-color: #80161a; /* Couleur de secours */
    background-image: url('../img/login.png'); /* Votre image bordeaux */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.branding-wrapper {
    text-align: center;
    width: 100%;
    max-width: 450px; /* Limite la taille des logos au centre */
}

.main-logo {
    width: 80%; /* Le logo Neosys prend 80% du conteneur de 450px */
    max-width: 320px;
    height: auto;
    margin-bottom: 80px;
}

.event-branding {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.trophy-img {
    height: 160px; /* Taille contrôlée du trophée */
    width: auto;
}

.caf-logo-text {
    width: 220px; /* Taille contrôlée du texte CAF */
    height: auto;
}
/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .login-right {
        display: none;
    }

    .login-left {
        flex: 0 0 100%;
    }
}
/* Style du menu déroulant */
.custom-dropdown {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 8px;
    margin-top: 10px !important;
}

/* Style du lien de déconnexion */
.logout-link {
    color: #333;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 20px;
    transition: all 0.2s;
}

    /* Au survol : fond bordeaux et texte blanc */
    .logout-link:hover {
        background-color: #80161a !important;
        color: white !important;
    }

/* Alignement de l'icône profil */
.profile-icon {
    font-size: 32px;
    color: #80161a;
}