/**
 * Password Strength Meter Styles
 *
 * Visual styling for the real-time password strength indicator.
 * Uses color-coded feedback from red (weak) to green (strong).
 */

.password-strength {
    margin-top: 12px;
    transition: opacity 0.2s, max-height 0.3s;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.password-strength.visible {
    max-height: 200px;
    opacity: 1;
}

/* Strength bar container */
.strength-bar-container {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* The animated fill bar */
.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

/* Strength-based colors */
.strength-bar-fill.strength-weak {
    background: linear-gradient(90deg, #EF4444 0%, #F87171 100%);
}

.strength-bar-fill.strength-fair {
    background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
}

.strength-bar-fill.strength-good {
    background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%);
}

.strength-bar-fill.strength-strong {
    background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
}

/* Strength label */
.strength-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 20px;
}

.strength-label.strength-weak {
    color: #EF4444;
}

.strength-label.strength-fair {
    color: #F59E0B;
}

.strength-label.strength-good {
    color: #3B82F6;
}

.strength-label.strength-strong {
    color: #10B981;
}

/* Requirements checklist */
.strength-requirements {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.strength-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #6B7280;
    transition: color 0.2s;
}

.strength-requirements li.met {
    color: #10B981;
}

.strength-requirements li.unmet {
    color: #9CA3AF;
}

.strength-requirements .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    transition: background-color 0.2s, color 0.2s;
}

.strength-requirements li.met .check {
    background: #D1FAE5;
    color: #10B981;
}

.strength-requirements li.unmet .check {
    background: #F3F4F6;
    color: #9CA3AF;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .strength-requirements li {
        font-size: 12px;
    }

    .strength-requirements .check {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}
