.auth-reset-page main {
  background: var(--canvas);
}

.auth-reset-page .shell {
  max-width: none;
  padding: 0;
}

.reset-flow {
  width: min(1120px, calc(100% - 40px));
  min-height: 590px;
  margin: 46px auto 64px;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--sand);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(45, 90, 90, 0.09);
}

.reset-photo {
  position: relative;
  min-height: 100%;
  background: var(--teal) url('/static/platform_core/course-pages/himalaya-hero-photo.webp?v=20260711-1') center / cover no-repeat;
}

.reset-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 56, 56, 0.38);
}

.reset-photo-copy {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 32px;
  left: 30px;
  color: #fffefb;
}

.reset-photo-copy span {
  display: block;
  margin-bottom: 8px;
  font-family: 'Montserrat', 'Manrope', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.reset-photo-copy strong {
  display: block;
  max-width: 26ch;
  font-family: 'Montserrat', 'Manrope', Arial, sans-serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.35;
}

.reset-panel {
  width: min(100%, 590px);
  align-self: center;
  padding: 54px 64px 58px;
}

.reset-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 36px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
}

.reset-back::before {
  content: '\2190';
  margin-right: 8px;
  transition: transform 180ms ease-out;
}

.reset-back:hover::before {
  transform: translateX(-3px);
}

.reset-kicker {
  display: block;
  color: #9a5508;
  font-family: 'Montserrat', 'Manrope', Arial, sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reset-panel h1 {
  max-width: 15ch;
  margin: 10px 0 18px;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.reset-lead {
  max-width: 54ch;
  margin: 0;
  color: var(--ink-70);
  font-size: 1rem;
  line-height: 1.65;
}

.reset-form {
  margin-top: 28px;
}

.reset-form > label {
  display: block;
  margin: 18px 0 7px;
  color: var(--ink-70);
  font-family: 'Montserrat', 'Manrope', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reset-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.reset-form input:hover {
  border-color: rgba(45, 90, 90, 0.38);
}

.reset-form input:focus {
  border-color: var(--gold-deep);
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245, 164, 66, 0.2);
}

.reset-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--gold-deep);
  border-radius: 9999px;
  background: var(--gold-deep);
  color: var(--ink);
  font-family: 'Montserrat', 'Manrope', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}

.reset-submit:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fffefb;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(45, 90, 90, 0.18);
}

.auth-reset-page .header-cta > .button:not(.secondary) {
  color: var(--ink);
}

.reset-submit:focus-visible,
.reset-back:focus-visible {
  outline: 3px solid rgba(245, 164, 66, 0.42);
  outline-offset: 4px;
}

.reset-link-button {
  margin-top: 28px;
}

.reset-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--sand);
  border-radius: 14px;
  background: var(--canvas);
  color: var(--ink-70);
  font-size: 0.9rem;
  line-height: 1.55;
}

.reset-footnote {
  margin: 18px 0 0;
  color: var(--ink-60);
  font-size: 0.78rem;
  line-height: 1.5;
}

.reset-errors {
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.84rem;
}

.reset-errors ul,
.reset-help ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.reset-help {
  margin-top: 10px;
  color: var(--ink-60);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .reset-flow {
    width: min(100% - 24px, 560px);
    min-height: 0;
    margin: 20px auto 38px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .reset-photo {
    min-height: 158px;
    background-position: center 58%;
  }

  .reset-photo-copy {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .reset-photo-copy strong {
    max-width: 28ch;
    font-size: 1.06rem;
  }

  .reset-panel {
    padding: 28px 22px 34px;
  }

  .reset-back {
    margin-bottom: 24px;
  }

  .reset-panel h1 {
    max-width: none;
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reset-back::before,
  .reset-form input,
  .reset-submit {
    transition: none;
  }
}
