/* casttit.com/signin (10 Nov 2026: "like the checkout, a professional website"): a focused screen without the site menu.
   A dark panel with the live Casttit Arena preview (arena.js) and what an account is for; the sign-in card beside it.
   Phones: the card alone. On top of site.css, pages.css and lux.css (fonts, colours, buttons). */
body.auth-page { background: var(--paper); }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth [hidden] { display: none !important; }
/* the home page's section spacing and the old dark form card don't apply here */
.auth section { padding-block: 0; border-top: 0; }
.auth .auth-art { padding: clamp(28px, 3.4vw, 44px); }

.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px); }
.auth-top .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--muted); font: 700 14px var(--body); text-decoration: none; }
.auth-back:hover { color: var(--text); border-color: var(--line-2); }
.auth-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
  stroke-linejoin: round; }

.auth-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 28px; display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(24px, 4vw, 56px); align-items: center; }

/* the dark panel */
.auth-art { position: relative; overflow: hidden; padding: clamp(28px, 3.4vw, 44px); border-radius: 30px; color: #E9EAED;
  background: var(--ink) radial-gradient(110% 70% at 90% -10%, rgba(255, 91, 46, .30), rgba(255, 91, 46, 0) 60%);
  box-shadow: 0 40px 80px -48px rgba(14, 16, 20, .8); }
.auth-kicker { margin: 0; font: 800 12.5px/1 var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--signal); }
.auth-art h2 { margin: 14px 0 22px; font: 800 clamp(28px, 3vw, 38px)/1.12 var(--display); letter-spacing: -.03em; color: #FFFFFF; }
.auth-preview { margin: 0; }
.auth-preview canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #0d1330;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 48px -28px rgba(0, 0, 0, .8); }
.auth-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #B9BCC4; }
.auth-points b { color: #FFFFFF; }
.auth-points .ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 91, 46, .16); }
.auth-points .ico svg { width: 20px; height: 20px; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }

/* the card */
.auth-panel { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 430px; padding: 34px 32px 26px; border-radius: 26px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(14, 16, 20, .03), 0 34px 64px -40px rgba(14, 16, 20, .5); }
.auth-card h1 { margin: 0; font: 800 27px/1.2 var(--display); letter-spacing: -.025em; color: var(--text); }
.auth-sub { margin: 8px 0 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.auth-sub strong { color: var(--text); overflow-wrap: break-word; }
.auth-google { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 13px; border: 1px solid var(--line-2); background: var(--white); cursor: pointer;
  font: 700 15.5px var(--body); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.auth-google:hover { border-color: var(--text); box-shadow: 0 6px 16px -10px rgba(14, 16, 20, .4); }
.auth-google svg { width: 19px; height: 19px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; font-weight: 700; color: var(--subtle); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card form { margin: 0; display: grid; gap: 8px; padding: 0; background: none; border: 0; border-radius: 0; }
.auth-card label { font: 700 14px var(--body); color: var(--text); margin-top: 4px; }
.auth-opt { font-weight: 500; color: var(--subtle); }
.auth-card input { width: 100%; height: 50px; padding: 0 15px; border-radius: 13px; border: 1px solid var(--line-2);
  background: var(--white); color: var(--text); font: 500 16px var(--body); transition: border-color .15s, box-shadow .15s; }
.auth-card input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.auth-card input.auth-code { height: 64px; text-align: center; font: 800 28px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 10px; padding-left: 25px; }
.auth-card input.auth-code::placeholder { font: 600 18px var(--body); letter-spacing: 0; color: var(--subtle); }
.auth-btn { width: 100%; height: 52px; justify-content: center; margin-top: 10px; border-radius: 13px; font-size: 16px; }
.auth-card .btn-primary { box-shadow: 0 14px 28px -16px rgba(255, 91, 46, .9); }
.auth-card .btn:disabled, .auth-card button:disabled { opacity: .55; cursor: default; }
.auth-alt { margin: 16px 0 0; font-size: 14px; line-height: 1.5; text-align: center; color: var(--subtle); }
.auth-alt a, .auth-link { color: #C4321A; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.auth-link:disabled { color: var(--subtle); text-decoration: none; cursor: default; }
.auth-icon { width: 54px; height: 54px; margin-bottom: 16px; border-radius: 16px; display: grid; place-items: center;
  background: var(--signal-soft); }
.auth-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
.auth-done { text-align: center; }
.auth-avatar { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--signal); color: #14080A; font: 800 30px/1 var(--display);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line-2); }
.auth-done .btn + .btn { margin-top: 10px; }
.auth-card a.btn { text-decoration: none; }
.auth-card a.btn-quiet { color: var(--text); }
.auth-card .status { margin: 14px 0 0; font-size: 14px; line-height: 1.5; text-align: center; color: var(--muted); }
.auth-card .status:empty { display: none; }
.auth-card .status.err { color: #C4321A; }
.auth-card .status.ok { color: #14683D; }
.auth-legal { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5;
  text-align: center; color: var(--subtle); }
.auth-legal a { color: var(--muted); }

.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 18px 16px 24px; font-size: 13px;
  color: var(--subtle); }
.auth-foot a { color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 920px) {
  .auth-main { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .auth-art { display: none; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px 22px; border-radius: 22px; }
  .auth-card h1 { font-size: 24px; }
  .auth-card input.auth-code { letter-spacing: 6px; font-size: 24px; padding-left: 21px; }
}
