/* The landing page's account pop-up (authpop.js; Rodney's two mocks,
   2026-10-22). Sign in = the night photo (login-bg.jpg, the old sign-in
   page's) beside Welcome back; create account = the form in a grey column
   beside the five plans. Heavier type than the rest of the landing, as his
   mocks are (navy 700 headings), on the house amber, navy and hairlines.
   Its own prefix, nxau-, and no page-wide rules: style.css (the sign-in
   page's sheet) resets every element and cannot load here. */
body.nxau-open { overflow: hidden; }
/* Centred by the dialog's auto margins, not place-items: a dialog taller than
   the window then starts at the top and scrolls, instead of losing its head. */
.nxau-scrim { position: fixed; inset: 0; z-index: 100; display: grid; justify-items: center; padding: 24px; background: rgba(10, 20, 42, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.nxau-scrim[hidden] { display: none; }
.nxau-scrim.nxau-top { z-index: 110; }
.nxau { position: relative; margin: auto 0; display: grid; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(10, 20, 42, 0.35); overflow: hidden; color: var(--ink); width: min(690px, 100%); grid-template-columns: 285px 1fr; min-height: 560px; }
.nxau[data-mode="signup"] { width: min(1040px, 100%); grid-template-columns: 340px 1fr; }
.nxau-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--steel); cursor: pointer; }
.nxau-close:hover { background: rgba(17, 24, 39, 0.06); color: var(--ink); }
.nxau-close svg, .nxau-x svg { width: 20px; height: 20px; }

/* which parts show in which layout */
.nxau[data-mode="signin"] .nxau-signup, .nxau[data-mode="signin"] .nxau-plans,
.nxau[data-mode="signup"] .nxau-photo, .nxau[data-mode="signup"] .nxau-signin { display: none; }
.nxau.panelled .nxau-signin, .nxau.panelled .nxau-signup, .nxau.panelled .nxau-plans { display: none; }

