:root {
  --forgot-navy-950: #06172f;
  --forgot-navy-900: #081f3f;
  --forgot-navy-800: #0d2e56;
  --forgot-gold: #d99a00;
  --forgot-gold-dark: #bd7f00;
  --forgot-text: #0c2344;
  --forgot-muted: #627187;
  --forgot-border: #dfe6ef;
  --forgot-warm: #fbf7ef;
  --forgot-white: #ffffff;
  --forgot-success: #137145;
  --forgot-success-bg: #edf9f3;
  --forgot-error: #9a2f2f;
  --forgot-error-bg: #fff4f4;
  --forgot-shadow: 0 24px 70px rgba(8,31,63,.11);
  --forgot-font: Inter, Manrope, "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.auth-body.auth-forgot-page {
  min-height: 100vh;
  margin: 0;
  background: #f5f7fa;
  color: var(--forgot-text);
  font-family: var(--forgot-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.auth-forgot-page * {
  box-sizing: border-box;
}

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

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

body.auth-forgot-page img {
  display: block;
  max-width: 100%;
}

.auth-forgot {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(560px,55%) minmax(460px,45%);
  background: var(--forgot-white);
  overflow: hidden;
}

.auth-forgot__story {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(420px,64vh) 1fr;
  background: var(--forgot-warm);
  border-right: 1px solid var(--forgot-border);
}

.auth-forgot__photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e9e1d5;
}

.auth-forgot__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,rgba(6,23,47,.02) 0%,rgba(6,23,47,0) 55%,rgba(6,23,47,.10) 100%);
}

.auth-forgot__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
  filter: brightness(1.07) saturate(.94) contrast(.98);
  transform: scale(1.008);
}

