/* ---- Password strength bar + live checklist ---- */
.pw-meter {
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-xs);
}

.pw-meter__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.pw-meter__bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--color-bg-muted, #eaf0f7);
  overflow: hidden;
}

.pw-meter__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #c0392b;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.pw-meter__label {
  min-width: 72px;
  text-align: right;
  font-weight: 700;
  color: var(--color-text-muted, #56667d);
}

.pw-meter[data-level="1"] .pw-meter__bar span { width: 20%; background: #c0392b; }
.pw-meter[data-level="2"] .pw-meter__bar span { width: 40%; background: #e67e22; }
.pw-meter[data-level="3"] .pw-meter__bar span { width: 60%; background: #d4a106; }
.pw-meter[data-level="4"] .pw-meter__bar span { width: 80%; background: #5aa832; }
.pw-meter[data-level="5"] .pw-meter__bar span { width: 100%; background: #1c8a4c; }

.pw-meter[data-level="1"] .pw-meter__label { color: #c0392b; }
.pw-meter[data-level="2"] .pw-meter__label { color: #d35400; }
.pw-meter[data-level="3"] .pw-meter__label { color: #9a7500; }
.pw-meter[data-level="4"] .pw-meter__label,
.pw-meter[data-level="5"] .pw-meter__label { color: #1c8a4c; }

.pw-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px var(--space-3);
}

.pw-rules li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
  color: var(--color-text-muted, #56667d);
}

.pw-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #b8c3d1;
  box-sizing: border-box;
}

.pw-rules li.is-met {
  color: #1c8a4c;
  font-weight: 600;
}

.pw-rules li.is-met::before {
  border-color: #1c8a4c;
  background: #1c8a4c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.pw-rules li.is-missing {
  color: #c0392b;
}

.pw-rules li.is-missing::before {
  border-color: #e3a19a;
}

.pw-show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted, #56667d);
  cursor: pointer;
}

@media (max-width: 480px) {
  .pw-rules {
    grid-template-columns: 1fr;
  }
}
