/* =========================================================
   SM Tracking — Forgot Password Page
   Pure CSS, standalone.
   Loaded ONLY by forgot-password.handlebars.
   Does not depend on login.css.
   ========================================================= */

@font-face {
  font-family: 'Inter';
  src: url('/public/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forgot-navy: #051a37;
  --forgot-navy-btn: #08295e;
  --forgot-navy-hover: #0c3874;
  --forgot-yellow: #ffb300;
  --forgot-yellow-soft: #fff3cc;
  --forgot-muted: #6a778a;
  --forgot-field-bg: #eaf0fc;
  --forgot-field-line: #dde5f1;
}

html {
  font-size: clamp(10px, 0.84vw, 16px);
}

.forgot-page,
.forgot-page *,
.forgot-page *::before,
.forgot-page *::after {
  box-sizing: border-box;
}

.forgot-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--forgot-navy);
  background: #f6f8fb;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.forgot-page h1,
.forgot-page h2,
.forgot-page p {
  margin: 0;
  padding: 0;
}

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

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

.forgot-page svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forgot-page :focus-visible {
  outline: 3px solid rgba(255, 179, 0, 0.6);
  outline-offset: 3px;
}

/* =========================================================
   Layout
   ========================================================= */

.forgot-shell {
  display: grid;
  grid-template-columns: 56.25% 43.75%;
  min-height: 100vh;
  min-height: 100svh;
}

/* =========================================================
   LEFT — branding / marketing panel
   ========================================================= */

.forgot-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--forgot-navy);
  background-image:
    linear-gradient(
      120deg,
      rgba(5, 26, 55, 0.9),
      rgba(5, 26, 55, 0.55)
    ),
    url('https://images.unsplash.com/photo-1623174891354-afea5ddadcad?auto=format&fit=crop&fm=jpg&q=85&w=2400');
  background-position: center;
  background-size: cover;
}

.forgot-visual::before,
.forgot-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.forgot-visual::before {
  width: 26rem;
  height: 26rem;
  top: -12rem;
  right: -13rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 4.4rem rgba(255, 255, 255, 0.035),
    0 0 0 8.8rem rgba(255, 255, 255, 0.025);
}

.forgot-visual::after {
  width: 15rem;
  height: 15rem;
  bottom: -9.5rem;
  left: -9.5rem;
  background: rgba(255, 179, 0, 0.2);
  filter: blur(4px);
}

.forgot-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6.2rem 4.3rem 3.8rem;
}

/* Brand */

.forgot-brand {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: fit-content;
}

.forgot-brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 6rem;
  height: 6rem;
  border-radius: 1.5rem;
  background: #fff;
}

.forgot-brand-mark img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.forgot-brand-name {
  display: grid;
  gap: 0.15rem;
}

.forgot-brand-name strong {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.forgot-brand-name small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
}

/* Main message */

.forgot-visual-content {
  margin: auto 0;
  padding: 2.6rem 0 1.4rem;
}

.forgot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.6rem 0.85rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 26, 55, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  font-weight: 600;
}

.forgot-kicker svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--forgot-yellow);
}

.forgot-visual-content h1 {
  margin-top: 2.9rem;
  color: #fff;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.forgot-visual-content h1 span {
  display: block;
  margin-top: 0.15rem;
  color: var(--forgot-yellow);
}

.forgot-description {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.3rem;
  line-height: 1.75;
}

/* Benefits */

.forgot-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 3.4rem;
}

.forgot-benefit {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.75rem 1.6rem 0.75rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(5, 26, 55, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.forgot-benefit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: rgba(255, 179, 0, 0.14);
  color: var(--forgot-yellow);
}

.forgot-benefit-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  stroke-width: 1.7;
}

/* Credit */

.forgot-photo-credit {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.forgot-photo-credit a {
  color: #fff;
  font-weight: 600;
}

.forgot-photo-credit a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   RIGHT — forgot password panel
   ========================================================= */

.forgot-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2.5rem 4.2rem;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 179, 0, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(5, 26, 55, 0.06),
      transparent 30%
    ),
    #f6f8fb;
}

.forgot-panel::before {
  content: '';
  position: absolute;
  width: 27rem;
  height: 27rem;
  right: -15rem;
  bottom: -15rem;
  border: 1px solid rgba(5, 26, 55, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(5, 26, 55, 0.025),
    0 0 0 10rem rgba(5, 26, 55, 0.018);
  pointer-events: none;
}

/* Card */

.forgot-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40.5rem;
  padding: 2.2rem 3.2rem 2.4rem;
  border: 1px solid rgba(5, 26, 55, 0.05);
  border-radius: 1.7rem;
  background: #fff;
  box-shadow:
    0 18px 55px rgba(5, 26, 55, 0.1),
    0 2px 10px rgba(5, 26, 55, 0.04);
}

