:root {
  --fp-bg: #eaf5f2;
  --fp-ink: #173033;
  --fp-muted: #5b6f6e;
  --fp-panel: #fbf7ec;
  --fp-surface: #fffaf0;
  --fp-border: #345f61;
  --fp-depth: #24494c;
  --fp-teal: #5f9697;
  --fp-teal-soft: #c8dcdb;
  --fp-moss: #d0decc;
  --fp-ochre: #ead9ad;
  --fp-plum: #dac8d8;
  --fp-rose: #e4c8d1;
  --fp-blue: #c7dfe4;
  --fp-alert: #eaf2d5;
  --fp-error: #f2d2cd;
  --fp-line: rgba(52, 95, 97, 0.28);
  --fp-shadow: 7px 7px 0 rgba(36, 73, 76, 0.28);
  --fp-soft-shadow: 0 22px 60px rgba(36, 73, 76, 0.16);
  --fp-max: 1160px;
}

[data-theme="dark"] {
  --fp-bg: #101719;
  --fp-ink: #f6efe4;
  --fp-muted: #b7c4c1;
  --fp-panel: #1b2527;
  --fp-surface: #182123;
  --fp-border: #6d8486;
  --fp-depth: #050808;
  --fp-teal: #3e8582;
  --fp-teal-soft: #b8d4d1;
  --fp-moss: #819c73;
  --fp-ochre: #d7bd7d;
  --fp-plum: #c9b2c6;
  --fp-rose: #cdaab5;
  --fp-blue: #aacbd3;
  --fp-alert: #2a3d31;
  --fp-error: #56302d;
  --fp-line: rgba(246, 239, 228, 0.18);
  --fp-shadow: 7px 7px 0 rgba(0, 0, 0, 0.45);
  --fp-soft-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body.forgot-ascend-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--fp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.forgot-ascend-page a {
  color: inherit;
  text-decoration: none;
}

.forgot-ascend-page button,
.forgot-ascend-page input {
  font: inherit;
}

.fp-page {
  width: min(var(--fp-max), calc(100% - 42px));
  margin: 28px auto 64px;
}

.fp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.fp-brand,
.fp-mode-chip {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--fp-border);
  background: var(--fp-surface);
  box-shadow: 4px 4px 0 var(--fp-depth);
}

.fp-brand {
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
}

.fp-brand-mark,
.fp-icon-badge,
.fp-step-number {
  display: grid;
  place-items: center;
  border: 2px solid var(--fp-border);
  font-weight: 950;
}

.fp-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--fp-teal-soft);
  color: #213638;
  font: 800 25px/1 Georgia, "Times New Roman", serif;
}

.fp-brand strong {
  display: block;
  color: var(--fp-ink);
  font: 800 18px/1 Georgia, "Times New Roman", serif;
}

.fp-brand small,
.fp-kicker,
.fp-mini-pill,
.fp-step-card small,
.fp-field label,
.fp-status-card small {
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-brand small {
  display: block;
  margin-top: 3px;
  color: var(--fp-muted);
  font-size: 10px;
  font-weight: 950;
}

.fp-mode-chip {
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--fp-muted);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.fp-mode-dot {
  width: 11px;
  height: 11px;
  border: 2px solid var(--fp-border);
  border-radius: 50%;
  background: var(--fp-ochre);
}

.fp-shell {
  overflow: hidden;
  border: 2px solid var(--fp-border);
  border-radius: 28px;
  background: var(--fp-panel);
  box-shadow: var(--fp-soft-shadow);
}

.fp-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px;
}

.fp-copy {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 2px;
}

.fp-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.fp-kicker,
.fp-mini-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 2px solid var(--fp-border);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 950;
}

.fp-kicker {
  background: var(--fp-plum);
}

.fp-mini-pill {
  background: var(--fp-blue);
  color: #213638;
}

.fp-page h1,
.fp-page h2,
.fp-page h3 {
  margin: 0;
  color: var(--fp-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.fp-page h1 {
  max-width: 560px;
  font-size: 58px;
  line-height: 0.95;
}

.fp-lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--fp-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.58;
}

.fp-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.fp-step-card,
.fp-status-card {
  border: 2px solid var(--fp-border);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--fp-depth);
}

.fp-step-card {
  min-height: 142px;
  padding: 14px;
  background: var(--fp-surface);
}

.fp-step-card:nth-child(2) {
  background: var(--fp-moss);
}

.fp-step-card:nth-child(3) {
  background: var(--fp-ochre);
}

.fp-step-number {
  width: 34px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--fp-teal-soft);
  color: #213638;
  font-size: 12px;
}

.fp-step-card small {
  display: block;
  color: var(--fp-muted);
  font-size: 10px;
  font-weight: 950;
}

.fp-step-card strong {
  display: block;
  margin-top: 7px;
  color: var(--fp-ink);
  font: 800 20px/1.05 Georgia, "Times New Roman", serif;
}

.fp-window {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 620px;
  overflow: hidden;
  border: 2px solid var(--fp-border);
  border-radius: 28px;
  background: var(--fp-teal-soft);
  box-shadow: var(--fp-shadow);
}

[data-theme="dark"] .fp-window {
  background: #0a1011;
}

