.reset-page {
  --reset-green: #153f33;
  --reset-green-2: #1f6650;
  --reset-whatsapp: #25d366;
  --reset-gold: #d6aa58;
  --reset-ink: #18382f;
  --reset-muted: #6c8079;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  padding: clamp(28px, 5vw, 72px) 20px;
  background:
    radial-gradient(circle at 8% 15%, rgba(214, 170, 88, 0.16), transparent 27%),
    radial-gradient(circle at 92% 85%, rgba(37, 211, 102, 0.09), transparent 25%),
    linear-gradient(135deg, #f4f8f5 0%, #fffdf8 48%, #f0f7f3 100%);
}

.reset-page__glow {
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.5;
}

.reset-page__glow--one {
  top: -190px;
  right: -120px;
  background: rgba(37, 211, 102, 0.16);
}

.reset-page__glow--two {
  bottom: -220px;
  left: -130px;
  background: rgba(214, 170, 88, 0.2);
}

.reset-shell {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(440px, 1.14fr);
  width: min(1060px, 100%);
  min-height: 670px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(20, 63, 51, 0.09);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 34px 80px rgba(15, 52, 40, 0.14);
}

.reset-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 38px 38px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 88%, rgba(214, 170, 88, 0.24), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.18), transparent 26%),
    linear-gradient(155deg, #0f342a 0%, #174b3c 54%, #1c5e49 100%);
}

.reset-story::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.025), 0 0 0 54px rgba(255, 255, 255, 0.018);
}

.reset-story__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(30deg, transparent 24%, rgba(255,255,255,.17) 25%, rgba(255,255,255,.17) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.17) 75%, rgba(255,255,255,.17) 76%, transparent 77%),
    linear-gradient(150deg, transparent 24%, rgba(255,255,255,.11) 25%, rgba(255,255,255,.11) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.11) 75%, rgba(255,255,255,.11) 76%, transparent 77%);
  background-size: 58px 100px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}

.reset-story__brand,
.reset-story__content,
.reset-story__safe {
  position: relative;
  z-index: 1;
}

.reset-story__brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.reset-story__brand > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  color: #f1cd82;
  background: rgba(255, 255, 255, 0.09);
}

.reset-story__brand strong {
  font-family: "El Messiri", "Cairo", sans-serif;
  font-size: 1.16rem;
}

.reset-story__content {
  margin: auto 0;
  padding: 40px 0 30px;
}

.reset-story__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #dff8e8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.77rem;
  font-weight: 800;
}

.reset-story__kicker i {
  color: #63e590;
  font-size: 1rem;
}

.reset-story h1 {
  margin: 20px 0 13px;
  color: #fff;
  font-family: "El Messiri", "Cairo", sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.72rem);
  font-weight: 700;
  line-height: 1.42;
}

.reset-story__content > p {
  max-width: 37ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.91rem;
  line-height: 1.9;
}

.reset-steps {
  display: grid;
  gap: 7px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.reset-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 9px 10px;
  border-radius: 18px;
  opacity: 0.55;
}

.reset-steps li::after {
  content: "";
  position: absolute;
  top: 53px;
  right: 28px;
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
}

.reset-steps li:last-child::after {
  display: none;
}

.reset-steps li.is-current {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.reset-steps li.is-done {
  opacity: 0.88;
}

.reset-steps li > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
}

.reset-steps li.is-current > span {
  border-color: #5ce18c;
  color: #0e402b;
  background: #5ce18c;
  box-shadow: 0 0 0 5px rgba(92, 225, 140, 0.11);
}

.reset-steps li.is-done > span {
  border-color: rgba(92, 225, 140, 0.55);
  color: #72eca0;
}

.reset-steps strong,
.reset-steps small {
  display: block;
}

.reset-steps strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.88rem;
}

.reset-steps small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.71rem;
}

.reset-story__safe {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.77);
}

.reset-story__safe > i {
  color: #f0c876;
}

.reset-story__safe strong,
.reset-story__safe small {
  display: block;
}

.reset-story__safe strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 0.77rem;
}

.reset-story__safe small {
  font-size: 0.66rem;
}

.reset-panel {
  display: flex;
  min-width: 0;
  background: rgba(255, 255, 255, 0.97);
}

.reset-panel__inner {
  width: min(100%, 520px);
  margin: auto;
  padding: 54px 54px 46px;
}

.reset-mobile-progress {
  display: none;
}

.reset-heading {
  margin-bottom: 31px;
}

.reset-heading--centered,
.reset-complete {
  text-align: center;
}

.reset-heading__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 18px;
  color: #16a94d;
  background: linear-gradient(145deg, #e9fbef, #f7fff9);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.11);
  font-size: 1.55rem;
}

.reset-heading--centered .reset-heading__icon {
  margin-right: auto;
  margin-left: auto;
}

