/**
 * Nom du fichier : auth.css
 * Description : Ce fichier CSS fournit un style responsive et esthétique pour les pages
 *               de connexion (login) et de réinitialisation du mot de passe (reset_password)
 *               du framework. Il inclut également une zone réservée pour afficher un logo en haut.
 *
 * Options éventuelles :
 *   - Responsive design pour s'adapter aux écrans mobiles et desktops.
 *   - Styles modernes et épurés pour les formulaires et les boutons.
 *
 * Exemples d'utilisation :
 *   - Inclure ce fichier dans les pages login.php et reset_password.php via une balise <link>.
 *     Exemple : <link rel="stylesheet" href="auth.css">
 *
 * Prérequis :
 *   - HTML5 et CSS3
 *
 * Auteur : Sylvain SCATTOLINI
 * Date de création / modification : 2025-02-XX
 * Version : 1.0
 */

 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Conteneur principal pour centrer le contenu */
.container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s ease-out forwards;
    /* L'animation démarre après 1 seconde (le temps du logo par exemple) */
    animation-delay: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zone pour le logo en haut */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 150px;
    height: auto;
}

/* Style du formulaire */
form {
    display: flex;
    flex-direction: column;
}

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

form input[type="email"],
form input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

form button {
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

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

/* Style pour les liens */
a {
    text-decoration: none;
    color: #007BFF;
    font-size: 14px;
    text-align: center;
    display: block;
    margin-top: 10px;
}

a:hover {
    text-decoration: underline;
}

/* Styles pour l'affichage de messages (par exemple, message flash) */
.message {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: green;
}

/* Responsive : ajustements pour les écrans étroits */
@media (max-width: 480px) {
    .container {
        margin: 20px;
        padding: 15px;
    }
    
    form input[type="email"],
    form input[type="password"] {
        font-size: 14px;
        padding: 8px;
    }
    
    form button {
        font-size: 14px;
        padding: 8px;
    }
}


/* Styles spécifiques à la gestion du profil */



.profile-form .form-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}
.profile-form .form-group label {
    flex: 0 0 100%;
    font-weight: bold;
    margin-right: 10px;
}
.profile-form form input[type="text"],
.profile-form .form-group input[type="email"],
.profile-form .form-group input[type="password"] {
    flex: 1 0 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0px;
    font-size: 14px;
}
.profile-form .form-group input[type="checkbox"] {
    margin-right: 5px;
}
.profile-form .form-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
    flex: 1;
}
.profile-form .form-group button:hover {
    background-color: #0056b3;
}
.message {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}
.message.error {
    color: red;
}
.message.success {
    color: green;
}