/* ========== VALIDATION VISUELLE ========== */

/* Champ valide */
.form-control.is-valid {
    border-color: #22c55e;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322c55e' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-. 63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

/* Champ invalide */
.form-control. is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position:  right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

/* Message de succès */
.validation-success {
    display: block;
    color: #22c55e;
    font-size: 13px;
    margin-top:  6px;
    font-weight: 500;
}

/* Messages d'erreur (déjà existant, améliorer) */
.validation-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top:  6px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform:  translateY(-10px);
    }
    to {
        opacity: 1;
        transform:  translateY(0);
    }
}

/* Exigences du mot de passe */
.password-requirements {
    margin-top: 12px;
    padding:  12px;
    background:  rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid #262626;
}

.requirement {
    font-size: 13px;
    color: #6b7280;
    padding: 4px 0;
    transition: color 0.3s;
}

.requirement. valid {
    color: #22c55e;
    font-weight: 500;
}

.requirement.invalid {
    color: #9ca3af;
}

/* Résumé de validation */
.validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-top:  24px;
    animation: slideDown 0.3s ease;
}

.validation-summary strong {
    display: block;
    color: #fca5a5;
    margin-bottom: 8px;
    font-size: 14px;
}

.validation-summary ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

. validation-summary li {
    color: #fca5a5;
    font-size: 13px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.validation-summary li::before {
    content: "•";
    position: absolute;
    left: 8px;
}

/* Animation de focus */
.form-control:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    transition: all 0.3s;
}