.auth-forgot__photo-badge {
  position: absolute;
  z-index: 2;
  left: clamp(28px,4vw,64px);
  top: clamp(26px,4vw,52px);
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(8,31,63,.09);
  color: var(--forgot-navy-900);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.auth-forgot__story-copy {
  align-self: stretch;
  display: grid;
  align-content: center;
  padding: clamp(30px,4.2vw,58px) clamp(34px,5vw,72px);
  background: linear-gradient(135deg,#fff 0%,#fbf7ef 100%);
}

.auth-forgot__eyebrow,
.auth-forgot__heading > span {
  display: block;
  color: var(--forgot-gold-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.auth-forgot__story-copy h1 {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--forgot-text);
  font-size: clamp(2.15rem,3.2vw,3.55rem);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.auth-forgot__story-copy h1 em {
  color: var(--forgot-gold);
  font-style: normal;
}

.auth-forgot__story-copy > p {
  max-width: 720px;
  margin: 17px 0 0;
  color: var(--forgot-muted);
  font-size: clamp(.92rem,1vw,1.04rem);
  line-height: 1.65;
}

.auth-forgot__benefits {
  max-width: 840px;
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid var(--forgot-border);
  padding-top: 22px;
}

.auth-forgot__benefits > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 31px 1fr;
  column-gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--forgot-border);
}

.auth-forgot__benefits > span:first-child {
  padding-left: 0;
}

.auth-forgot__benefits > span:last-child {
  padding-right: 0;
  border-right: 0;
}

.auth-forgot__benefits svg {
  grid-row: span 2;
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--forgot-navy-800);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-forgot__benefits b {
  font-size: .82rem;
  line-height: 1.25;
}

.auth-forgot__benefits small {
  margin-top: 4px;
  color: var(--forgot-muted);
  font-size: .7rem;
  line-height: 1.35;
}

.auth-forgot__panel {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(32px,5vw,76px);
  background:
    radial-gradient(circle at 92% 6%,rgba(217,154,0,.08),transparent 25%),
    linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
}

.auth-forgot__card {
  width: min(100%,520px);
}

.auth-forgot__logo {
  width: min(290px,72%);
  display: block;
  margin: 0 0 clamp(42px,6vh,66px);
}

.auth-forgot__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.auth-forgot__heading h2 {
  margin: 12px 0 0;
  color: var(--forgot-text);
  font-size: clamp(2.35rem,3.3vw,3.55rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.auth-forgot__heading p {
  max-width: 470px;
  margin: 15px 0 0;
  color: var(--forgot-muted);
  font-size: .98rem;
  line-height: 1.62;
}

.auth-forgot__alert {
  margin-top: 22px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  border-radius: 11px;
  font-size: .86rem;
  line-height: 1.5;
}

.auth-forgot__alert svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-forgot__alert--success {
  border: 1px solid #cce8d8;
  background: var(--forgot-success-bg);
  color: var(--forgot-success);
}

.auth-forgot__alert--error {
  border: 1px solid #f1cccc;
  background: var(--forgot-error-bg);
  color: var(--forgot-error);
}

.auth-forgot__form {
  margin-top: 29px;
  display: grid;
  gap: 10px;
}

.auth-forgot__form > label {
  color: var(--forgot-text);
  font-size: .82rem;
  font-weight: 760;
}

.auth-forgot__field {
  position: relative;
}

.auth-forgot__field > svg {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: #7f8ca0;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.auth-forgot__field input {
  width: 100%;
  height: 58px;
  padding: 0 18px 0 50px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
  color: var(--forgot-text);
  font-size: .94rem;
  outline: none;
  transition: border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.auth-forgot__field input::placeholder {
  color: #95a1b2;
}

.auth-forgot__field input:hover {
  border-color: #aebdce;
}

.auth-forgot__field input:focus {
  border-color: var(--forgot-gold);
  box-shadow: 0 0 0 4px rgba(217,154,0,.12);
}

.auth-forgot__privacy {
  margin: 4px 0 0;
  color: var(--forgot-muted);
  font-size: .73rem;
  line-height: 1.5;
}

.auth-forgot__submit {
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,#e4a600,#cc8800);
  box-shadow: 0 14px 28px rgba(204,136,0,.20);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

.auth-forgot__submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-forgot__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(204,136,0,.25);
  filter: brightness(1.02);
}

.auth-forgot__submit:focus-visible,
.auth-forgot__back:focus-visible,
.auth-forgot__help a:focus-visible,
.auth-forgot__logo:focus-visible {
  outline: 3px solid rgba(217,154,0,.25);
  outline-offset: 4px;
}

.auth-forgot__security {
  margin-top: 25px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--forgot-border);
  border-radius: 11px;
  background: #f8fafc;
}

.auth-forgot__security svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--forgot-navy-800);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-forgot__security strong {
  display: block;
  color: var(--forgot-text);
  font-size: .78rem;
}

.auth-forgot__security span {
  display: block;
  margin-top: 3px;
  color: var(--forgot-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.auth-forgot__back {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forgot-navy-800);
  font-size: .82rem;
  font-weight: 800;
}

.auth-forgot__back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-forgot__back:hover,
.auth-forgot__help a:hover {
  color: var(--forgot-gold-dark);
}

.auth-forgot__help {
  margin: 20px 0 0;
  color: var(--forgot-muted);
  font-size: .76rem;
}

.auth-forgot__help a {
  color: var(--forgot-navy-800);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .auth-forgot {
    grid-template-columns: minmax(480px,52%) minmax(420px,48%);
  }

  .auth-forgot__story-copy {
    padding-inline: 42px;
  }

  .auth-forgot__benefits {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .auth-forgot__benefits > span {
    padding: 0;
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .auth-forgot {
    grid-template-columns: 1fr;
  }

  .auth-forgot__story {
    display: none;
  }

  .auth-forgot__panel {
    min-height: 100vh;
    padding: 30px 24px 46px;
  }

  .auth-forgot__card {
    width: min(100%,540px);
  }

  .auth-forgot__logo {
    width: min(250px,68%);
    margin-bottom: 48px;
  }
}

@media (max-width: 520px) {
  .auth-forgot__panel {
    padding: 24px 18px 36px;
  }

  .auth-forgot__logo {
    width: min(220px,72%);
    margin-bottom: 40px;
  }

  .auth-forgot__heading h2 {
    font-size: 2.4rem;
  }

  .auth-forgot__heading p {
    font-size: .92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-forgot__submit,
  .auth-forgot__field input {
    transition: none;
  }
}
