/* ==========================================================================
   Auth family — login · signup · forgot · verify · reset
   Two panels filling the window: the form panel and a photo / brand hero panel.
   Index: layout · hero panel · meta bar & pills · card · heading · form parts
          · password field · links & footers
   Mobile-first: the form comes first and the hero is a compact band below it;
   from 64rem (1024px) the hero stands beside the form.
   ========================================================================== */

/* ---- Layout ------------------------------------------------------------ */
/* --auth-hero-radius: the hero panel's large inner corner in the design (50px) */
.auth {
  --auth-hero-radius: 3.125rem;
  --auth-col: 36rem;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
}
.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--gutter) var(--sp-10);
}
.auth__column {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: min(100%, var(--auth-col));
}
.auth__column--loose { gap: var(--sp-6); }
.auth__column--center { align-items: center; text-align: center; }

/* Entrance on load (one time, CSS only, so nothing ever starts hidden for no-JS users):
   the form column rises, the photo settles from a slow zoom, the glass cards drop in one after
   another 150ms apart and the decorative lines come up under them. */
@media (prefers-reduced-motion: no-preference) {
  .auth__column { animation: rise-in var(--t-slow) var(--ease) both; }
  .auth-hero .media-cover { animation: hero-photo-settle 2.6s var(--ease-soft) both; }
  .auth-hero--fade .media-cover { animation-name: hero-photo-settle-flipped; }
  .auth-hero__lines { animation: hero-lines-in 2.2s var(--ease-soft) .3s both; }
  .auth-hero__stat { animation: hero-card-drop var(--t-slow) var(--ease-drop) both; }
  .auth-hero__stat:nth-child(1) { animation-delay: .45s; }
  .auth-hero__stat:nth-child(2) { animation-delay: .6s; }
  .auth-hero__stat:nth-child(3) { animation-delay: .75s; }
  .auth-hero__tile { animation: hero-card-drop var(--t-slow) var(--ease-drop) both; }
  .auth-hero__tile:nth-child(2) { animation-delay: .15s; }
  .auth-hero__tile:nth-child(3) { animation-delay: .3s; }
  .medallion--glass { animation: medal-pop var(--t-reveal) var(--ease-drop) .3s both; }
}
/* photo: a very slow settle from 1.06 to 1 */
@keyframes hero-photo-settle { from { scale: 1.06; } }
@keyframes hero-photo-settle-flipped { from { scale: -1.06 1.06; } }
/* decorative lines: fade up while easing in from a slightly larger size */
@keyframes hero-lines-in { from { opacity: 0; scale: 1.08; } }
/* glass cards fall in from above and settle with a small overshoot */
@keyframes hero-card-drop {
  from { opacity: 0; translate: 0 -28px; scale: .96; }
}
/* the glass medallion on the verify hero grows in with a small overshoot */
@keyframes medal-pop { from { opacity: 0; scale: .7; } }

