/* Styles pour la page de connexion */

.auth-header {
    padding: 15px 0 5px 0; /* Réduction du padding vertical */
    text-align: center;
}

.auth-header h1 {
    /* Appliquer un dégradé au texte */
    background: linear-gradient(45deg, #07264D, #31A13F); /* Dégradé Bleu Nuit vers Vert Émeraude */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 5px; /* Espace réduit sous le titre */
}

.auth-header img {
    display: block; /* Assurer que l'image est de type bloc pour que margin auto fonctionne */
    margin: 0 auto 10px auto; /* Marge réduite sous le logo */
    max-height: 80px; /* Taille légèrement plus compacte */
    transition: transform 0.3s ease-in-out; /* Ajouter un effet de survol subtil */
}

.auth-header img:hover {
    transform: scale(1.05);
}

.auth-header p.text-muted {
    color: #2c4a70; /* Une nuance plus claire de #07264D pour le texte secondaire */
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0; /* Suppression de la marge par défaut du paragraphe */
}
/* Agrandir les champs de formulaire */
.form-control {
    height: 45px !important; /* Réduit la hauteur des champs de formulaire */
    font-size: 1rem !important; /* Taille de police légèrement augmentée pour une meilleure lisibilité */
    padding: 0.65rem 1rem !important; /* Ajuste le padding */
    border-radius: 8px !important;
    border: 2px solid #e2e8f0 !important;
    box-sizing: border-box; /* Important pour la cohérence de la taille */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-control:focus {
    border-color: #31A13F !important; /* Focus Vert */
    box-shadow: 0 0 0 0.2rem rgba(49, 161, 63, 0.15) !important;
}

/* Styles pour les labels */
.form-label {
    font-weight: 600;
    color: #07264D; /* Utiliser la couleur foncée du logo */
    margin-bottom: 8px;
}

/* Styles pour le bouton œil */
.input-group .btn-outline-secondary {
    border: 2px solid #e2e8f0 !important;
    border-left: none !important;
    background-color: #f7fafc !important;
    color: #718096 !important;
    border-radius: 0 8px 8px 0 !important;
    height: 45px; /* Assurer la même hauteur que le form-control */
    display: flex; /* Pour centrer l'icône */
    align-items: center;
    transition: all 0.15s ease-in-out !important;
}

.input-group .btn-outline-secondary:hover {
    background-color: #edf2f7 !important;
    border-color: #cbd5e0 !important;
    color: #4a5568 !important;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(7, 38, 77, 0.1) !important;
}

/* Ajuster le champ password pour qu'il s'aligne avec le bouton */
.input-group .form-control {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    height: 45px !important; /* Assurer la cohérence avec les autres champs */
    padding: 0.65rem 1rem !important; /* Ajuste le padding */
}

/* Styles pour le bouton de connexion */
.btn-primary {
    background-color: #07264D !important; /* Bleu Nuit pour le bouton principal */
    border-color: #07264D !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease-in-out !important; 
    height: 45px !important; /* Réduit la hauteur du bouton */
    box-shadow: 0 4px 12px rgba(7, 38, 77, 0.2);
}

.btn-primary:hover {
    background-color: #051a35 !important;
    border-color: #051a35 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 38, 77, 0.3) !important;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(7, 38, 77, 0.2) !important;
}

/* Style pour le lien mot de passe oublié */
.forgot-password-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    display: inline-block;
}

.forgot-password-link:hover {
    color: #07264D;
    text-decoration: underline;
}



/* Styles pour les messages d'erreur */
.alert-danger {
    border-radius: 8px !important;
    border: none !important;
    background-color: #fed7d7 !important;
    color: #c53030 !important;
    padding: 1rem 1.25rem; /* Plus de rembourrage */
    font-size: 0.95rem;
}

.invalid-feedback {
    color: #c53030 !important;
    font-size: 0.875rem !important;
}

/* Animation pour l'icône œil */
#togglePassword i {
    transition: transform 0.2s ease-in-out;
}

#togglePassword:hover i {
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 576px) {
    .form-control {
        height: 48px !important;
        font-size: 0.95rem !important;
    }

    .btn {
        height: 48px !important;
        font-size: 1rem !important;
    }

    .input-group .btn-outline-secondary {
        height: 48px !important;
    }

    .auth-header h1 {
        font-size: 1.8rem; /* Titre plus petit sur mobile pour gagner de l'espace */
    }
}

/* Alignement spécifique pour le mode Split-Screen sur Desktop */
@media (min-width: 992px) {
    .auth-header {
        text-align: left;
    }
    .auth-header img {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* Styles pour la carte */
.card {
    border: 1px solid rgba(7, 38, 77, 0.05) !important;
    border-radius: 16px !important; /* Rayon plus grand */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important; /* Ombre plus douce et plus étendue */
    overflow: hidden;
    background-color: white; /* Assurer un fond blanc */
}

.card-body {
    padding: 2.5rem !important; /* Plus de rembourrage à l'intérieur de la carte */
}

/* Centrage de la page de connexion */
body {
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e5ec 100%); /* Fond dégradé léger et subtil */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    padding: 20px; /* Ajouter un peu de rembourrage pour les petits écrans */
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        transform: translateY(40px); /* Commencer plus bas */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.7s ease-out forwards; /* Animation légèrement plus longue */
}