/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}





/* Container principal */
.form-wrapper {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0px auto;
    margin-bottom: 40px;
}


/* Titre */
.form-wrapper h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Labels */
label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 5px;
}

/* Champs de formulaire */
.form-control {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

/* Focus sur les champs */
.form-control:focus {
    border-color: #007bff;
    outline: none;
}

/* Espacement pour chaque champ */
.mb-3 {
    margin-bottom: 20px;
}

/* Bouton de soumission */
button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Lien de connexion */
.login-link {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.login-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Styles pour le lien "Mot de passe oublié" */
.forgot-password {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Style pour le conteneur d'erreurs */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da; /* Couleur de fond rouge clair */
    color: #721c24; /* Couleur du texte rouge foncé */
    border: 1px solid #f5c6cb; /* Bordure rouge clair */
}

.alert-info {
    background-color: #d1ecf1; /* Couleur de fond bleu clair */
    color: #0c5460; /* Couleur du texte bleu foncé */
    border: 1px solid #bee5eb; /* Bordure bleu clair */
}

/* Liste des erreurs */
.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    list-style-type: disc;
}

/* Pour une meilleure lisibilité sur mobile */
@media (max-width: 768px) {
    .alert {
        font-size: 12px;
    }
}