/* Card brand */

.forgot-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.forgot-card-brand img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
}

.forgot-card-brand div {
  display: grid;
  gap: 0.1rem;
}

.forgot-card-brand strong {
  color: var(--forgot-navy);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
}

.forgot-card-brand span {
  color: #738198;
  font-size: 0.9rem;
}

/* Divider */

.forgot-divider {
  height: 1px;
  margin: 1.7rem 0 2rem;
  background: #e5eaf1;
}

/* Heading */

.forgot-heading {
  text-align: center;
}

.forgot-heading h2 {
  color: var(--forgot-navy);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.forgot-heading p {
  max-width: 30rem;
  margin: 1rem auto 0;
  color: var(--forgot-muted);
  font-size: 1.18rem;
  line-height: 1.55;
}

/* Error */

.forgot-error {
  margin-top: 1.3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #f4c8cd;
  border-radius: 0.7rem;
  background: #fff1f2;
  color: #9e2735;
  font-size: 0.95rem;
}

/* Form */

.forgot-form {
  margin-top: 2.1rem;
}

.forgot-form > label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--forgot-navy);
  font-size: 1.06rem;
  font-weight: 600;
}

/* Email field */

.forgot-input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 3.7rem;
  overflow: hidden;
  border: 1px solid var(--forgot-field-line);
  border-radius: 0.85rem;
  background: var(--forgot-field-bg);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.forgot-input:focus-within {
  border-color: var(--forgot-navy-btn);
  box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.22);
}

.forgot-input-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.7rem;
  height: 100%;
  color: #7f91ab;
  background: rgba(255, 255, 255, 0.18);
}

.forgot-input-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.forgot-input input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 1.1rem;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--forgot-navy);
  font-size: 1.12rem;
}

.forgot-input input::placeholder {
  color: #7b8798;
}

.forgot-input input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--forgot-field-bg) inset;
  -webkit-text-fill-color: var(--forgot-navy);
}

/* Send OTP */

.forgot-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.95rem;
  margin-top: 1.4rem;
  padding: 0 4rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--forgot-navy-btn);
  box-shadow: 0 10px 24px rgba(8, 41, 94, 0.22);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.forgot-submit:hover {
  background: var(--forgot-navy-hover);
  box-shadow: 0 13px 28px rgba(8, 41, 94, 0.28);
  transform: translateY(-1px);
}

.forgot-submit svg {
  position: absolute;
  top: 50%;
  right: 1.7rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--forgot-yellow);
  transform: translateY(-50%);
  stroke-width: 2;
}

/* Back to login */

.forgot-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: #1262c9;
  font-size: 1rem;
}

.forgot-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-back svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* =========================================================
   Tablet / phone
   ========================================================= */

@media (max-width: 991.98px) {
  html {
    font-size: 16px;
  }

  .forgot-shell {
    display: block;
  }

  .forgot-visual-inner {
    min-height: 0;
    padding: 1.75rem 1.5rem 5rem;
  }

  .forgot-brand-mark {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.2rem;
  }

  .forgot-brand-mark img {
    width: 3.7rem;
    height: 3.7rem;
  }

  .forgot-brand-name strong {
    font-size: 1.3rem;
  }

  .forgot-brand-name small {
    font-size: 0.9rem;
  }

  .forgot-visual-content {
    margin: 0;
    padding: 2.2rem 0 0;
  }

  .forgot-kicker {
    padding: 0.55rem 1rem 0.55rem 1.1rem;
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .forgot-kicker svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .forgot-visual-content h1 {
    margin-top: 1.3rem;
    font-size: clamp(2.3rem, 8vw, 3.6rem);
  }

  .forgot-description,
  .forgot-benefits,
  .forgot-photo-credit {
    display: none;
  }

  .forgot-panel {
    display: block;
    padding: 0 1rem 2rem;
    background: transparent;
  }

  .forgot-card {
    max-width: 36rem;
    margin: -4rem auto 0;
    padding: 1.75rem 1.5rem 2rem;
    border-radius: 1.4rem;
  }

  .forgot-heading h2 {
    font-size: 2.2rem;
  }

  .forgot-heading p {
    font-size: 1.05rem;
  }

  .forgot-input input {
    font-size: 1.05rem;
  }

  .forgot-submit {
    padding: 0 3.2rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .forgot-card {
    padding-inline: 1.2rem;
  }

  .forgot-card-brand strong {
    font-size: 1.15rem;
  }

  .forgot-card-brand span {
    font-size: 0.75rem;
  }

  .forgot-heading h2 {
    font-size: 2rem;
  }

  .forgot-input {
    height: 3.5rem;
  }

  .forgot-submit {
    height: 3.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .forgot-page *,
  .forgot-page *::before,
  .forgot-page *::after {
    transition-duration: 0.01ms !important;
  }
}
