body {
  align-items: flex-start;
  padding: 2rem 0;
  overflow-y: auto;
}

@media (min-height: 780px) {
  body {
    align-items: center;
    padding: 0;
  }
}

/* ── Password strength bar ── */
.strength-bar {
  height: 3px;
  background: #1e1e38;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition:
    width 0.35s ease,
    background 0.35s ease;
}

.strength-label {
  font-family: "Syne Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 5px;
  min-height: 14px;
  transition: color 0.3s;
}

/* strength states driven by JS data-attribute */
.strength-fill[data-level="1"] {
  width: 25%;
  background: #e24b4a;
}
.strength-fill[data-level="2"] {
  width: 50%;
  background: #ef9f27;
}
.strength-fill[data-level="3"] {
  width: 75%;
  background: #5dcaa5;
}
.strength-fill[data-level="4"] {
  width: 100%;
  background: #1d9e75;
}

.strength-label[data-level="1"] {
  color: #e24b4a;
}
.strength-label[data-level="2"] {
  color: #ef9f27;
}
.strength-label[data-level="3"] {
  color: #5dcaa5;
}
.strength-label[data-level="4"] {
  color: #1d9e75;
}

/* ── Terms checkbox ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 1.4rem;
  user-select: none;
}

.terms-row input[type="checkbox"] {
  display: none;
}

.custom-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #252540;
  border-radius: 5px;
  background: #13132a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.custom-check i {
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.terms-row input:checked ~ .custom-check {
  background: #534ab7;
  border-color: #7f77dd;
}

.terms-row input:checked ~ .custom-check i {
  opacity: 1;
  transform: scale(1);
}

.terms-txt {
  font-size: 12px;
  color: #5b5b78;
  line-height: 1.5;
}

.terms-txt a {
  color: #7f77dd;
  text-decoration: none;
}

.terms-txt a:hover {
  text-decoration: underline;
}

/* ── Input match indicator ── */
.input-wrap input.match {
  border-color: #1d9e75;
}

.input-wrap input.mismatch {
  border-color: #e24b4a;
}