.reset-heading__icon--message {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 1.9rem;
}

.reset-heading__icon--key {
  color: #aa7a26;
  border-color: rgba(214, 170, 88, 0.23);
  background: linear-gradient(145deg, #fff8e9, #fffdf8);
  box-shadow: 0 12px 26px rgba(214, 170, 88, 0.12);
  font-size: 1.25rem;
}

.reset-heading__eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #37846c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.reset-heading h2,
.reset-complete h2 {
  margin: 0 0 10px;
  color: var(--reset-ink);
  font-family: "El Messiri", "Cairo", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
}

.reset-heading p,
.reset-complete p {
  margin: 0;
  color: var(--reset-muted);
  font-size: 0.87rem;
  line-height: 1.85;
}

.reset-masked-phone {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #1f5b48;
  background: #eef8f3;
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.reset-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
}

.reset-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #d8e9e1;
  border-radius: 14px;
  color: #285b49;
  background: #f0f8f4;
  font-size: 0.76rem;
  line-height: 1.7;
}

.reset-alert.error {
  border-color: #f0d3cf;
  color: #983d33;
  background: #fff4f2;
}

.reset-alert.success {
  border-color: #caebd6;
  color: #267247;
  background: #effaf3;
}

.reset-alert i {
  margin-top: 4px;
}

.reset-form {
  display: grid;
  gap: 21px;
}

.reset-field > label {
  display: block;
  margin-bottom: 9px;
  color: #24463c;
  font-size: 0.8rem;
  font-weight: 800;
}

.reset-field > small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #84938e;
  font-size: 0.69rem;
}

.reset-field > small i {
  color: #6da08e;
}

.reset-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reset-input-wrap > i {
  position: absolute;
  z-index: 2;
  right: 17px;
  color: #7d928b;
  font-size: 0.91rem;
  pointer-events: none;
}

.reset-input-wrap input,
.reset-otp-input {
  width: 100%;
  height: 55px;
  border: 1px solid #dbe6e1;
  border-radius: 16px;
  outline: none;
  color: #1c3c32;
  background: #fbfdfc;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.reset-input-wrap input {
  padding: 0 46px 0 16px;
}

.reset-input-wrap--phone input {
  padding-right: 47px;
  padding-left: 52px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.reset-input-wrap input:focus,
.reset-otp-input:focus {
  border-color: #45a17e;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 122, 91, 0.1);
}

.reset-input-wrap__wa {
  position: absolute;
  left: 15px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #13a649;
  background: #e7faed;
}

.reset-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 55px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #174b3c 0%, #237058 100%);
  box-shadow: 0 16px 30px rgba(21, 74, 58, 0.2);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.reset-submit:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 19px 34px rgba(21, 74, 58, 0.25);
}

.reset-submit:disabled,
.reset-submit.is-loading {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.reset-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: 23px auto 0;
  color: #61736d;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.reset-back-link:hover {
  color: #1b5a46;
}

.reset-form--otp {
  max-width: 390px;
  margin: 0 auto;
}

.reset-form--otp .reset-field > label {
  text-align: center;
}

.reset-otp-input {
  height: 66px;
  padding: 0 22px;
  direction: ltr;
  text-align: center;
  font-family: "Manrope", monospace;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
}

.reset-field > .reset-expiry {
  justify-content: center;
}

.reset-inbound-flow {
  display: grid;
  gap: 16px;
}

.reset-code-card {
  padding: 18px 20px;
  border: 1px dashed rgba(31, 112, 83, 0.32);
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(145deg, #f4fbf7, #fbfefc);
}

.reset-code-card > span,
.reset-code-card > small {
  display: block;
  color: #71847d;
  font-size: 0.69rem;
}

.reset-code-card > strong {
  display: block;
  margin: 6px 0;
  color: #164c3b;
  font-family: "Manrope", monospace;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.reset-code-card > small i {
  margin-left: 4px;
  color: #37926e;
}

.reset-submit--whatsapp {
  background: linear-gradient(135deg, #128c4a, #20b960);
  box-shadow: 0 16px 30px rgba(18, 140, 74, 0.22);
}

.reset-submit--whatsapp .fa-whatsapp {
  font-size: 1.25rem;
}

.reset-submit--whatsapp .fa-arrow-up-right-from-square {
  font-size: 0.72rem;
  opacity: 0.74;
}

.reset-waiting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #dce9e3;
  border-radius: 16px;
  background: #fafcfb;
}

.reset-waiting__pulse {
  position: relative;
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #27805f;
  background: #e9f6ef;
}

.reset-waiting__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(39, 128, 95, 0.18);
  border-radius: inherit;
  animation: reset-status-pulse 1.8s ease-out infinite;
}

.reset-waiting strong,
.reset-waiting small {
  display: block;
}

.reset-waiting strong {
  margin-bottom: 3px;
  color: #244c3f;
  font-size: 0.76rem;
}

.reset-waiting small {
  color: #788982;
  font-size: 0.66rem;
  line-height: 1.7;
}

.reset-check-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -3px auto 0;
  padding: 5px 8px;
  border: 0;
  color: #2b7059;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
}

