/* --- Styles de base & Reset --- */
* {
    box-sizing: border-box;
}

body.login-page-body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f4f5f7; /* Couleur de repli */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Section de Connexion (Pleine page avec fond) --- */
.login-section {
    flex: 1; /* Prend tout l'espace disponible sous le header */
    background-image: url('../../graphics/landing_page/background_landing_page.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* Le filtre "Premium" sur l'image de fond (Dégradé bleu/sombre) */
.login-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Un dégradé qui va du bleu evOrg vers un gris sombre, légèrement transparent */
    background: linear-gradient(135deg, rgba(0, 44, 94, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
    backdrop-filter: blur(5px); /* Floute légèrement l'image derrière */
    z-index: 1;
}

.login-card-wrapper {
    position: relative;
    z-index: 2; /* Pour que la carte soit au-dessus du filtre sombre */
    width: 100%;
    max-width: 440px; /* Largeur contenue pour un effet "carte" */
}

/* --- La Carte Blanche --- */
.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); /* Grande ombre douce */
}

/* En-tête de la carte */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header .overline-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #2b6b8c;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.login-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* --- Les Alertes (Erreurs) --- */
.alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
    display: flex;
    align-items: center; /* Centre l'icône avec le texte */
    gap: 12px;
    line-height: 1.5;
}

.alert-danger {
    background-color: #fff1f0;
    border: 1px solid #ffa39e;
    color: #a8071a;
}

.alert-locked {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    color: #ad4e00;
}

.alert i {
    font-size: 1.2rem;
}

/* --- Les Champs de Formulaire --- */
.form-fields {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* Les inputs text/password */
.form-control {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #bbb;
}

/* L'effet Premium quand on clique dans le champ */
.form-control:focus {
    background-color: #ffffff;
    border-color: #2b6b8c;
    outline: none;
    box-shadow: 0 0 0 4px rgba(43, 107, 140, 0.15); /* Belle aura bleue */
}

/* --- Le Bouton --- */
.form-actions {
    margin-top: 10px;
}

.btn-hero.btn-blue.w-100 {
    width: 100%;
    height: 55px;
    background-color: #2b6b8c; /* Bleu evOrg */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-hero.btn-blue.w-100:hover {
    background-color: #1e4e66;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 107, 140, 0.2);
}

/* --- Pied de la carte --- */
.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #777;
}

.login-footer a {
    color: #2b6b8c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #1e4e66;
    text-decoration: underline;
}

/* --- Mobile --- */
@media (max-width: 576px) {
    .login-section {
        padding: 40px 15px;
    }
    
    .login-card {
        padding: 40px 25px;
    }
    
    .login-title {
        font-size: 2rem;
    }
}