/* auth.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}
.auth-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}
.tab-link {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    position: relative;
    transition: color 0.3s ease;
}
.tab-link.active {
    color: #6366f1;
}
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #6366f1;
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
}
.btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
}
.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Fichier: auth/auth.css */

/* ... (votre code existant) ... */

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



.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-align: center;
}


.message.success {
    background-color: #f0fdfa; /* Vert très clair */
    color: #0f766e; /* Vert foncé */
    border-color: #a7f3d0; /* Bordure vert clair */
}

/* Style spécifique pour les messages d'erreur */
.message.error {
    background-color: #fef2f2; /* Rouge très clair */
    color: #b91c1c; /* Rouge foncé */
    border-color: #fecaca; /* Bordure rouge clair */
}

/* Fichier: auth/auth.css */

/* ========================================================== */
/* NOUVEAUX STYLES POUR LE VALIDATEUR DE MOT DE PASSE (DESIGN AMÉLIORÉ) */
/* ========================================================== */

.password-validator {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Un peu plus d'espace */
    margin-top: -8px;
    margin-bottom: 18px;
    font-size: 0.875em; /* Légèrement plus petit */
}

.validator-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out; /* Transition douce pour la couleur et l'opacité */
}

/* --- État par défaut (NON VALIDÉ) --- */
.validator-item:not(.valid) {
    color: #ef4444; /* ROUGE pour l'icône */
    opacity: 0.7;   /* TRANSPARENCE pour l'ensemble (icône + texte) */
}

.validator-item:not(.valid) span {
    color: #475569; /* GRIS FONCÉ pour le texte, pour la lisibilité */
}

/* --- État VALIDÉ --- */
.validator-item.valid {
    color: #10b981; /* VERT pour l'icône */
    opacity: 1;     /* OPACITÉ COMPLÈTE */
}

.validator-item.valid span {
    color: #1e293b; /* NOIR (ou votre couleur de texte principale) */
}

.validator-item i {
    margin-right: 10px;
    font-size: 1.2em; /* Icône légèrement plus grande */
    width: 20px; /* Assure un alignement parfait */
    text-align: center;
}
