/* Auth shell for /login/ and every /signup/ page (signup-src/auth-shell.css, copied to site/light/ by inject_signup.py).
   Builds on account.css (acc-*) and the shared tokens; everything new is prefixed ar-. */

/* ================================================================ Layout */
.ar-auth { gap: 16px; }
@media (min-width: 1024px) {
  .ar-auth.has-showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; }
}
.ar-card { max-width: 420px; animation: ar-in 520ms var(--acc-ease) both; }

/* Signup: card holds the old Tailwind form, so reset the bits that fight the acc-* look. */
.ar-signup .ar-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.ar-signup .ar-steps { margin-bottom: 24px; }
.ar-signup #signup-form { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.ar-signup #step-account { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ar-signup #step-account[hidden] { display: none; }
.ar-signup .acc-pw-block { display: flex; flex-direction: column; gap: 6px; }
.ar-consent { align-items: flex-start; min-height: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.ar-consent input { margin-top: 1px; }
.ar-consent a { color: var(--mint-ink); font-weight: 500; }
.ar-signup .ar-card > .acc-foot { margin-top: 20px; }
.ar-fine { margin: 16px 0 0; }

/* Signed in: the plan step needs the full width, so the showcase steps aside. */
.ar-auth:has(#step-one:not([hidden]), #step-two:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.ar-auth:has(#step-one:not([hidden]), #step-two:not([hidden])) .acc-showcase { display: none; }
.ar-auth:has(#step-one:not([hidden]), #step-two:not([hidden])) .ar-card { max-width: 760px; }

/* ================================================================ Steps (signup) */
.ar-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ar-steps li { position: relative; padding-top: 10px; font: 500 12px/16px var(--font-sans); color: var(--ink-subtle); }
.ar-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 9999px; background: var(--border); transition: background-color var(--acc-normal) var(--acc-ease); }
.ar-steps li:has(~ li[aria-current="step"])::before { background: rgb(10 127 88 / 0.35); }
.ar-steps li[aria-current="step"] { color: var(--ink); }
.ar-steps li[aria-current="step"]::before { background: var(--mint-ink); }

/* ================================================================ Inputs with icons */
.ar-input { position: relative; display: block; }
.ar-input > .ar-ico { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; margin-top: -9px; color: var(--ink-subtle); pointer-events: none; transition: color var(--acc-fast) var(--acc-ease); }
.ar-input .acc-input { padding-left: 44px; }
.ar-input:focus-within > .ar-ico { color: var(--mint-ink); }

/* ================================================================ Buttons and notes */
.ar-submit .ar-arrow { transition: transform var(--acc-fast) var(--acc-ease); }
.ar-submit:hover .ar-arrow { transform: translateX(3px); }
.ar-submit[aria-busy="true"] .ar-arrow, .ar-submit:disabled .ar-arrow { display: none; }
.ar-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.ar-note svg { width: 16px; height: 16px; flex: none; color: var(--mint-ink); }

/* ================================================================ Showcase */
.ar-show { isolation: isolate; }
.ar-field { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.ar-show::before { z-index: 0; }
.ar-show::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgb(11 12 14 / 0.72), rgb(11 12 14 / 0) 75%);
}
.ar-show-inner { z-index: 1; gap: 18px; }
.ar-eyebrow { margin: 0; font: 600 12px/16px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mint-on-inverse, #83f6c8); }
.ar-show .acc-show-title { max-width: 380px; }
.ar-show .acc-odds-card { margin-top: 6px; animation: ar-in 640ms var(--acc-ease) 180ms both, ar-float 8s ease-in-out 900ms infinite; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; animation: ar-in 640ms var(--acc-ease) 320ms both; }
.ar-chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--border-inverse, #ffffff1a); border-radius: 10px; background: rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 13px/18px var(--font-sans); color: var(--on-inverse, #fff);
}
.ar-chips svg { width: 16px; height: 16px; flex: none; color: var(--mint-on-inverse, #83f6c8); }

/* Below 1024px the showcase becomes a short band above the card: odds sky + title only. */
@media (max-width: 1023.98px) {
  .ar-auth .ar-show {
    position: relative; order: -1; display: flex; align-items: flex-end; overflow: hidden;
    width: 100%; max-width: 420px; min-height: 120px; justify-self: center; padding: 18px 20px;
    border-radius: var(--acc-r-xl); background: var(--surface-inverse, #0b0c0e); color: var(--on-inverse, #fff);
  }
  .ar-show::after { background: linear-gradient(to top, rgb(11 12 14 / 0.8), rgb(11 12 14 / 0) 80%); }
  .ar-show-inner { gap: 4px; }
  .ar-show .acc-show-title { font-size: 19px; line-height: 24px; letter-spacing: -0.3px; }
  .ar-show .acc-odds-card, .ar-show .ar-chips, .ar-show .ar-eyebrow { display: none; }
}

/* ================================================================ Motion */
@keyframes ar-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ar-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .ar-card, .ar-chips, .ar-show .acc-odds-card { animation: none; }
  .ar-submit .ar-arrow { transition: none; }
}
