.password-strength-meter {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 31, 53, 0.12);
  background: rgba(15, 31, 53, 0.04);
  color: var(--text, #0f1f35);
}

body.auth-page .password-strength-meter {
  border-color: rgba(184, 134, 11, 0.18);
  background: rgba(255, 247, 230, 0.82);
  color: #0f1f35;
}

body.theme-dark .password-strength-meter {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #edf4ff);
}

.password-strength-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.password-strength-label {
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-strength-state {
  font-size: 0.78rem;
  color: var(--muted, #65758f);
  white-space: nowrap;
}

.password-strength-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 31, 53, 0.08);
}

body.theme-dark .password-strength-track {
  background: rgba(255, 255, 255, 0.1);
}

.password-strength-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease, background 220ms ease, box-shadow 220ms ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.password-strength-fill.is-weak {
  background: linear-gradient(90deg, #dc2626, #fb7185);
}

.password-strength-fill.is-medium {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.password-strength-fill.is-strong {
  background: linear-gradient(90deg, #15803d, #22c55e, #84cc16);
}

.password-strength-meter.is-weak .password-strength-label {
  color: #dc2626;
}

.password-strength-meter.is-medium .password-strength-label {
  color: #d97706;
}

.password-strength-meter.is-strong .password-strength-label {
  color: #15803d;
}

body.theme-dark .password-strength-meter.is-weak .password-strength-label {
  color: #fb7185;
}

body.theme-dark .password-strength-meter.is-medium .password-strength-label {
  color: #fbbf24;
}

body.theme-dark .password-strength-meter.is-strong .password-strength-label {
  color: #4ade80;
}

.password-strength-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted, #65758f);
}

.password-strength-meter.is-weak .password-strength-hint {
  color: #9f1239;
}

.password-strength-meter.is-medium .password-strength-hint {
  color: #9a6700;
}

.password-strength-meter.is-strong .password-strength-hint {
  color: #166534;
}

body.theme-dark .password-strength-meter.is-weak .password-strength-hint {
  color: #fecdd3;
}

body.theme-dark .password-strength-meter.is-medium .password-strength-hint {
  color: #fde68a;
}

body.theme-dark .password-strength-meter.is-strong .password-strength-hint {
  color: #bbf7d0;
}

@media (max-width: 575.98px) {
  .password-strength-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .password-strength-state {
    white-space: normal;
  }
}
