/* ========================================
   Validation Styles - Email & Password Strength - Premium Design
   ======================================== */

/* Indicateurs de validation générale */
.validation-indicator {
    margin-top: 0.5rem;
}

.validation-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.validation-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.6;
}

.validation-message.valid {
    color: #10d876;
    background: linear-gradient(135deg, rgba(16, 216, 118, 0.08) 0%, rgba(16, 216, 118, 0.04) 100%);
    border: 1px solid rgba(16, 216, 118, 0.15);
    box-shadow: 0 2px 8px rgba(16, 216, 118, 0.1);
}

.validation-message.invalid {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    box-shadow: none;
}

.validation-message i {
    font-size: 1rem;
}

/* États des champs de saisie - Supprimés pour email (pas de changement visuel) */

/* Indicateur de force du mot de passe - Version simplifiée */
.password-strength-indicator {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(60, 60, 60, 0.3);
}

/* Barre de force du mot de passe - Version simple */
.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(60, 60, 60, 0.4);
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.strength-fill.weak {
    background: linear-gradient(135deg, #ff5757 0%, #ff7979 100%);
    box-shadow: 0 0 20px rgba(255, 87, 87, 0.3);
}

.strength-fill.medium {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    box-shadow: 0 0 20px rgba(253, 203, 110, 0.3);
}

.strength-fill.strong {
    background: linear-gradient(135deg, #10d876 0%, #00b894 100%);
    box-shadow: 0 0 20px rgba(16, 216, 118, 0.3);
}

/* Texte de force - Version simple */
.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.strength-text.weak {
    color: #ff5757;
}

.strength-text.medium {
    color: #fdcb6e;
}

.strength-text.strong {
    color: #10d876;
}

/* Exigences du mot de passe - Version simple */
.requirements {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.requirement.met {
    color: #10d876;
}

.requirement i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

.requirement.met i {
    color: #10d876;
}

.requirement:not(.met) i {
    color: #ff5757;
}

/* Animations simples */
@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive design premium */
@media (max-width: 576px) {
    .requirements {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .requirement {
        font-size: 0.75rem;
        padding: 0.6rem;
    }
    
    .password-strength-indicator {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .validation-message {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .strength-text {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}

/* Focus amélioré pour l'accessibilité */
.validation-message:focus-visible,
.password-strength-indicator:focus-visible {
    outline: 2px solid rgba(255, 140, 0, 0.5);
    outline-offset: 2px;
}



/* États d'erreur spéciaux pour Symfony */
.modern-login-form input.is-invalid ~ .validation-indicator .validation-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    border-left-color: #ff6b6b;
}

/* Style pour les tooltips d'aide */
.validation-tooltip {
    position: relative;
    cursor: help;
}

.validation-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    color: #e8e8e8;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(80, 80, 80, 0.3);
    z-index: 1000;
}

.validation-tooltip:hover::after,
.validation-tooltip:focus::after {
    opacity: 1;
    visibility: visible;
}

/* Pas d'effets visuels pour la validation email */

/* Style pour focus keyboard navigation */
.requirement:focus-visible {
    outline: 2px solid rgba(16, 216, 118, 0.5);
    outline-offset: 2px;
}


