:root {
  --bg: #ffffff;
  --muted: rgba(0, 0, 0, 0.66);
  --shadow2: 0 10px 26px rgba(0, 0, 0, 0.1);
}

/* same sticky footer approach */
html,
body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

.reset {
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.reset__wrap {
  width: min(520px, 100%);
}

.reset__card {
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.reset__title {
  margin: 0 0 6px;
  font-size: clamp(26px, 4.8vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 1000;
}

.reset__subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.reset__form {
  display: grid;
  gap: 12px;
}

.reset__label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.82);
}

.reset__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
  outline: none;
  font-weight: 700;
}

.reset__input:focus {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.reset__input--code {
  letter-spacing: 0.34em;
  text-align: center;
  font-size: 18px;
}

.reset__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reset__small {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.62);
}

.reset__linkbtn {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.62);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reset__linkbtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.reset__fineprint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.reset__error {
  font-size: 13px;
  font-weight: 900;
  color: rgba(220, 0, 0, 0.78);
  background: rgba(220, 0, 0, 0.06);
  border: 1px solid rgba(220, 0, 0, 0.18);
  padding: 10px 12px;
  border-radius: 14px;
}

.reset__success {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.76);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 12px;
  border-radius: 14px;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 420px) {
  .reset__card {
    padding: 16px;
  }
}
.reset__hint {
  margin: -6px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.55);
}

.reset__hint--error {
  color: rgba(220, 0, 0, 0.78);
}
