/* style.css */

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #2F3238;
    background-image: url('header.jpg'); /* Remplacez par le chemin de votre image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 20px;
    text-align: center;
    height: 300px; /* Hauteur ajustée pour correspondre à votre image */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Optionnel : Ajouter un overlay sombre pour améliorer la lisibilité du texte */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(47, 50, 56, 0.5); /* Overlay semi-transparent */
    z-index: 1;
}

/* S'assurer que le contenu du header est au-dessus de l'overlay */
header > * {
    position: relative;
    z-index: 2;
}

header img {
    max-height: 200px; /* Adjust as needed */
    margin-left: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-right: 20px;
}

header nav a:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

main {
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid red;
    background-color: #ffe6e6;
    border-radius: 4px;
}


/* Login Form Specific Styles */
.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.submit-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    align-self: center; /* Center the button */
    width: auto; /* Adjust width to content */
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #218838;
}

/* Styles pour les liens */
a {
    color: #007bff;
    text-decoration: none;
    margin: 10px 0;
    display: inline-block;
}

a:hover {
    text-decoration: underline;
}

/* Style pour les messages de succès */
.success-message {
    color: #28a745;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #28a745;
    background-color: #e8f5e9;
    border-radius: 4px;
}

/* Style pour le bouton de réinitialisation */
button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 15px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Style pour le lien "Mot de passe oublié" */
.forgot-password-link {
    text-align: right;
    margin-bottom: 15px;
    display: block;
    font-size: 14px;
}

/* Styles pour le conteneur des formulaires de réinitialisation */
.reset-form-container {
    text-align: center;
    margin-bottom: 20px;
}

/* Style pour les titres dans les formulaires */
.form-title {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Style pour le conteneur des boutons */
.button-container {
    margin-top: 20px;
    text-align: center;
}

/* Style pour le lien de retour */
.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    color: #666;
}

.back-link:hover {
    color: #333;
}

/* Registration Page Specific Styles */
/* You might want to add specific styles for the registration form if needed */

/* Responsive Design (Optional) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        min-height: 300px; /* Hauteur minimum pour mobile */
        padding: 10px;
    }

    header img {
        margin: 0 auto;
    }

    header nav {
        margin-top: 10px;
    }

    main {
        margin: 10px;
        padding: 10px;
    }
}