.reset-check-button.is-checking i {
  animation: reset-spin 700ms linear infinite;
}

.reset-inbound-flow.is-verified .reset-waiting {
  border-color: #bce4cb;
  background: #effaf3;
}

.reset-inbound-flow.is-verified .reset-waiting__pulse {
  color: #fff;
  background: #1da158;
}

.reset-inbound-flow.is-expired .reset-waiting {
  border-color: #efd2ce;
  background: #fff5f3;
}

@keyframes reset-status-pulse {
  0% { transform: scale(0.82); opacity: 0.8; }
  75%, 100% { transform: scale(1.25); opacity: 0; }
}

@keyframes reset-spin {
  to { transform: rotate(360deg); }
}

.reset-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 19px;
  color: #7a8b85;
  font-size: 0.72rem;
}

.reset-resend form {
  display: inline;
}

.reset-resend__button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 0;
  color: #20745a;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.reset-resend__button:disabled {
  color: #82918c;
  cursor: not-allowed;
}

.reset-resend__timer {
  min-width: 34px;
  direction: ltr;
  font-family: "Manrope", sans-serif;
}

.reset-form .password-checklist {
  margin-top: -3px;
}

.reset-form .password-visibility-field {
  width: 100%;
}

.reset-form .password-visibility-toggle {
  left: 11px;
  right: auto;
}

.reset-complete {
  padding: 20px 0;
}

.reset-complete__icon {
  display: grid;
  width: 106px;
  height: 106px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.06);
  box-shadow: 0 0 0 13px rgba(37, 211, 102, 0.035);
}

.reset-complete__icon span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #22b85a, #178d46);
  box-shadow: 0 14px 28px rgba(31, 171, 84, 0.25);
  font-size: 1.45rem;
}

.reset-complete p {
  max-width: 43ch;
  margin: 0 auto 28px;
}

.reset-complete .reset-submit {
  max-width: 370px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .reset-page {
    padding: 24px 16px 40px;
  }

  .reset-shell {
    grid-template-columns: 1fr;
    max-width: 590px;
    min-height: auto;
    border-radius: 28px;
  }

  .reset-story {
    min-height: auto;
    padding: 25px 28px;
  }

  .reset-story__content,
  .reset-story__safe {
    display: none;
  }

  .reset-panel__inner {
    padding: 34px 34px 40px;
  }

  .reset-mobile-progress {
    display: flex;
    gap: 7px;
    margin-bottom: 30px;
  }

  .reset-mobile-progress span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e2ebe7;
  }

  .reset-mobile-progress span.is-current {
    background: #2f8367;
  }

  .reset-mobile-progress span.is-done {
    background: #62c58b;
  }
}

@media (max-width: 520px) {
  .reset-page {
    width: 100vw;
    max-width: 100%;
    padding: 12px 10px 28px;
  }

  .reset-shell {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    border-radius: 22px;
  }

  .reset-panel,
  .reset-panel__inner {
    width: 100%;
    max-width: 100%;
  }

  .reset-story {
    padding: 20px;
  }

  .reset-panel__inner {
    padding: 28px 21px 34px;
  }

  .reset-heading {
    margin-bottom: 25px;
  }

  .reset-otp-input {
    font-size: 1.32rem;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }
}

html[data-theme="dark"] .reset-page {
  --reset-ink: #eef8f3;
  --reset-muted: #9db0a9;
  background: linear-gradient(135deg, #0d1814, #121e19 48%, #0c1914);
}

html[data-theme="dark"] .reset-shell,
html[data-theme="dark"] .reset-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: #15221d;
}

html[data-theme="dark"] .reset-input-wrap input,
html[data-theme="dark"] .reset-otp-input {
  border-color: #35473f;
  color: #eff8f4;
  background: #101b17;
}

html[data-theme="dark"] .reset-field > label {
  color: #dcebe4;
}

html[data-theme="dark"] .reset-code-card,
html[data-theme="dark"] .reset-waiting {
  border-color: #354b42;
  background: #101c17;
}

html[data-theme="dark"] .reset-code-card > strong,
html[data-theme="dark"] .reset-waiting strong {
  color: #dbf2e7;
}

html[data-theme="dark"] .reset-alert {
  border-color: #335447;
  color: #b7ddcc;
  background: #172b23;
}

html[data-theme="dark"] .reset-alert.error {
  border-color: #65413c;
  color: #f1b4ab;
  background: #2b1d1b;
}
