/* Password strength: four segments that fill one after another, red → amber → violet → blue. */
.sp-strength { display: grid; gap: 6px; margin: 8px 0 2px; }
.sp-strength[hidden] { display: none; }
.sp-strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sp-strength-bar i { height: 5px; border-radius: 999px; background: rgba(120, 120, 160, .2); overflow: hidden; position: relative; }
.sp-strength-bar i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--sp-strength-colour); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--sp-ease-glide), background-color .28s ease; }
.sp-strength-bar i.on::after { transform: scaleX(1); }
.sp-strength-bar i:nth-child(2)::after { transition-delay: .06s; }
.sp-strength-bar i:nth-child(3)::after { transition-delay: .12s; }
.sp-strength-bar i:nth-child(4)::after { transition-delay: .18s; }
.sp-strength-text { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; line-height: 1.2; }
.sp-strength-label { color: var(--sp-strength-colour); }
.sp-strength-count { color: #52698f; font-weight: 500; }
html[data-theme="dark"] .sp-strength-bar i { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .sp-strength-count { color: #9fb4d2; }
@media (prefers-reduced-motion: reduce) { .sp-strength-bar i::after { transition: none; } }
