/* Sign-in flow: login, register, forgot, reset, verify.
   ---------------------------------------------------------------------------
   Split screen from the October 2026 reference: the form in a white card on
   a pale left half, the product pitch on a generated night-Earth panel on the
   right. Field icons and the panel art are generated images under
   /static/img/auth/. Scoped to body.au. No button anywhere here carries a
   shadow (owner's call, 2026-10-02). */

.au {
  --au-blue: #2f5bff;
  --au-blue-hover: #4a72ff;
  --au-line: #d9dde7;
  --au-night: #020617;
  margin: 0;
  background: #f5f7fb;
  font-family: "Public Sans", system-ui, sans-serif;
  color: #14161A;
}

/* The window's height exactly: the pitch on the right stays put, and a form
   longer than the window scrolls inside the left half. */
.au-split { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); height: 100vh; height: 100dvh; }

/* Left: the form ---------------------------------------------------------- */
.au-left {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 48px 32px;
  background: radial-gradient(120% 80% at 0% 0%, #ffffff 0%, #f3f5fa 60%, #eef1f7 100%);
}
.au-card {
  width: 100%;
  margin-block: auto; /* centred, without clipping the top once it scrolls */
  max-width: 460px;
  padding: 44px 40px 36px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e6e9f0;
}
.au-form { display: flex; flex-direction: column; gap: 18px; }
.au-form .au-form { gap: 18px; }

.au-logo { display: flex; justify-content: center; margin-bottom: 6px; }
.au-logo .logo-wordmark { width: 196px; height: 56px; background-color: #0B1433; }

.au-head { text-align: center; margin-bottom: 6px; }
.au-head h1 {
  margin: 0;
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #0B1433;
}
.au-head p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: #4A5057; }

.au-field { display: flex; flex-direction: column; gap: 8px; }
.au-field label { font-size: 14.5px; font-weight: 600; color: #14161A; }
.au-hint { margin: 0; font-size: 13px; color: #646A71; }

.au-input { position: relative; }
.au-input__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.9;
  pointer-events: none;
}
.au .field {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  font-size: 15px;
  color: #14161A;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.au .field::placeholder { color: #646A71; }
.au .field:focus { border-color: var(--au-blue); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.16); }
.au .field--code { height: 56px; padding: 0 14px; }
.au-input--icon .field { padding-left: 46px; }
.au-input--reveal .field { padding-right: 50px; }
.au-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
}
.au-eye img { width: 20px; height: auto; }
.au-eye:hover { background: #f1f3f8; }
.au-eye:focus-visible { outline: 2px solid var(--au-blue); outline-offset: 1px; }

.au-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.au-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: #14161A; cursor: pointer; }
.au-check--top { align-items: flex-start; line-height: 1.5; }
.au-check--muted { color: #4A5057; }
.au-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--au-blue);
  cursor: pointer;
}
.au-check--top input { margin-top: 1px; }

.au-link { display: inline-flex; align-items: center; gap: 6px; color: #2448E0; font-weight: 500; }
.au-link:hover { text-decoration: underline; }
.au-link svg { flex: none; }

.au .au-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}
.au .btn-primary.au-btn { background: var(--au-blue); color: #FFFFFF; box-shadow: none; }
.au .btn-primary.au-btn:hover { background: var(--au-blue-hover); }
.au .btn-primary.au-btn:focus-visible, .au .au-btn--ghost:focus-visible { outline: 2px solid #0B1433; outline-offset: 2px; }
.au .au-btn--ghost { border: 1px solid var(--au-line); color: #0B1433; background: #ffffff; }
.au .au-btn--ghost:hover { background: #f5f7fb; }

.au-switch { margin: 6px 0 0; text-align: center; font-size: 15px; color: #4A5057; }
.au-switch .au-link { margin-left: 4px; }

.au .auth-alert { border-radius: 10px; }

.au .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sign-up stepper (partials/auth_steps.html) -------------------------------- */
.au-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #646A71;
}
.au-steps li { display: inline-flex; align-items: center; gap: 8px; }
.au-steps li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-right: 0;
  background: var(--au-line);
}
.au-steps__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--au-line);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.au-steps .is-on { color: #0B1433; font-weight: 600; }
.au-steps .is-on .au-steps__n { border-color: var(--au-blue); background: var(--au-blue); color: #fff; }
.au-steps .is-done .au-steps__n { border-color: #16a34a; background: #16a34a; color: #fff; font-size: 0; }
.au-steps .is-done .au-steps__n::before { content: "\2713"; font-size: 12px; }

/* The plan step: wider card, three plans, then Stripe's embedded checkout. */
.au-split--wide { grid-template-columns: minmax(0, 66fr) minmax(0, 34fr); }
.au-split--wide .au-left { padding: 40px 32px; }
.au-split--wide .au-card { max-width: 980px; padding: 36px 40px 28px; }
.au-plan { gap: 22px; }
.au-plan .au-head { margin-bottom: 0; }
.au-period-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.au-period {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--au-line);
  border-radius: 12px;
  background: #fff;
}
.au-period label { position: relative; cursor: pointer; }
.au-period input { position: absolute; opacity: 0; pointer-events: none; }
.au-period span {
  display: inline-block;
  min-width: 96px;
  padding: 9px 20px;
  border-radius: 9px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #4A5057;
}
.au-period input:checked + span { background: var(--au-blue); color: #FFFFFF; }
.au-period input:focus-visible + span { outline: 2px solid #0B1433; outline-offset: 2px; }
.au-period-save {
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #124D1C;
  font-size: 13px;
  font-weight: 600;
}
.au-plans { display: flex; flex-direction: column; gap: 20px; }
.au-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.au-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 22px 22px;
  border: 1.5px solid var(--au-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.au-plan-card:hover { border-color: #b9c3d6; }
.au-plan-card > input { position: absolute; top: 24px; right: 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--au-blue); cursor: pointer; }
.au-plan-card:has(> input:checked) { border-color: var(--au-blue); background: #f7f9ff; }
.au-plan-card:has(> input:focus-visible) { outline: 2px solid var(--au-blue); outline-offset: 2px; }
.au-plan-card__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--au-blue);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.au-plan-card__icon { width: 56px; height: 56px; margin-bottom: 14px; }
.au-plan-card__name { font-family: "Schibsted Grotesk", sans-serif; font-size: 21px; font-weight: 700; color: #0B1433; }
.au-plan-card__for { min-height: 2.9em; font-size: 14px; line-height: 1.45; color: #4A5057; }
.au-plan-card__price { margin-top: 10px; font-size: 15px; color: #4A5057; }
.au-plan-card__price strong { font-family: "Schibsted Grotesk", sans-serif; font-size: 36px; letter-spacing: -0.02em; color: #0B1433; }
/* Only the chosen period's price shows. */
.au-plans:has(input[name="interval"][value="month"]:checked) .au-plan-card__price[data-period="year"],
.au-plans:has(input[name="interval"][value="year"]:checked) .au-plan-card__price[data-period="month"] { display: none; }
.au-plan-card__list { display: flex; flex-direction: column; gap: 11px; margin: 16px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid #e6e9f0; }
.au-plan-card__list li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.45; color: #14161A; }
.au-plan-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%232f5bff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
/* Once a plan is chosen the checkout takes the plans' place; "Change plan" brings them back. */
.au-plans.is-paying { display: none; }
.au-secure {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  background: #f8f9fc;
}
.au-secure__lock {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8edff;
  color: #2448E0;
}
.au-secure__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #646A71; }
.au-secure__text strong { font-size: 14.5px; color: #0B1433; }
.au-secure__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; }
.au-secure__logos img { display: block; width: auto; }
.au-checkout { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.au-checkout[hidden] { display: none; }
.au-checkout__head { display: flex; align-items: center; justify-content: space-between; }
.au-checkout__head h2 { margin: 0; font-family: "Schibsted Grotesk", sans-serif; font-size: 20px; color: #0B1433; }
.au-checkout__head .au-link { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; cursor: pointer; }
.au-plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid #e6e9f0;
  font-size: 14px;
  color: #4A5057;
}
.au-plan-foot__who, .au-plan-foot__note { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.au-plan-foot__who > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-plan-foot svg { flex: none; color: #646A71; }
.au-plan-foot__bar { color: #646A71; }
.au-plan-foot button.au-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
#checkout { min-height: 200px; }
.au-switch button.au-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* Payment received (pages/auth_paid.html). */
.au-paid__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: #dcfce7;
  color: #124D1C;
}
.au-paid__summary { display: flex; flex-direction: column; margin: 0; padding: 4px 18px; border: 1px solid #e6e9f0; border-radius: 12px; background: #f8f9fc; }
.au-paid__summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14.5px; }
.au-paid__summary > div + div { border-top: 1px solid #e6e9f0; }
.au-paid__summary dt { color: #646A71; }
.au-paid__summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; font-weight: 600; color: #0B1433; }
.au-paid__summary strong { font-family: "Schibsted Grotesk", sans-serif; font-size: 18px; }
.au-paid__next { text-align: center; }
a.au-btn { text-decoration: none; }

/* Right: the pitch -------------------------------------------------------- */
.au-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 18vh 72px 48px 88px;
  /* The shade keeps the copy legible where a short window brings the globe up behind it. */
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, rgba(2, 6, 23, 0.55) 50%, rgba(2, 6, 23, 0) 78%), var(--au-night) url("/static/img/auth/panel.webp") right bottom / cover no-repeat;
  color: #FFFFFF;
  overflow: hidden;
}
.au-right__in { position: relative; max-width: 660px; }
.au-right__title {
  margin: 0;
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #FFFFFF;
}
.au-right__title span {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.au-right__lead { margin: 22px 0 0; max-width: 520px; font-size: 19px; line-height: 1.5; color: #C6CBDA; }
.au-right__list { display: flex; flex-direction: column; gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; }
.au-right__list li { display: flex; align-items: center; gap: 22px; }
.au-right__list img { flex: none; width: 64px; height: 64px; }
.au-right__list strong { display: block; font-size: 18px; font-weight: 600; color: #FFFFFF; }
.au-right__list span { display: block; margin-top: 3px; font-size: 15px; color: #C6CBDA; }

/* The plan step's narrower panel (partials/auth_aside.html, .Wide). */
.au-split--wide .au-right { flex-direction: column; justify-content: space-between; padding: 14vh 48px 48px; }
.au-split--wide .au-right__title { font-size: 38px; }
.au-split--wide .au-right__lead { font-size: 16.5px; }
.au-right__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #99A1BB;
}
.au-right__eyebrow::after { content: ""; width: 48px; height: 1px; background: #3b82f6; }
.au-right__list--plan { gap: 26px; margin-top: 44px; }
.au-right__list--plan img { width: 56px; height: 56px; }
.au-right__list--plan strong { font-size: 17px; }
.au-right__list--plan span { font-size: 14.5px; }
.au-right__quote {
  position: relative;
  max-width: 280px;
  margin: 48px 0 0;
  padding-left: 16px;
  border-left: 3px solid #3b82f6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #DCE0EA;
}

@media (max-width: 1180px) {
  .au-right { padding: 14vh 48px 40px 56px; }
  .au-right__title { font-size: 42px; }
}

/* Narrow screens keep only the form; the pitch is decoration. */
@media (max-width: 1180px) {
  .au-split--wide { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100vh; }
  .au-split--wide .au-left { overflow: visible; }
  .au-split--wide .au-right { display: none; }
}
@media (max-width: 960px) {
  .au-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .au-plan-card__for { min-height: 0; }
  .au-secure { flex-wrap: wrap; }
  .au-secure__text { flex: 1 1 180px; min-width: 0; }
  .au-secure__logos { flex-basis: 100%; justify-content: flex-start; margin-left: 0; }
  .au-split { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100vh; }
  .au-left { overflow: visible; }
  .au-right { display: none; }
}
@media (max-width: 520px) {
  .au-left { padding: 24px 16px; align-items: flex-start; }
  .au-card { padding: 32px 22px 28px; }
  .au-head h1 { font-size: 27px; }
  .au-row { flex-wrap: wrap; }
  .au-split--wide .au-left { padding: 16px 12px; }
  .au-split--wide .au-card { padding: 28px 18px 22px; }
  .au-period span { min-width: 0; padding: 8px 16px; }
  .au-steps { gap: 6px; font-size: 12.5px; }
  .au-steps li { white-space: nowrap; gap: 6px; }
  .au-steps li + li::before { width: 14px; }
}
