/* css/login_logout.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body.auth-body-bg { /* Appliquer à <body> si vous n'utilisez pas base.html */
    background-color: #f0f2f5;
    font-family: 'Roboto', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.auth-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Prend au moins 80% de la hauteur de la vue pour centrer verticalement */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Pour la page de déconnexion qui utilise base.html */
.logout-page-container {
    text-align: center; /* Centre le contenu du conteneur */
}

.auth-header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50; /* Même couleur que .accueil-title */
}

.auth-main-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-form-container {
    background-color: #ffffff;
    padding: 30px 40px; /* Plus de padding */
    border-radius: 12px; /* Bords arrondis comme les dashboard-card */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Ombre plus prononcée */
    width: 100%;
    max-width: 450px; /* Largeur maximale du formulaire */
    text-align: left; /* Aligner le texte à gauche à l'intérieur du formulaire */
}

.logout-message-box {
    text-align: center; /* Centrer le texte pour la boîte de message de déconnexion */
    padding: 40px;
}

.auth-title {
    font-size: 2em; /* Taille du titre */
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center; /* Centrer le titre */
    font-weight: 500;
}

.auth-title i {
    margin-right: 10px;
    color: #007bff; /* Icône en bleu */
}

.logout-message-box .auth-title i {
    color: #28a745; /* Icône en vert pour succès */
}

.form-group {
    margin-bottom: 20px; /* Espace entre les groupes de formulaire */
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057; /* Couleur de label */
    font-size: 0.95em;
}

.form-label i {
    margin-right: 8px;
    color: #007bff;
    width: 16px; /* Assurer un alignement constant */
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 12px 15px; /* Padding confortable */
    border: 1px solid #ced4da; /* Bordure standard */
    border-radius: 8px; /* Bords arrondis */
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-input:focus {
    border-color: #007bff; /* Couleur de focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Ombre de focus */
    outline: none;
}

.btn-auth-submit, .btn-auth-action {
    background-color: #007bff; /* Couleur principale des boutons */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Bouton pleine largeur */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Pour les liens stylés en boutons */
}

.btn-auth-submit i, .btn-auth-action i {
    margin-right: 8px;
}

.btn-auth-submit:hover, .btn-auth-action:hover {
    background-color: #0056b3; /* Couleur au survol */
    transform: translateY(-2px);
}

.btn-auth-secondary-action {
    background-color: #6c757d; /* Gris pour action secondaire */
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto; /* Pas pleine largeur */
    display: inline-flex; /* Pour aligner l'icône */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 10px; /* Espace au-dessus */
}

.btn-auth-secondary-action i {
    margin-right: 8px;
}

.btn-auth-secondary-action:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}


.auth-error-message {
    background-color: #f8d7da; /* Fond rouge clair pour les erreurs */
    color: #721c24; /* Texte rouge foncé */
    padding: 15px;
    border: 1px solid #f5c6cb; /* Bordure rouge clair */
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95em;
}

.auth-error-message p {
    margin: 0;
}

.auth-error-message i {
    margin-right: 8px;
}

.auth-info-message {
    color: #555;
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
}

.auth-info-message i {
    margin-right: 8px;
    color: #007bff;
}

.auth-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.auth-extra-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

.auth-footer {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.9em;
    color: #6c757d; /* Gris pour le footer */
}

/* Styles responsifs */
@media (max-width: 768px) {
    .auth-form-container {
        padding: 25px 30px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .auth-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .auth-title {
        font-size: 1.6em;
    }
    .form-input, .btn-auth-submit, .btn-auth-action {
        font-size: 0.95em;
        padding: 10px 12px;
    }
    .btn-auth-submit, .btn-auth-action {
        padding: 10px 15px;
    }
}
