/* Login / signup shell. Theme tokens only, so all 11 themes work. */
.ax {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(760px, calc(100vh - 140px));
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, #000 70%, transparent);
  animation: ax-in 0.5s ease both;
}
@keyframes ax-in { from { opacity: 0; transform: translateY(12px); } }

/* ---- brand side ---- */
.ax-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding: 2.4rem 2.3rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--accent, var(--primary)) 18%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 80%, var(--bg, #000));
  border-right: 1px solid var(--line);
}
.ax-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: radial-gradient(80% 70% at 30% 30%, #000, transparent);
  animation: ax-grid 30s linear infinite;
}
@keyframes ax-grid { to { background-position: 28px 0, 0 28px; } }
.ax-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; display: none; }
html[data-color-mode="light"] .ax-logo-light, html[data-color-mode="dark"] .ax-logo-dark { display: block; }
html:not([data-color-mode]) .ax-logo-dark { display: block; }
.ax-kicker { text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; width: fit-content; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); }
.ax-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success-fg, #34d399); box-shadow: 0 0 0 0 var(--success-fg, #34d399); animation: ax-ping 2s infinite; }
@keyframes ax-ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ax-brand h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.025em; }
.ax-brand h1 .hl { background: linear-gradient(90deg, var(--primary), var(--accent, var(--primary)), var(--primary)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: ax-shine 6s linear infinite; }
@keyframes ax-shine { to { background-position: 200% center; } }
.ax-lead { margin: 0; color: var(--text-soft); line-height: 1.6; max-width: 44ch; font-size: 1rem; }
.ax-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; max-width: 460px; }
.ax-stat { display: flex; align-items: baseline; gap: 0.55rem; padding: 0.7rem 0.85rem; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 65%, transparent); backdrop-filter: blur(4px); }
.ax-stat strong { font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ax-stat span { white-space: nowrap; font-size: 0.72rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.ax-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ax-feats li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.93rem; }
.ax-feats i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 13%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); }
.ax-term { margin-top: auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: color-mix(in srgb, #04070d 78%, var(--surface)); }
.ax-term-bar { display: flex; align-items: center; gap: 6px; padding: 0.45rem 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.ax-term-bar i { width: 9px; height: 9px; border-radius: 50%; }
.ax-term-bar i:nth-child(1) { background: #f87171; } .ax-term-bar i:nth-child(2) { background: #fbbf24; } .ax-term-bar i:nth-child(3) { background: #34d399; }
.ax-term-bar span { margin-left: 0.35rem; font-family: var(--font-mono); font-size: 0.7rem; color: #9aa4b2; }
.ax-term-body { min-height: 92px; padding: 0.65rem 0.85rem 0.8rem; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; color: #c9f5d6; }
.ax-term-body .p { color: #fbbf24; } .ax-term-body .ok { color: #34d399; }
.ax-caret { display: inline-block; width: 8px; height: 14px; background: #fbbf24; vertical-align: -2px; animation: ax-blink 1s steps(1) infinite; }
@keyframes ax-blink { 50% { opacity: 0; } }

/* ---- form side ---- */
.ax-panel { display: flex; flex-direction: column; justify-content: center; gap: 1.05rem; padding: 2.3rem clamp(1.3rem, 4vw, 3rem); }
.ax-panel-inner { width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: 1.05rem; }
.ax-mobile-logo { display: none; }
.ax-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; border: 1px solid var(--line); background: color-mix(in srgb, var(--text) 4%, transparent); }
.ax-tabs a { display: block; text-align: center; padding: 0.55rem 0.5rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; color: var(--text-soft); text-decoration: none; transition: background 0.15s, color 0.15s; }
.ax-tabs a:hover { color: var(--text); }
.ax-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line), 0 6px 16px -10px #000; }
.ax-head h2 { margin: 0 0 0.3rem; font-size: 1.55rem; letter-spacing: -0.01em; }
.ax-head p { margin: 0; color: var(--text-soft); font-size: 0.93rem; }
.ax-google { display: flex !important; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 46px; font-weight: 700; border-radius: 12px !important; }
.ax-google svg { flex: none; }
.ax-or { display: flex; align-items: center; gap: 0.75rem; color: var(--text-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ax-or::before, .ax-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ax-form { display: grid; gap: 0.85rem; margin: 0; }
.ax-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ax-field { display: grid; gap: 0.38rem; margin: 0; font-size: 0.85rem; font-weight: 600; }
.ax-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.ax-field-top a { font-weight: 600; font-size: 0.8rem; }
.ax-input { position: relative; display: flex; align-items: center; }
.ax-input > i { position: absolute; left: 0.85rem; color: var(--text-soft); pointer-events: none; font-size: 1rem; transition: color 0.15s; }
.ax-input input { width: 100%; min-height: 46px; padding-left: 2.5rem !important; border-radius: 12px !important; font-size: 0.97rem; transition: border-color 0.15s, box-shadow 0.15s; }
.ax-input input:focus { outline: none; border-color: color-mix(in srgb, var(--primary) 70%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.ax-input:focus-within > i { color: var(--primary); }
.ax-input.has-toggle input { padding-right: 3rem !important; }
.ax-eye { position: absolute; right: 0.35rem; display: grid; place-items: center; width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--text-soft); cursor: pointer; box-shadow: none; }
.ax-eye:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.ax-eye svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ax-hint { margin: 0; font-size: 0.78rem; font-weight: 500; color: var(--text-soft); }
.ax-hint.is-bad { color: var(--error-fg, #ff8a8a); }
.ax-caps { display: none; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--warn-fg, #fbbf24); }
.ax-caps.is-on { display: flex; }
.ax-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ax-meter span { height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); transition: background 0.2s; }
.ax-meter[data-score="1"] span:nth-child(-n+1) { background: var(--error-fg, #ef4444); }
.ax-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warn-fg, #f59e0b); }
.ax-meter[data-score="3"] span:nth-child(-n+3) { background: color-mix(in srgb, var(--success-fg, #22c55e) 70%, var(--warn-fg, #f59e0b)); }
.ax-meter[data-score="4"] span { background: var(--success-fg, #22c55e); }
.ax-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 0.7rem; font-size: 0.76rem; font-weight: 500; color: var(--text-soft); }
.ax-rules li { display: flex; align-items: center; gap: 0.35rem; }
.ax-rules li i { font-size: 0.8rem; opacity: 0.6; }
.ax-rules li.ok { color: var(--success-fg, #22c55e); }
.ax-rules li.bad { color: var(--error-fg, #ff8a8a); }
.ax-rules li.ok i, .ax-rules li.bad i { opacity: 1; }
.ax-terms { display: flex !important; align-items: flex-start; gap: 0.6rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; font-size: 0.86rem; line-height: 1.45; cursor: pointer; }
.ax-terms input { width: 18px !important; height: 18px; min-height: 0; margin: 0.1rem 0 0; flex: none; accent-color: var(--primary); }
.ax-submit { width: 100%; min-height: 48px; font-size: 1rem; font-weight: 800; border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.ax-submit[disabled] { opacity: 0.75; cursor: progress; }
.ax-switch { margin: 0; text-align: center; color: var(--text-soft); font-size: 0.9rem; }
.ax-switch a { font-weight: 700; }
.ax-ref { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.55rem 0.75rem; border-radius: 11px; font-size: 0.84rem;
  background: color-mix(in srgb, var(--success-fg, #22c55e) 12%, transparent); border: 1px solid color-mix(in srgb, var(--success-fg, #22c55e) 35%, var(--line)); }
.ax-fine { margin: 0; font-size: 0.75rem; color: var(--text-soft); text-align: center; }

@media (max-width: 960px) {
  .ax { grid-template-columns: 1fr; min-height: 0; }
  .ax-panel { order: 1; padding: 1.6rem 1.2rem 1.8rem; }
  .ax-brand { order: 2; border-right: 0; border-top: 1px solid var(--line); padding: 1.6rem 1.3rem; gap: 1rem; }
  .ax-brand .ax-logo, .ax-brand .ax-term { display: none !important; }
  .ax-brand h1 { font-size: 1.6rem; }
  .ax-mobile-logo { display: flex; justify-content: center; }
  .ax-mobile-logo .ax-logo { height: 34px; }
}
@media (max-width: 520px) {
  .ax { border-radius: 18px; }
  .ax-row, .ax-rules { grid-template-columns: 1fr; }
  .ax-stat { flex-direction: column; gap: 0.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ax, .ax-brand::before, .ax-brand h1 .hl, .ax-kicker .dot, .ax-caret { animation: none; }
}

/* ---- single-card account pages (forgot / reset / verify / Google / 2FA) ---- */
.axc-wrap { position: relative; display: grid; place-items: center; min-height: min(680px, calc(100vh - 160px)); padding: 1.5rem 0; isolation: isolate; }
.axc-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 50% at 50% 30%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); }
.axc { width: min(100%, 460px); display: grid; gap: 1.05rem; padding: 2rem clamp(1.2rem, 4vw, 2.1rem); border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 22px; background: var(--surface); box-shadow: 0 30px 70px -40px color-mix(in srgb, #000 70%, transparent); animation: ax-in 0.45s ease both; }
.axc-logo { display: flex; justify-content: center; }
.axc-logo .ax-logo { height: 32px; }
.axc-icon { --axc-tone: var(--primary); justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 1.7rem;
  color: var(--axc-tone); background: color-mix(in srgb, var(--axc-tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--axc-tone) 38%, var(--line)); }
.axc-icon.is-success { --axc-tone: var(--success-fg, #22c55e); }
.axc-icon.is-secure { --axc-tone: var(--info-fg, #38bdf8); }
.axc-head { text-align: center; display: grid; gap: 0.4rem; }
.axc-head h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.01em; }
.axc-head p { margin: 0; color: var(--text-soft); line-height: 1.55; font-size: 0.95rem; }
.axc-chip { justify-self: center; display: inline-flex; align-items: center; gap: 0.45rem; max-width: 100%; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--text) 4%, transparent); overflow-wrap: anywhere; }
.axc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; counter-reset: axc; }
.axc-steps li { counter-increment: axc; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: 0.9rem; line-height: 1.45; color: var(--text-soft); }
.axc-steps li::before { content: counter(axc); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem; font-weight: 800;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent); }
.axc-steps strong { color: var(--text); }
.axc-actions { display: grid; gap: 0.55rem; }
.axc-actions form { margin: 0; display: grid; }
.axc-actions .btn, .axc-actions button { width: 100%; min-height: 46px; justify-content: center; border-radius: 12px !important; }
.axc-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.88rem; }
.axc-foot a { font-weight: 600; }
.axc-note { margin: 0; font-size: 0.8rem; color: var(--text-soft); text-align: center; line-height: 1.5; }
.axc-match { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--success-fg, #22c55e); }
.axc-match.is-bad { color: var(--error-fg, #ff8a8a); }
.axc-match[hidden] { display: none; }
.axc-code input { font-family: var(--font-mono); font-size: 1.35rem !important; letter-spacing: 0.25em; text-align: center; padding-left: 1rem !important; }
.axc-code > i { display: none; }

/* boot sequence + mono numbers (ops look) */
.ax-boot { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; max-width: 460px; font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
.ax-boot li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 60%, transparent); font-size: 0.82rem; }
.ax-boot b { color: var(--primary); font-weight: 600; }
.ax-boot em { font-style: normal; font-size: 0.7rem; color: var(--text-soft); }
.ax-stat strong { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