/* ---- Hero panel -------------------------------------------------------- */
.auth-hero {
  --hero-from: color-mix(in srgb, var(--burgundy-deep) 68%, transparent);
  --hero-to: color-mix(in srgb, var(--navy) 72%, transparent);
  --hero-angle: 135deg;
  --hero-peach: color-mix(in srgb, var(--amber) 42%, var(--text-on-dark));
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-10) var(--gutter) var(--sp-6);
  color: var(--text-on-dark);
  background: var(--navy);
  border-start-start-radius: var(--r-24);
  border-start-end-radius: var(--r-24);
}
/* brand gradient over the photo plus two soft glows (amber top corner, blue bottom corner) */
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(24rem 24rem at 100% 0, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%),
    radial-gradient(20rem 20rem at 0 100%, color-mix(in srgb, var(--line-cool) 16%, transparent), transparent 70%),
    linear-gradient(var(--hero-angle), var(--hero-from), var(--hero-to));
}
.auth-hero--soft { --hero-to: color-mix(in srgb, var(--navy-soft) 66%, transparent); }
/* forgot, reset: the design multiplies a burgundy-to-navy gradient into the photo (the picture stays visible) */
.auth-hero--deep::before {
  mix-blend-mode: multiply;
  background: linear-gradient(
    122deg,
    color-mix(in srgb, var(--burgundy) 90%, transparent),
    color-mix(in srgb, var(--burgundy-deep) 85%, transparent),
    color-mix(in srgb, var(--navy) 95%, transparent)
  );
}
/* the two soft glows move to the second layer; forgot also fades to solid navy at the bottom */
.auth-hero--deep::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(24rem 24rem at 100% 0, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%),
    radial-gradient(20rem 20rem at 0 100%, color-mix(in srgb, var(--line-cool) 16%, transparent), transparent 70%);
}
/* forgot: the design mirrors the photo */
.auth-hero--fade .media-cover { scale: -1 1; }
.auth-hero--fade::after {
  background:
    radial-gradient(24rem 24rem at 100% 0, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%),
    linear-gradient(
      to top,
      var(--navy),
      transparent 50%,
      color-mix(in srgb, var(--burgundy) 40%, transparent)
    ) 0 100% / 100% 83% no-repeat;
}
.auth-hero__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}

.auth-hero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  width: min(100%, 32rem);
  margin: auto;
}
.auth-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  background: var(--on-dark-15);
  border-radius: var(--r-full);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.auth-hero__badge .icon { font-size: .875rem; color: var(--hero-peach); }
/* 36px in the design, where the line overflows its 512px box; 30px keeps it on one line inside the column */
.auth-hero__title {
  margin-block-start: var(--sp-2);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.6;
  text-wrap: balance;
}
.auth-hero__lead { font-size: var(--fs-14); line-height: 1.85; color: var(--rose-pale); }

.auth-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  width: 100%;
  margin-block-start: var(--sp-6);
}
.auth-hero__stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--sp-1);
  padding: var(--sp-4);
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.auth-hero__stat-value {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1.5;
  color: var(--hero-peach);
}
.auth-hero__stat-value .icon { font-size: 1.0625rem; }
.auth-hero__stat-label { font-size: var(--fs-12); line-height: 1.5; color: var(--rose-pale); }

/* glass icon tiles (forgot) and the round medallion (verify) above the hero title */
.auth-hero__tiles { display: flex; gap: var(--sp-2); margin-block-end: var(--sp-2); }
.auth-hero__tile {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--hero-peach);
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.auth-hero__tile .icon { font-size: 1.375rem; }
.auth-hero__tile--cool { color: var(--line-cool); }
.auth-hero__tile--amber { color: var(--amber-light); }

.auth-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
}
.auth-hero__foot--ruled {
  padding-block-start: var(--sp-4);
  border-block-start: 1px solid var(--line-on-dark);
}
.auth-hero__copy { color: var(--rose-pale); }
.auth-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--amber-light);
}
.auth-hero__trust .icon { font-size: .9375rem; }