.fp-window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 18px;
  border-bottom: 2px solid var(--fp-border);
  background: var(--fp-plum);
  color: #061416;
  font-size: 13px;
  font-weight: 950;
}

.fp-window-dots {
  display: inline-flex;
  gap: 7px;
  justify-self: start;
}

.fp-window-dots span {
  width: 9px;
  height: 9px;
  border: 1.5px solid #061416;
  border-radius: 50%;
  background: #fffaf0;
}

.fp-window-bar b {
  justify-self: center;
  white-space: nowrap;
}

.fp-window-bar em {
  justify-self: end;
  font-style: normal;
  white-space: nowrap;
}

.fp-card-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.fp-form-card,
.fp-alert,
.fp-return-card {
  border: 2px solid var(--fp-border);
  border-radius: 22px;
}

.fp-form-card {
  padding: 22px;
  background: var(--fp-surface);
}

.fp-form-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.fp-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--fp-teal-soft);
  color: #213638;
  font: 950 24px/1 Georgia, "Times New Roman", serif;
}

.fp-page h2 {
  font-size: 34px;
  line-height: 1;
}

.fp-form-head p {
  margin: 9px 0 0;
  color: var(--fp-muted);
  font-size: 14px;
  font-weight: 750;
}

.fp-alert-wrap {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.fp-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.fp-field label {
  color: var(--fp-muted);
  font-size: 11px;
  font-weight: 950;
}

.fp-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 2px solid var(--fp-border);
  border-radius: 16px;
  background: #ffffff;
  padding: 0 14px;
}

[data-theme="dark"] .fp-input-wrap {
  background: #11191b;
}

.fp-input-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--fp-border);
  border-radius: 10px;
  background: var(--fp-ochre);
  color: #213638;
  font-weight: 950;
}

.fp-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fp-ink);
  font-weight: 750;
}

.fp-input-wrap input::placeholder {
  color: var(--fp-muted);
  opacity: 0.72;
}

.fp-submit {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--fp-border);
  border-radius: 16px;
  background: var(--fp-teal);
  color: #fffaf0;
  box-shadow: 4px 4px 0 var(--fp-depth);
  font-weight: 950;
  cursor: pointer;
}

.fp-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--fp-alert);
}

.fp-alert-error {
  display: block;
  background: var(--fp-error);
  color: var(--fp-ink);
  font-size: 13px;
  font-weight: 850;
}

.fp-alert-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--fp-border);
  border-radius: 50%;
  background: var(--fp-ochre);
  color: #213638;
  font-weight: 950;
}

.fp-alert strong {
  display: block;
  color: var(--fp-ink);
  font-size: 14px;
  font-weight: 950;
}

.fp-alert p {
  margin: 4px 0 0;
  color: var(--fp-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.fp-return-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--fp-blue);
  color: #213638;
}

.fp-return-card span {
  font-size: 13px;
  font-weight: 850;
}

.fp-return-card a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 2px solid var(--fp-border);
  border-radius: 999px;
  background: var(--fp-surface);
  padding: 7px 12px;
  color: #213638;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 3px 3px 0 rgba(36, 73, 76, 0.3);
}

[data-theme="dark"] .fp-return-card a {
  background: #11191b;
  color: #f6efe4;
}

.fp-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 34px 34px;
}

.fp-status-card {
  min-height: 126px;
  padding: 17px;
  background: var(--fp-moss);
}

.fp-status-card:nth-child(2) {
  background: var(--fp-ochre);
}

.fp-status-card:nth-child(3) {
  background: var(--fp-rose);
}

.fp-status-card small {
  display: block;
  color: #2d5558;
  font-size: 10px;
  font-weight: 950;
}

.fp-status-card strong {
  display: block;
  margin-top: 8px;
  color: #061416;
  font: 800 22px/1.08 Georgia, "Times New Roman", serif;
}

.fp-status-card p {
  margin: 9px 0 0;
  color: #3f5b5c;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

@media (max-width: 920px) {
  .fp-hero {
    grid-template-columns: 1fr;
  }

  .fp-copy,
  .fp-window {
    min-height: auto;
  }

  .fp-page h1 {
    font-size: 46px;
  }
}

@media (max-width: 680px) {
  .fp-page {
    width: min(var(--fp-max), calc(100% - 24px));
    margin-top: 14px;
  }

  .fp-status-strip,
  .fp-step-grid {
    grid-template-columns: 1fr;
  }

  .fp-top {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-brand,
  .fp-mode-chip {
    width: 100%;
    max-width: 100%;
  }

  .fp-mode-chip {
    justify-content: flex-start;
  }

  .fp-hero,
  .fp-status-strip {
    padding: 18px;
  }

  .fp-hero {
    gap: 20px;
  }

  .fp-page h1 {
    max-width: 100%;
    font-size: 36px;
  }

  .fp-lead {
    font-size: 16px;
  }

  .fp-window {
    border-radius: 22px;
  }

  .fp-window-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fp-window-bar b {
    justify-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .fp-window-bar em {
    display: none;
  }

  .fp-card-body,
  .fp-form-card {
    padding: 16px;
  }

  .fp-page h2 {
    font-size: 29px;
  }

  .fp-form-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .fp-page {
    width: min(366px, calc(100vw - 24px));
  }

  .fp-page h1 {
    font-size: 34px;
  }
}
