/* Réinitialisation de la marge et du padding pour le corps */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('../images/bibli.webp') no-repeat center center fixed;
    background-size: cover;
}

/* Section Login et Register */
#login, #register {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 8%;
    width: 100%;
}

/* Conteneur de formulaire */
.form-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* Titre du formulaire */
.form-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #d4af37;
}

/* Champs de saisie */
form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

form input:focus {
    border-color: #d4af37;
}

/* Bouton de soumission */
form button {
    background-color: #d4af37;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #b08b2d;
}

/* Lien sous le formulaire */
.form-container p {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.form-container p a {
    color: #d4af37;
    text-decoration: none;
}

.form-container p a:hover {
    text-decoration: underline;
}

/* Footer en bas de page prenant toute la largeur */
footer {
    background-color: #d4af37;
    width: 100vw; /* Prend toute la largeur de l'écran */
    text-align: center;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    position: fixed; /* Fixe le footer en bas de la fenêtre */
    bottom: 0;
    left: 0;
    box-sizing: border-box;
}

/* Responsive pour petits écrans */
@media (max-width: 600px) {
    .form-container {
        width: 90%;
        padding: 15px;
    }
    
    .form-container h2 {
        font-size: 20px;
    }

    form input {
        font-size: 13px;
    }

    form button {
        padding: 10px;
        font-size: 14px;
    }
}