/* ---- Medallion (verify: on the page and, larger, in the hero) ---------- */
.medallion {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: var(--sh-sm), 0 0 0 .5rem color-mix(in srgb, var(--amber) 14%, transparent);
}
.medallion__disc {
  display: grid;
  place-items: center;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  color: var(--amber-ink);
  background: color-mix(in srgb, var(--amber-light) 20%, transparent);
}
.medallion__disc .icon { font-size: 2rem; }
.medallion__tick {
  position: absolute;
  inset-block-end: -.25rem;
  inset-inline-end: -.25rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--text-on-dark);
  background: var(--burgundy);
  box-shadow: var(--sh-xs);
}
.medallion__tick .icon { font-size: .75rem; }
.medallion--glass {
  align-self: center;
  width: 6rem;
  height: 6rem;
  background: var(--line-on-dark);
  box-shadow: var(--sh-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.medallion--glass .medallion__disc { width: 75%; height: 75%; color: var(--hero-peach); }
.medallion--glass .medallion__tick {
  inset-block-end: 0;
  inset-inline-end: 0;
  width: 2rem;
  height: 2rem;
  color: var(--amber-ink);
  background: var(--hero-peach);
}

/* ---- Meta bar, pills, back link ---------------------------------------- */
.auth-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
}
.auth-meta--end { justify-content: flex-end; }
.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) .625rem;
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  background: var(--line);
  border-radius: var(--r-full);
}
.auth-pill::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--amber-light);
}
.auth-pill--sand { background: var(--sand); }
.auth-pill--sand::after { background: var(--amber-ink); }
.auth-pill--icon::after { content: none; }
.auth-pill .icon { font-size: .8125rem; color: var(--amber-ink); }
/* text link with an arrow; the tap area is 44px tall without changing the row rhythm */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 2.75rem;
  margin-block: -.625rem;
  font-size: var(--fs-12);
  line-height: 1.5;
  color: var(--text);
  transition: color var(--t-fast) var(--ease);
}
.auth-back .icon { font-size: .75rem; }
.auth-back--strong {
  align-self: center;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--burgundy);
}
@media (hover: hover) {
  .auth-back:hover { color: var(--burgundy-deep); text-decoration: underline; text-underline-offset: .25em; }
}

/* ---- Card -------------------------------------------------------------- */
.auth-card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-5);
  background: var(--surface);
  border-radius: var(--r-12);
  box-shadow: var(--sh-lg);
}
.auth-card--lined { border: 1px solid var(--line-rose); }
/* two soft glows in opposite corners */
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(11rem 11rem at 0 0, color-mix(in srgb, var(--line-cool) 60%, transparent), transparent 72%),
    radial-gradient(12rem 12rem at 100% 100%, color-mix(in srgb, var(--amber) 20%, transparent), transparent 72%);
}

/* ---- Heading block ----------------------------------------------------- */
.auth-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-1);
}
.auth__column--center .auth-head { align-items: center; }
.auth-head__icon {
  width: 3rem;
  height: 2.6875rem;
  color: var(--burgundy-deep);
  background: var(--sand);
  box-shadow: var(--sh-xs);
}
.auth-head__eyebrow {
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-soft);
}
.auth-head__title {
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}
.auth-head__title--lg { font-size: var(--fs-h1); line-height: 1.45; }
.auth-head__title--ink { color: var(--ink); }
.auth-head__lead { font-size: var(--fs-14); line-height: 1.7; color: var(--text); }
.auth-head__lead--lg { font-size: var(--fs-16); line-height: 1.625; }

/* ---- Form parts -------------------------------------------------------- */
.auth-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-form .input { min-height: 3rem; }
.auth-form__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}
.auth-form__forgot {
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--burgundy-deep);
  padding-block: .875rem;
  margin-block: -.875rem;
}
@media (hover: hover) {
  .auth-form__forgot:hover { text-decoration: underline; text-underline-offset: .25em; }
}
.auth-form__hint {
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.auth-form__check { font-size: var(--fs-14); align-items: center; }
.auth-form__check .check__box { margin-block-start: 0; }
.auth-form__check--sm { font-size: var(--fs-12); font-weight: 700; }
.auth-submit--lg { font-size: var(--fs-18); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* the Google button (btn--soft) and the resend button (btn--line, bold as designed) */
.auth-google, .auth-resend { font-size: var(--fs-14); }
.auth-google .icon { font-size: 1.25rem; }
.auth-resend { font-weight: 700; }
.auth-resend .icon { font-size: .8125rem; color: var(--navy-soft); }

/* three small facts under the form */
.auth-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-2);
  background: color-mix(in srgb, var(--sand) 60%, transparent);
  border-radius: var(--r-12);
}
.auth-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .125rem;
  text-align: center;
  font-size: var(--fs-11);
  line-height: 1.45;
  color: var(--text);
}
.auth-trust__item .icon { font-size: .9375rem; color: var(--burgundy-deep); }
.auth-trust__item--navy .icon { color: var(--navy-soft); }
.auth-trust__item--amber .icon { color: var(--amber-ink); }
.auth-trust__value { font-weight: 700; color: var(--ink); }

