.password-strength-meter {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.progress-container {
    position: relative;
    padding: 10px 0;
}

.progress {
    height: 8px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent);
    background-size: 15px 15px;
    animation: moveStripes 1s linear infinite;
    opacity: 0.5;
}

/* Bouton toggle */
.toggle-requirements {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    color: rgba(255, 215, 0, 0.8);
    font-family: 'Crafty Girls', cursive;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.toggle-requirements:hover {
    color: rgba(255, 215, 0, 1);
}

.toggle-requirements i {
    transition: transform 0.3s ease;
}

.toggle-requirements.active i {
    transform: rotate(180deg);
}

/* Animation de la liste */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Crafty Girls', cursive;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 500px;
}

.password-requirements.collapsed {
    max-height: 0;
}

.password-requirements li {
    margin: 8px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    transform-origin: top;
}

.password-requirements li.valid {
    color: #00C851;
    opacity: 1;
}

.strength-title {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Crafty Girls', cursive;
}

.strength-title i {
    font-size: 1rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

.requirement-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
}

.requirement-icon i {
    font-size: 0.8rem;
    color: #ff4444;
    transition: all 0.3s ease;
}

.requirement-icon .icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,68,68,0.2) 0%, rgba(255,68,68,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* État validé */
.requirements-list li.valid .requirement-icon i {
    color: #00C851;
}

.requirements-list li.valid .requirement-icon .icon-glow {
    background: radial-gradient(circle, rgba(0,200,81,0.2) 0%, rgba(0,200,81,0) 70%);
    opacity: 1;
}

/* Styles responsives */
@media (max-width: 768px) {
    .password-strength-meter {
        padding: 0.6rem;
        margin-top: 0.4rem;
    }

    .strength-title {
        font-size: 0.85rem;
    }

    .requirements-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .requirements-list li {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
    .password-strength-meter {
        padding: 0.5rem;
    }

    .requirements-list {
        grid-template-columns: 1fr;
    }

    .requirement-icon {
        width: 18px;
        height: 18px;
    }

    .requirement-icon i {
        font-size: 0.75rem;
    }

    .requirements-list li {
        font-size: 0.75rem;
    }
}

/* Animation pour les changements d'état */
@keyframes validationPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.requirements-list li.valid .requirement-icon {
    animation: validationPulse 0.3s ease;
}

/* Style pour les exigences obligatoires */
.requirements-list li span::after {
    content: attr(data-mandatory);
    color: #FFD700;
    margin-left: 0.3rem;
    font-size: 0.8em;
}

/* Classes de force */
.strength-text.empty, .strength-rank.empty { color: #e0e0e0; }
.strength-text.invalid, .strength-rank.invalid { color: #ff4444; }
.strength-text.weak, .strength-rank.weak { color: #ffa700; }
.strength-text.medium, .strength-rank.medium { color: #ffeb3b; }
.strength-text.strong, .strength-rank.strong { color: #00C851; }
.strength-text.excellent, .strength-rank.excellent { color: #00C851; }

.strength-rank.invalid { background: rgba(255, 68, 68, 0.2); }
.strength-rank.weak { background: rgba(255, 167, 0, 0.2); }
.strength-rank.medium { background: rgba(255, 235, 59, 0.2); }
.strength-rank.strong { background: rgba(0, 200, 81, 0.2); }
.strength-rank.excellent { 
    background: linear-gradient(45deg, rgba(0, 200, 81, 0.2), rgba(0, 200, 81, 0.4));
    animation: rankPulse 2s infinite;
}

@keyframes rankPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Classes de force du mot de passe */
.progress-bar.empty { background-color: #e0e0e0; }
.progress-bar.invalid { background-color: #ff4444; }
.progress-bar.weak { background-color: #ffa700; }
.progress-bar.medium { background-color: #ffeb3b; }
.progress-bar.strong { background-color: #00C851; }

.password-requirements li:not(.valid) i {
    color: #ff4444;
}

.password-requirements li.valid i {
    color: #00C851;
    transform: scale(1.2);
}

/* Hover effects */
.password-requirements li:hover {
    transform: translateX(5px);
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark) {
    .password-strength-meter {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .progress {
        background: rgba(255, 255, 255, 0.05);
    }
} 