/* --- 1. Réinitialisation de base et Polices --- */
:root {
    --primary-color: #10b981; /* Bleu principal */
    --secondary-color: #0e9064; /* Bleu foncé pour le hover */
    --background-color: #f8f9fa; /* Arrière-plan clair */
    --card-background: #ffffff; /* Fond du formulaire */
    --text-color: #343a40; /* Couleur du texte */
    --error-color: #dc3545; /* Couleur des erreurs */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif; 
    background-color: var(--background-color);
    color: var(--text-color);
    /* Centrage complet du contenu sur la page */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* S'assurer qu'il prend toute la hauteur de la vue */
    padding: 20px; /* Espace autour du contenu */
}

/* --- 2. Style du Conteneur et du Formulaire --- */
.container {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%; /* Par défaut, prend toute la largeur */
    max-width: 400px; /* Limite maximale pour les grands écrans */
    text-align: center;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 2em;
    font-weight: 600;
}

.subtitle {
    margin-bottom: 25px;
    color: #6c757d;
   
}

/* --- 3. Champs de Formulaire (Inputs) --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none; /* Supprime l'outline par défaut du navigateur */
}

/* --- 4. Bouton de Soumission --- */
.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

.btn-submit:active {
    transform: translateY(1px); /* Effet de clic */
}

/* --- 5. Message d'Erreur --- */
.error-message {
    color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.1); /* Fond très léger */
    border: 1px solid var(--error-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
    font-weight: 500;
}

/* --- 6. Responsive Design (Adaptation aux écrans plus grands) --- */
/* Pour les écrans de taille moyenne (ex: tablettes) */
@media (min-width: 600px) {
    .container {
        padding: 40px;
    }

    h1 {
        font-size: 2.2em;
    }
}