/**
 * Password Strength Meter Component Styles
 */

/* Requirements List */
.password-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.75rem;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

.password-requirement .requirement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.password-requirement .requirement-icon svg {
    width: 16px;
    height: 16px;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.password-requirement .requirement-icon .check-mark {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Met requirement state */
.password-requirement.met {
    color: #10b981;
}

.password-requirement.met .requirement-icon svg {
    color: #10b981;
}

.password-requirement.met .requirement-icon .check-mark {
    opacity: 1;
}

.password-requirement .requirement-text {
    flex: 1;
}

/* Strength Bar Container */
.password-strength-container {
    margin-top: 0.75rem;
}

.password-strength-bar {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

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

/* Strength levels */
.strength-bar-fill.weak {
    background-color: #ef4444;
}

.strength-bar-fill.medium {
    background-color: #f59e0b;
}

.strength-bar-fill.strong {
    background-color: #10b981;
}

/* Strength text */
.strength-text {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.strength-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.strength-label-text {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Dark theme support */
body.dark-mode .password-requirement {
    color: #9ca3af;
}

body.dark-mode .password-requirement.met {
    color: #34d399;
}

body.dark-mode .password-requirement .requirement-icon svg {
    color: #4b5563;
}

body.dark-mode .password-requirement.met .requirement-icon svg {
    color: #34d399;
}

body.dark-mode .password-strength-bar {
    background-color: #374151;
}

body.dark-mode .strength-label-text {
    color: #9ca3af;
}
