/* ===== SHARED PASSWORD STRENGTH / REQUIREMENT INDICATOR =====
   One shared component used identically by Registration, the Forgot
   Password reset step, Forced Password Change, and Profile Settings'
   Change Password form -- markup is produced by each page, but the
   behavior comes from the single js/password_strength.js script, so all
   four forms show the exact same design/behavior/validation instead of
   drifting independently (previously: Registration/Forgot Password had a
   green-checkmark checklist, Forced Password Change had its own separate
   checkmark checklist with slightly different CSS, and Profile Settings'
   Change Password had no live indicator at all). */

.pw-strength-meter {
    display: none;
    margin-top: 8px;
}

.pw-strength-meter.active {
    display: block;
}

.pw-strength-track {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.pw-strength-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: #dc3545;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-meter[data-level="fair"] .pw-strength-fill { background: #fd7e14; }
.pw-strength-meter[data-level="good"] .pw-strength-fill { background: #ffc107; }
.pw-strength-meter[data-level="strong"] .pw-strength-fill { background: var(--primary-green, #0a5f25); }

.pw-strength-label {
    font-size: 11px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin: 6px 0 8px;
    color: #888;
    transition: color 0.3s ease;
}

.pw-strength-meter[data-level="weak"] .pw-strength-label { color: #dc3545; }
.pw-strength-meter[data-level="fair"] .pw-strength-label { color: #fd7e14; }
.pw-strength-meter[data-level="good"] .pw-strength-label { color: #d39e00; }
.pw-strength-meter[data-level="strong"] .pw-strength-label { color: var(--primary-green, #0a5f25); }

.pw-req-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pw-req-tag {
    font-size: 10.5px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #888;
    border: 1px solid #e5e5e5;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pw-req-tag.met {
    background: rgba(10, 95, 37, 0.1);
    color: var(--primary-green, #0a5f25);
    border-color: rgba(10, 95, 37, 0.3);
}
