:root {
  --auth-navy: #14273e;
  --auth-orange: #ff4f00;
  --auth-peach: #fff1ea;
  --auth-paper: #fffcf8;
  --auth-slate: #596474;
  --auth-line: #d9dee5;
  --auth-focus: #1258bb;
}

body:has(.auth-main) {
  min-width: 320px;
  background: #f3f5f7;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

.auth-app-boot {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--auth-paper);
  color: var(--auth-navy);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.auth-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 36px 24px;
  color: var(--auth-navy);
}

.auth-card {
  width: min(100%, 1040px);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  overflow: hidden;
  border: 1px solid #dce1e7;
  border-radius: 18px;
  background: var(--auth-paper);
  box-shadow: 0 18px 48px rgb(20 39 62 / 8%);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 62px);
  background: var(--auth-navy);
  color: var(--auth-paper);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-logo {
  flex: 0 0 46px;
  outline: 1px solid rgb(255 255 255 / 18%);
}

.auth-brand strong {
  display: block;
  color: var(--auth-paper);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.auth-brand strong span { color: var(--auth-orange); }
.auth-brand small { display: block; margin-top: 6px; color: #cbd4df; font-size: 12px; }

.auth-heading { margin-top: auto; padding-top: 70px; }

.auth-eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: #ffc8ae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

.auth-heading h1 {
  max-width: 410px;
  color: var(--auth-paper);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: -1.3px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.auth-heading > p {
  max-width: 390px;
  margin-top: 18px;
  color: #d3dbe5;
  font-size: 15px;
  line-height: 1.7;
}

.auth-intro-detail {
  margin-top: 54px;
  padding-top: 19px;
  border-top: 1px solid rgb(255 255 255 / 22%);
  color: #cbd4df;
  font-size: 13px;
  line-height: 1.6;
}

.auth-form-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 58px);
  background: var(--auth-paper);
}

.auth-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 25px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--auth-line);
}

.auth-preferences label,
.auth-field label {
  color: var(--auth-navy);
  font-size: 13px;
  font-weight: 650;
}

.auth-preferences select,
.auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #aab4c0;
  border-radius: 8px;
  background: #fff;
  color: var(--auth-navy);
  font: inherit;
  font-size: 14px;
}

.auth-preferences select:focus-visible,
.auth-field input:focus-visible,
.auth-primary:focus-visible,
.auth-secondary:focus-visible,
.auth-text-button:focus-visible,
.auth-inline-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--auth-focus) 38%, transparent);
  outline-offset: 2px;
  border-color: var(--auth-focus);
}

.auth-preferences-note {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--auth-slate);
  font-size: 12px;
  line-height: 1.5;
}

.auth-purchase-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 23px;
  padding: 13px 14px;
  border: 1px solid #f1c4ad;
  border-radius: 8px;
  background: var(--auth-peach);
}

.auth-purchase-note > span {
  display: grid;
  flex: 0 0 21px;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--auth-orange);
  color: var(--auth-navy);
  font-size: 13px;
  font-weight: 800;
}

