/* Password Strength Meter Styles */
#password-strength-meter {
    margin-top: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(220, 20, 60, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#password-strength-meter.active {
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.1);
}

/* Strength Bar */
.strength-bar-container {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: left;
}

.strength-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.4) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strength-bar-fill.animating::before {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Strength Levels */
.strength-bar-fill[data-level="0"] {
    width: 0%;
}

.strength-bar-fill[data-level="1"] {
    width: 20%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.strength-bar-fill[data-level="2"] {
    width: 40%;
    background: linear-gradient(90deg, #ff6600, #ff3300);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.strength-bar-fill[data-level="3"] {
    width: 60%;
    background: linear-gradient(90deg, #ffaa00, #ff8800);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.strength-bar-fill[data-level="4"] {
    width: 80%;
    background: linear-gradient(90deg, #88ff00, #66dd00);
    box-shadow: 0 0 15px rgba(136, 255, 0, 0.5);
}

.strength-bar-fill[data-level="5"] {
    width: 100%;
    background: linear-gradient(90deg, #00ff00, #00dd00, #00ff00);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 25px rgba(0, 255, 0, 0.6); }
    50% { box-shadow: 0 0 35px rgba(0, 255, 0, 0.8); }
}

/* Strength Info */
.strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.strength-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    transition: all 0.3s ease;
}

.strength-score {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Level-specific colors */
.strength-label[data-level="0"] { color: #666; }
.strength-label[data-level="1"] { color: #ff0000; }
.strength-label[data-level="2"] { color: #ff6600; }
.strength-label[data-level="3"] { color: #ffaa00; }
.strength-label[data-level="4"] { color: #88ff00; }
.strength-label[data-level="5"] { color: #00ff00; }

.strength-icon[data-level="1"] { background: rgba(255, 0, 0, 0.2); color: #ff0000; }
.strength-icon[data-level="2"] { background: rgba(255, 102, 0, 0.2); color: #ff6600; }
.strength-icon[data-level="3"] { background: rgba(255, 170, 0, 0.2); color: #ffaa00; }
.strength-icon[data-level="4"] { background: rgba(136, 255, 0, 0.2); color: #88ff00; }
.strength-icon[data-level="5"] { 
    background: rgba(0, 255, 0, 0.2); 
    color: #00ff00;
    animation: icon-pulse 1s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.requirement-item.met {
    opacity: 1;
    background: rgba(67, 181, 129, 0.1);
    border-color: rgba(67, 181, 129, 0.3);
    color: #43B581;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 10px;
    transition: all 0.3s ease;
}

.requirement-item.met .requirement-icon {
    background: #43B581;
    border-color: #43B581;
    color: white;
    animation: check-pop 0.3s ease;
}

@keyframes check-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Entropy Indicator */
.entropy-indicator {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
}

.entropy-indicator.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entropy-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.entropy-bar {
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.entropy-fill {
    height: 100%;
    background: linear-gradient(90deg, #666, var(--crimson));
    transition: width 0.3s ease;
}

/* Suggestions */
.strength-suggestions {
    margin-top: 10px;
    padding: 8px;
    background: rgba(220, 20, 60, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.2);
    display: none;
}

.strength-suggestions.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.suggestion-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .requirement-item {
        padding: 8px 12px;
    }
}