/* ---------- the photo ---------- */
.nxau-photo { position: relative; display: flex; flex-direction: column; padding: 56px 30px 36px; color: #fff; background: linear-gradient(180deg, rgba(10, 20, 42, 0.55) 0%, rgba(10, 20, 42, 0.05) 40%, rgba(10, 20, 42, 0.15) 65%, rgba(10, 20, 42, 0.85) 100%), url("login-bg.jpg") 62% center / cover no-repeat #16181d; }
.nxau-photobrand { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.nxau-photobrand span { font-weight: 300; }
.nxau-kicker { margin-top: 18px; font-size: 13px; letter-spacing: 0.38em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); line-height: 1.6; }
.nxau-photofoot { margin-top: auto; font-size: 15px; line-height: 1.45; }
.nxau-photofoot i { display: block; width: 40px; height: 3px; background: var(--amber-500); margin-bottom: 18px; }

/* ---------- forms ---------- */
.nxau-signin { padding: 64px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.nxau-signup { padding: 22px 26px 22px; background: #f6f7f9; border-right: var(--hair); display: flex; flex-direction: column; }
/* .nxau first: the landing's `.nxlp h2` weight rule would win otherwise. */
.nxau .nxau-h { margin: 0 0 8px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--navy); }
.nxau .nxau-signup .nxau-h { font-size: 26px; }
.nxau-lede { margin: 0 0 22px; font-size: var(--t-body); line-height: 1.45; color: var(--steel); }
.nxau-signup .nxau-lede { font-size: var(--t-ui); margin-bottom: 14px; }
.nxau-field { display: block; margin: 0 0 14px; }
.nxau-field > span:first-child { display: block; font-size: var(--t-small); color: var(--steel); margin-bottom: 6px; }
.nxau-field input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #d6dae1; border-radius: 8px; background: #fff; font: inherit; font-size: var(--t-ui); color: var(--ink); }
.nxau-field input::placeholder { color: #9aa1ac; }
.nxau-field input:focus { outline: 2px solid var(--amber-500); outline-offset: -1px; border-color: transparent; }
/* create account: the label sits INSIDE the box, as in the mock */
.nxau-field.boxed { position: relative; margin-bottom: 9px; }
.nxau-field.boxed > span:first-child { position: absolute; top: 6px; left: 13px; z-index: 1; font-size: var(--t-caption); margin: 0; pointer-events: none; }
.nxau-field.boxed input { height: 46px; padding-top: 16px; font-size: var(--t-small); }
.nxau-pw { position: relative; display: block; }
.nxau-pw input { padding-right: 44px; }
.nxau-eye { position: absolute; right: 8px; bottom: 9px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--steel); cursor: pointer; border-radius: 6px; }
.nxau-field:not(.boxed) .nxau-eye { bottom: 8px; }
.nxau-eye svg { width: 18px; height: 18px; }
.nxau-forgotrow { text-align: right; margin: -4px 0 18px; }
.nxau-link { border: 0; background: none; padding: 0; font: inherit; font-size: inherit; color: #1f5fd1; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nxau-forgotrow .nxau-link { font-size: var(--t-small); }
.nxau-primary, .nxau-secondary { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; height: 46px; border-radius: 8px; border: 1px solid var(--amber-500); background: var(--amber-500); color: var(--navy); font: inherit; font-size: var(--t-ui); font-weight: 600; cursor: pointer; }
.nxau-primary:hover { background: var(--amber-600); border-color: var(--amber-600); }
.nxau-primary:disabled { opacity: 0.6; cursor: wait; }
.nxau-secondary { background: #fff; border-color: var(--navy); }
.nxau-secondary:hover { background: rgba(29, 42, 77, 0.05); }
.nxau-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--ash); font-size: var(--t-small); }
.nxau-or::before, .nxau-or::after { content: ""; flex: 1; border-top: var(--hair); }
.nxau-swap { margin: 0; text-align: center; font-size: var(--t-small); color: var(--steel); }
.nxau-swap.ruled { margin-top: 14px; padding-top: 12px; border-top: var(--hair); }
.nxau-error { margin: 0 0 10px; min-height: 0; font-size: var(--t-small); color: #b42318; }
.nxau-error:empty { display: none; }
.nxau-legalgate { margin: 0 0 12px; display: grid; gap: 6px; font-size: var(--t-small); }
.nxau-legalgate[hidden] { display: none; }
.nxau-legalgate .auth-legal-row { display: flex; gap: 8px; align-items: flex-start; }
.nxau-legalgate .auth-doclink { border: 0; background: none; padding: 0; font: inherit; color: #1f5fd1; text-decoration: underline; cursor: pointer; }

/* create account extras */
.nxau-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0 0 18px; border-radius: 10px; background: #e9ecf1; }
.nxau-tabs button { height: 36px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: var(--t-small); color: var(--steel); cursor: pointer; }
.nxau-tabs [aria-selected="true"] { background: #fff; color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--amber-500), 0 1px 2px rgba(17, 24, 39, 0.08); cursor: default; }
.nxau-mark { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 19px; letter-spacing: -0.02em; color: var(--navy); }
.nxau-mark img { width: 32px; height: 32px; border-radius: 50%; }
.nxau-mark b { font-weight: 350; color: var(--ash); }
.nxau-agree { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; font-size: var(--t-label); line-height: 1.45; color: var(--steel); }
.nxau-agree input { margin-top: 2px; accent-color: var(--navy); }
.nxau.waitlist .nxau-seatonly { display: none; }
.nxau:not(.waitlist) .nxau-waitonly { display: none; }
/* Your role: a boxed field like the inputs, its own chevron (2026-11-16). */
.nxau-field select { width: 100%; height: 46px; padding: 16px 36px 0 14px; border: 1px solid #d6dae1; border-radius: 8px; background: #fff; font: inherit; font-size: var(--t-small); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.nxau-field select:invalid { color: #9aa1ac; }
.nxau-field select option { color: var(--ink); }
.nxau-field select:focus { outline: 2px solid var(--amber-500); outline-offset: -1px; border-color: transparent; }
.nxau-select::after { content: ""; position: absolute; right: 16px; top: 19px; width: 7px; height: 7px; border-right: 1.6px solid var(--steel); border-bottom: 1.6px solid var(--steel); transform: rotate(45deg); pointer-events: none; }
.nxau-note, .nxau-total { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 12px; border-radius: 8px; background: #e9f0fb; color: #33415c; font-size: var(--t-label); line-height: 1.45; }
.nxau-note svg, .nxau-total svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #1f5fd1; }

/* ---------- the plans ---------- */
.nxau-plans { padding: 26px 26px 20px; display: flex; flex-direction: column; min-width: 0; }
.nxau .nxau-planh { margin: 0 0 4px; padding-right: 40px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.nxau-plans .nxau-lede { font-size: var(--t-small); margin-bottom: 14px; }
.nxau-waitnote { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 10px 10px 14px; border-radius: 8px; background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); font-size: var(--t-small); line-height: 1.45; }
.nxau-waitnote[hidden] { display: none; }
.nxau-waitnote p { margin: 0; flex: 1; }
.nxau-waitnote b { font-weight: 600; }
.nxau-x { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; }
.nxau-x:hover { background: rgba(122, 91, 30, 0.1); }
.nxau-planlist { display: grid; gap: 10px; }
.nxau-plan { display: grid; grid-template-columns: 200px 1fr 128px; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid #e3e6eb; border-radius: 10px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.nxau-plan:hover { border-color: var(--amber-line); }
.nxau-plan:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.nxau-plan[aria-checked="true"] { background: var(--amber-bg); border-color: var(--amber-500); }
.nxau-planname { display: flex; align-items: center; gap: 10px; }
.nxau-planname h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.nxau-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #aab1bc; background: #fff; display: grid; place-items: center; }
.nxau-plan[role="checkbox"] .nxau-dot { border-radius: 5px; }
.nxau-plan[aria-checked="true"] .nxau-dot { border-color: var(--navy); }
.nxau-plan[aria-checked="true"] .nxau-dot::after { content: ""; width: 9px; height: 9px; border-radius: inherit; background: var(--navy); }
.nxau-plan[role="checkbox"][aria-checked="true"] .nxau-dot::after { border-radius: 2px; }
.nxau-tag { display: inline-block; white-space: nowrap; margin: 6px 0 0 28px; padding: 3px 8px; border-radius: 999px; background: var(--amber-500); color: var(--navy); font-size: var(--t-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.nxau-kind { display: block; margin: 4px 0 0 28px; font-size: var(--t-caption); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.nxau-planid p { margin: 6px 0 0 28px; font-size: var(--t-small); line-height: 1.4; color: var(--steel); }
.nxau-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nxau-plan li { position: relative; padding-left: 20px; font-size: var(--t-label); line-height: 1.4; }
.nxau-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.nxau-planprice { padding-left: 14px; border-left: var(--hair); display: grid; gap: 2px; }
.nxau-planprice b { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.nxau-planprice span { font-size: var(--t-small); color: var(--ink); }
.nxau-planprice small { margin-top: 4px; font-size: var(--t-caption); line-height: 1.4; color: var(--steel); }
.nxau-total { margin: 12px 0 0; }

/* ---------- the panel ----------
   A message — the wait list's thank-you, check your email, reset, a company
   already here — is a small card of its own, not the 1040px sign-up frame
   (or the photo's half) around three paragraphs (Rodney, 2026-11-16: "the
   card is extremely oversized for the information"). */
.nxau.panelled, .nxau.panelled[data-mode="signup"] { width: min(480px, 100%); grid-template-columns: minmax(0, 1fr); min-height: 0; }
.nxau.panelled .nxau-photo { display: none; }
.nxau-panel { grid-column: 1 / -1; padding: 36px 32px 28px; display: flex; flex-direction: column; }
.nxau-panel[hidden] { display: none; }
.nxau .nxau-panel .nxau-h { font-size: 26px; padding-right: 28px; }
.nxau-panel .nxau-lede { margin-bottom: 10px; font-size: var(--t-ui); }
/* The buttons share the card's width, so neither reads as the lesser. */
.nxau-panelactions { display: flex; gap: 10px; margin-top: 14px; }
.nxau-panelactions > button { flex: 1 1 0; min-width: 0; }
.nxau-panel .nxau-field { margin-top: 4px; }

/* ---------- the Terms / Privacy reader ---------- */
.nxau-doc { position: relative; margin: auto 0; width: min(760px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; padding: 30px 32px; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(10, 20, 42, 0.35); }
.nxau-doc .nxau-lede { margin-bottom: 12px; font-size: var(--t-small); }
.nxau-docbody { overflow-y: auto; flex: 1; font-size: var(--t-small); line-height: 1.55; color: var(--ink); }
.nxau-docbody .auth-legal-page { white-space: pre-wrap; margin: 0 0 16px; }
.nxau-docbody .auth-legal-page-img { display: block; max-width: 100%; margin: 0 0 16px; border: var(--hair); }
.nxau-docbody .auth-dialog-copy { color: var(--steel); }

/* ---------- narrower screens ---------- */
@media (max-width: 960px) {
  .nxau[data-mode="signup"] { grid-template-columns: 1fr; width: min(640px, 100%); }
  /* One column: the plans first, so the choice is made before the form. */
  .nxau-plans { order: -1; border-bottom: var(--hair); }
  .nxau-signup { border-right: 0; }
  .nxau-plan { grid-template-columns: 1fr auto; }
  .nxau-plan ul { grid-column: 1 / -1; grid-row: 2; padding-left: 28px; }
  .nxau-planprice { grid-column: 2; grid-row: 1; text-align: right; }
}
@media (max-width: 700px) {
  .nxau-scrim { padding: 0; place-items: stretch; }
  .nxau, .nxau[data-mode="signup"] { margin: 0; width: 100%; min-height: 100%; border-radius: 0; grid-template-columns: 1fr; align-content: start; }
  .nxau-photo { min-height: 150px; padding: 26px 24px 20px; }
  .nxau-photobrand { font-size: 30px; }
  .nxau-kicker { margin-top: 10px; font-size: 11px; }
  .nxau-photofoot { display: none; }
  .nxau-signin { padding: 28px 24px 32px; grid-column: 1; }
  /* A message stays a card on a phone too, with the page dimmed around it. */
  .nxau.panelled, .nxau.panelled[data-mode="signup"] { margin: auto 16px; width: auto; min-height: 0; border-radius: 16px; }
  .nxau-panel { padding: 28px 22px 22px; }
  .nxau-panelactions { flex-direction: column; }
  .nxau-panelactions > button { flex: none; }
  .nxau-signup, .nxau-plans { padding: 20px 18px; }
  .nxau .nxau-h { font-size: 27px; }
  .nxau-close { color: #fff; }
  .nxau[data-mode="signup"] .nxau-close, .nxau.panelled .nxau-close { color: var(--steel); }
  .nxau-planprice { padding-left: 10px; }
  .nxau-doc { max-height: 100vh; border-radius: 0; padding: 24px 20px; }
}