/* ---- Links under the card ---------------------------------------------- */
.auth-alt {
  font-size: var(--fs-14);
  line-height: 1.7;
  text-align: center;
  color: var(--text);
}
.auth-alt__link {
  display: inline-flex;
  align-items: center;
  gap: .125rem;
  padding-block: .625rem;
  font-weight: 700;
  color: var(--burgundy-deep);
}
.auth-alt__link .icon { font-size: .5rem; }
@media (hover: hover) {
  .auth-alt__link:hover { text-decoration: underline; text-underline-offset: .25em; }
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1) var(--sp-4);
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.auth-links__item { display: inline-flex; align-items: center; gap: var(--sp-4); }
/* separator dots between the trust links: only where the row stays on one line (not on phones) */
@media (min-width: 40rem) {
  .auth-links__item + .auth-links__item::before {
    content: "";
    flex: none;
    width: .25rem;
    height: .25rem;
    border-radius: 50%;
    background: var(--line-rose-strong);
  }
}
.auth-links__text {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 2.75rem;
}
.auth-links__text .icon { font-size: .8125rem; color: var(--amber-ink); }
.auth-links__text--navy .icon { color: var(--navy-soft); }
@media (hover: hover) {
  a.auth-links__text:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
    text-underline-offset: .25em;
  }
}

/* ---- Signup: heading row, perk tiles, password pair ---------------------- */
.auth--wide { --auth-col: 42rem; }
.signup-head { display: grid; justify-items: start; gap: var(--sp-3) var(--sp-4); }
.signup-head__titles {
  padding-inline-start: var(--sp-4);
  border-inline-start: .625rem solid var(--burgundy-deep);
  border-radius: var(--r-6);
}

.signup-perks { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.signup-perk {
  flex: 1 1 10.5rem;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--sand);
  border-radius: var(--r-8);
}
.signup-perk__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--burgundy-deep);
  background: var(--burgundy-soft);
}
.signup-perk__icon .icon { font-size: 1.0625rem; }
.signup-perk--navy .signup-perk__icon {
  color: var(--navy-soft);
  background: color-mix(in srgb, var(--navy-soft) 15%, transparent);
}
.signup-perk--amber .signup-perk__icon {
  color: var(--amber-ink);
  background: color-mix(in srgb, var(--amber-ink) 15%, transparent);
}
.signup-perk__text {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.signup-perk__title { color: var(--ink); }
.signup-pair { display: grid; gap: var(--sp-4); }

/* ---- Reset: note card, plain inputs, strength meter ----------------------- */
/* a .callout--plain .callout--icon with its own tile, vertically centred */
.auth-note { --callout-bg: var(--sand); --callout-radius: var(--r-12); align-items: center; }
.auth-note__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  color: var(--burgundy-deep);
  background: var(--surface);
  border-radius: var(--r-8);
  box-shadow: var(--sh-xs);
}
.auth-note__icon .icon { font-size: 1.0625rem; }
.auth-note__text {
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.auth-note__title {
  display: block;
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
}
.auth-form .auth-input--plain {
  min-height: 3.125rem;
  background: var(--surface);
  border-color: var(--line-rose-strong);
  box-shadow: var(--sh-xs);
}
.auth-form .auth-input--tall { min-height: 3.625rem; }

.strength {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--sand);
  border-radius: var(--r-12);
}
.strength__head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.strength__level { color: var(--text-muted); }
.strength__bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .375rem; }
.strength__bar {
  height: .375rem;
  border-radius: var(--r-full);
  background: var(--line);
  transition: background-color var(--t-med) var(--ease);
}
.strength[data-level="1"] .strength__bar:nth-child(-n+1) { background: var(--burgundy); }
.strength[data-level="2"] .strength__bar:nth-child(-n+2) { background: var(--amber-deep); }
.strength[data-level="3"] .strength__bar:nth-child(-n+3) { background: var(--amber); }
.strength[data-level="4"] .strength__bar { background: var(--green); }
.strength[data-level="1"] .strength__level { color: var(--burgundy); }
.strength[data-level="2"] .strength__level,
.strength[data-level="3"] .strength__level {
  color: var(--amber-ink);
}
.strength[data-level="4"] .strength__level { color: var(--green-ink); }
.strength__rules { display: grid; gap: var(--sp-2) var(--sp-4); padding-block-start: var(--sp-1); }
.strength__rule {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
}
.strength__rule .icon { font-size: .8125rem; }
.strength__tick, .strength__rule.is-met .strength__dot { display: none; }
.strength__rule.is-met { color: var(--green-ink); }
.strength__rule.is-met .strength__tick { display: block; }