.auth-purchase-note p {
  color: var(--auth-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; min-width: 0; }
.auth-field small { color: var(--auth-slate); font-size: 12px; line-height: 1.5; }

.auth-primary,
.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.auth-primary { margin-top: 3px; background: var(--auth-orange); color: var(--auth-navy); }
.auth-primary:hover { background: #ed4a00; }
.auth-primary:disabled,.auth-secondary:disabled { opacity: 0.65; cursor: wait; }
.auth-secondary { border-color: #bac2cc; background: #fff; color: var(--auth-navy); }
.auth-secondary:hover { background: #f6f7f8; }

.auth-secondary-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding-top: 4px;
  color: var(--auth-slate);
  font-size: 13px;
  text-align: center;
}

.auth-secondary-actions p { color: var(--auth-slate); }
.auth-text-button,.auth-inline-button {
  min-height: 44px;
  padding: 8px;
  background: transparent;
  color: #173d68;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-inline-button { min-height: 44px; padding: 4px 3px; }
.auth-signout { align-self: center; margin-top: 10px; }

.auth-error,.auth-status,.auth-neutral-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.55;
}
.auth-error { border: 1px solid #e4b4b8; background: #fff2f2; color: #92212b; }
.auth-status { border: 1px solid #b8d8c7; background: #f0faf4; color: #205d3d; }
.auth-error[hidden],.auth-status[hidden] { display: none; }
.auth-neutral-note { border: 1px solid var(--auth-line); background: #f6f7f8; color: var(--auth-slate); }

.auth-recheck-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--auth-navy);
  overflow: auto;
}
.auth-recheck-backdrop::backdrop {
  background: rgb(20 39 62 / 64%);
  backdrop-filter: blur(7px);
}
.auth-recheck-dialog {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 440px);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 18px;
  background: var(--auth-paper);
  box-shadow: 0 24px 80px rgb(9 22 39 / 28%);
  color: var(--auth-navy);
  text-align: center;
}
.auth-recheck-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ffd1be;
  border-radius: 50%;
  background: var(--auth-peach);
  color: var(--auth-orange);
  font-size: 21px;
  font-weight: 800;
}
.auth-recheck-dialog h2 { margin: 0; font-size: clamp(20px, 4vw, 24px); line-height: 1.25; }
.auth-recheck-dialog .auth-error { width: 100%; text-align: left; }
.auth-recheck-dialog .auth-primary { width: 100%; }
.auth-recheck-dialog :focus-visible { outline: 3px solid var(--auth-focus); outline-offset: 3px; }

.auth-verify-copy,.auth-access-copy { display: grid; gap: 12px; margin-bottom: 18px; }
.auth-verify-copy p,.auth-access-copy p { color: var(--auth-slate); font-size: 14px; line-height: 1.65; }
.auth-verify-copy strong { overflow-wrap: anywhere; color: var(--auth-navy); font-size: 14px; }
.auth-actions { display: grid; gap: 10px; margin-top: 10px; }
.auth-loading { color: var(--auth-slate); font-size: 14px; text-align: center; }
.auth-purchase-link { margin-bottom: 8px; }

.auth-footer {
  margin-top: auto;
  padding-top: 27px;
  color: #7b8490;
  font-size: 11px;
  text-align: center;
}
.auth-footer span { padding: 0 3px; }

@media (max-width: 760px) {
  .auth-main { display: block; min-height: 100svh; padding: 0; background: var(--auth-paper); }
  .auth-card { width: 100%; min-height: 100svh; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .auth-intro { min-height: 215px; padding: 25px 24px 24px; }
  .auth-brand { gap: 10px; }
  .auth-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .auth-heading { margin-top: 26px; padding-top: 0; }
  .auth-eyebrow { margin-bottom: 7px; font-size: 10px; }
  .auth-heading h1 { font-size: 26px; }
  .auth-heading > p { margin-top: 9px; font-size: 13px; line-height: 1.5; }
  .auth-intro-detail { display: none; }
  .auth-form-area { min-height: calc(100svh - 215px); justify-content: flex-start; padding: 22px 24px 28px; }
  .auth-preferences { margin-bottom: 18px; padding-bottom: 14px; }
  .auth-preferences label,.auth-field label { font-size: 12px; }
  .auth-preferences select,.auth-field input { min-height: 48px; font-size: 16px; }
  .auth-purchase-note { margin-bottom: 18px; }
  .auth-form { gap: 14px; }
  .auth-primary,.auth-secondary { min-height: 48px; }
  .auth-footer { margin-top: 28px; }
}

@media (max-width: 370px) {
  .auth-intro { padding-left: 19px; padding-right: 19px; }
  .auth-form-area { padding-left: 19px; padding-right: 19px; }
  .auth-preferences { column-gap: 8px; }
  .auth-preferences select { padding-right: 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-main *, .auth-main *::before, .auth-main *::after { scroll-behavior: auto; transition-duration: 0.01ms; animation-duration: 0.01ms; }
}
