/* Définitions des variables pour la cohérence (si non incluses via style.css) */
/* Supposons que style.css contient déjà: */
:root {
    --primary-color: forestgreen;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

/* -------------------------------------- */
/* --- Styles spécifiques à la Connexion --- */
/* -------------------------------------- */

/* Centrage de la page et couleur de fond */
body {
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif; /* Assurez-vous d'utiliser votre police principale */
}

.login-container {
    width: 100%;
    max-width: 400px; /* Taille maximale pour le formulaire */
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* En-tête de la boîte de connexion */
.login-header {
    margin-bottom: 30px;
}

.login-logo {
    width: 80px; /* Taille du logo */
    height: auto;
    margin-bottom: 10px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

/* Formulaire */
.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.input-field {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 10px;
    background-color: #fff;
}

.input-field i {
    color: #999;
    margin-right: 10px;
}

.input-field input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 5px 0;
    font-size: 1rem;
    width: 100%; /* Important pour que l'input remplisse l'espace restant */
}

/* Bouton de connexion */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.btn-login:hover {
    background-color: #1e7145; /* Vert légèrement plus foncé au survol */
}

/* Lien mot de passe oublié */
.forgot-password {
    margin-top: 20px;
    font-size: 0.9rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* --- Responsive minimal --- */
@media (max-width: 500px) {
    .login-box {
        padding: 30px 20px;
    }
}