/* Styles globaux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Fond clair */
    color: #333; /* Texte sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Conteneur principal */
.container {
    width: 100%;
    max-width: 400px; /* Limite la largeur du formulaire */
    background-color: #fff; /* Fond blanc */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
    padding: 20px;
}

/* Logo dans le formulaire */
.form-logo {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.form-logo img {
    width: 120px; /* Taille personnalisée pour le logo */
    height: auto;
}

/* Titre */
h1 {
    font-size: 1.8em;
    color: var(--primary-blue); /* Couleur principale */
    text-align: center;
    margin-bottom: 20px;
}

/* Label des champs */
label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* Champs de saisie */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-blue); /* Accentuation au focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 87, 217, 0.3); /* Ombre légère */
}

/* Bouton de connexion */
button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-green); /* Vert par défaut */
    color: #fff; /* Texte blanc */
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

button:hover {
    background-color: #fff; /* Fond blanc au survol */
    color: var(--primary-green); /* Texte vert */
    border: 2px solid var(--primary-green); /* Ajout d'une bordure verte */
}

/* Message d'erreur */
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: -10px; /* Place l'erreur plus proche */
    margin-bottom: 10px;
    text-align: left;
}
