/* ########################### */
/* DANS style-logon.css */
/* ########################### */

/* --- 1. Style Global et Arrière-plan (Thème Administrateur Sombre) --- */

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a2e;
    /* Fond sombre, couleur admin */
    color: #e4e4e4;
    /* Texte clair par défaut */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- 2. Conteneur de la Fenêtre Modale (Centrage) --- */

.loginPopup {
    /* Le conteneur assure le centrage de l'élément */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.formPopup {
    /* Le conteneur du formulaire est centré par le loginPopup */
    max-width: 400px;
    width: 90%;

    /* Carte de connexion claire */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    /* Ombre prononcée */
    transition: transform 0.3s ease;
}

/* --- 3. Style du Formulaire --- */

.formContainer {
    padding: 30px;
    color: #333;
    /* Texte sombre à l'intérieur de la carte claire */
}

.formContainer h2 {
    text-align: center;
    color: #007bff;
    /* Couleur d'accent pour le titre */
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* --- 4. Étiquettes et Champs de Saisie --- */

.formContainer label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.95em;
    font-weight: bold;
}

.formContainer input[type="text"],
.formContainer input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    /* Inclut le padding dans la largeur */
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.formContainer input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* --- 5. Boutons --- */

.formContainer .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

/* Bouton principal (Log in) */
.formContainer .btn[type="submit"] {
    background-color: #007bff;
    color: white;
}

.formContainer .btn[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Bouton secondaire (Close/Cancel) */
.formContainer .cancel {
    background-color: #6c757d;
    /* Gris pour le secondaire */
    color: white;
    margin-top: 15px;
}

.formContainer .cancel:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* --- 6. Mobile et Petits Écrans --- */

@media (max-width: 500px) {
    .formPopup {
        margin: 20px;
    }

    .formContainer {
        padding: 20px;
    }
}