/* ---- Verify: address pill, callout, actions ------------------------------ */
.verify-mail {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  max-width: 100%;
  padding: var(--sp-1) var(--sp-4);
  font-size: var(--fs-12);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sand-strong);
  border-radius: var(--r-full);
  overflow-wrap: anywhere;
}
.verify-mail .icon { font-size: .9375rem; color: var(--navy-soft); }
/* the verify page's .callout .callout--end .callout--amber .callout--icon .callout--sm */
.verify-callout {
  --callout-bg: var(--sand);
  --callout-bar: .375rem;
  --callout-accent: var(--amber-light);
  --callout-radius: var(--r-12);
  width: 100%;
  text-align: start;
  box-shadow: var(--sh-xs);
}
.verify-callout .callout__icon { margin-block-start: .0625rem; color: var(--amber-ink); }
.verify-callout .callout__text { margin-block-start: .1875rem; }
.verify-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 100%;
  margin-block-start: var(--sp-4);
}
.verify-actions__status {
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.verify-actions__status:empty { display: none; }

/* ---- ≥ 640px: roomier card --------------------------------------------- */
@media (min-width: 40rem) {
  .auth-card { padding: var(--sp-10); }
  .auth-card--tall { padding-block-start: var(--sp-12); }
  .auth-hero { padding: var(--sp-12); }
  .auth__column--inset { padding-inline: var(--sp-4); }
  .signup-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .signup-head__lead { grid-column: 1 / -1; }
  .signup-pair, .strength__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- ≥ 768px: the design's compact labels ------------------------------ */
@media (min-width: 48rem) {
  .auth-form .field__label { font-size: var(--fs-12); }
  .auth-form__forgot, .auth-form__hint, .auth-form__check--sm { font-size: var(--fs-11); }
}

/* ---- ≥ 1024px: hero beside the form; the form keeps the larger share ---- */
@media (min-width: 64rem) {
  .auth {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "hero panel";
  }
  .auth__panel { grid-area: panel; padding: var(--sp-12) var(--sp-6); }
  .auth-hero {
    grid-area: hero;
    padding-inline: var(--sp-8);
    border-start-start-radius: 0;
    border-start-end-radius: var(--auth-hero-radius);
    border-end-end-radius: var(--auth-hero-radius);
  }
  .medallion--glass { width: 8rem; height: 8rem; }
  .medallion--glass .medallion__disc .icon { font-size: 2.5rem; }
}

/* ---- ≥ 1280px: the design's proportions (651 : 795) and 48px panel padding */
@media (min-width: 80rem) {
  .auth { grid-template-columns: minmax(0, 651fr) minmax(0, 795fr); }
  .auth__panel, .auth-hero { padding: var(--sp-12); }
}

/* ---- English (LTR) pages: the sprite has only a left-pointing arrow/chevron, which is "forward" in
   Arabic. Forward arrows in the English markup carry .auth-flip and point right. Back links keep the
   left arrow and put it before the text. */
[dir="ltr"] .auth-flip { scale: -1 1; }

/* ---- Language switch (auth pages have no site header) -------------------- */
.auth { position: relative; }
.auth-lang {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-end: var(--sp-3);
  z-index: 5;
}
