/* Styles spécifiques pour la page de login */
body {
    background-color: var(--header-bg); /* Utilise le fond foncé de l'entête pour toute la page */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* La page prend au moins 100% de la hauteur de la vue */
    margin: 0;
    padding: 20px; /* Ajoute un peu de padding pour les petits écrans */
    box-sizing: border-box; /* Inclut le padding dans la taille totale */
}

.login-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée sur fond sombre */
    width: 100%;
    max-width: 400px; /* Largeur maximale du formulaire */
    text-align: center;
}

.login-logo {
    /*margin-bottom: 30px;*/
    background-image: url("../img/login-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 100px; /* Ajustez la taille du logo sur la page de login */
}

.login-logo img {


    width: auto;
}

.login-container h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
}

.login-container .form-group {
    margin-bottom: 20px;
    text-align: left; /* Aligne les labels et inputs à gauche */
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.login-container .button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    margin-top: 10px;
}

.login-links {
    margin-top: 25px;
    font-size: 0.9em;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Ajustements pour les messages d'alerte */
.login-container .alert {
    margin-top: -15px; /* Réduit l'espace au-dessus des alertes */
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: left;
}

.animate-in {
    -webkit-animation: fadeIn .5s ease-in;
    animation: fadeIn .5s ease-in;
}
.animate-out {
    -webkit-transition: opacity .8s;
    transition: opacity .8s;
    opacity: 0;
}
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive pour petits écrans */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
}