/* Reset de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* Corps de la page */
body {
    background-color: #f4f4f4;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titre principal */
h1 {
    margin-bottom: 20px;
    color: #333;
}

/* Conteneur principal */
.formulaire {
    background-color: white;
    padding: 30px;
    margin: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

/* Champ d'information */
.formulaire p {
    margin-bottom: 20px;
    color: #555;
    font-size: 0.95rem;
}

/* Formulaire */
form fieldset {
    border: none;
    padding: 0;
}

/* Légende */
legend {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
}

/* Ligne de formulaire */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-row label {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.form-row input {
    flex: 2;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Conteneur des boutons */
.btn-div {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Boutons */
.btn-div input[type='submit'],
.btn-div input[type='reset'] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

/* Bouton "Se connecter" */
.btn-div input[type='submit'] {
    background-color: #007bff;
    color: white;
}

.btn-div input[type='submit']:hover {
    background-color: #0056b3;
}

/* Bouton "Réinitialiser" */
.btn-div input[type='reset'] {
    background-color: #e0e0e0;
    color: #333;
}

.btn-div input[type='reset']:hover {
    background-color: #c6c6c6;
}

/* Div erreur */
.erreur {
    display: flex;
    margin: 30px;
    padding: 20px;
    background-color: #ffe6e6;
    color: #a94442;
    border: 1px solid #a94442;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.erreur p {
    color: red;
}

/* Responsive */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row input {
        width: 100%;
        margin-top: 5px;
    }
}
