/* --- Mise en page de la page d'authentification --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px); /* Hauteur de l'écran moins le header/footer */
    padding: 20px;
}

.auth-card {
    background: var(--card-bg, #fff);
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color, #e0e0e0);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    background: #f8f9fa;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
}

.auth-tab:hover { background: #e9ecef; }
.auth-tab.active {
    background: #fff;
    color: var(--primary, #0078D4);
    border-bottom: 3px solid var(--primary, #0078D4);
}

.auth-form {
    padding: 30px;
    display: none; /* Caché par défaut */
}

.auth-form.active {
    display: block; /* Affiché si actif */
}

.auth-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.msg-box {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
}
.msg-success { color: #0f5132; background-color: #d1e7dd; border: 1px solid #badbcc; }
.msg-error { color: #842029; background-color: #f8d7da; border: 1px solid #f5c2c7; }

/* --- Styles manquants pour les champs et boutons --- */
.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.auth-form label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.auth-form input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.auth-form input:focus {
    outline: none;
    border-color: #0078D4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.btn-primary {
    background-color: #0078D4;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: #005A9E;
}

/* Style du lien de retour dans la navbar */
.back-link {
    text-decoration: none;
    font-weight: bold;
    color: #0078D4;
    font-size: 16px;
    transition: 0.2s;
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-5px); /* Petit effet de mouvement au survol */
}