/* Masuk / Daftar / Lupa password — "Ruang Tenun": logo 3D di kiri, formulir di kanan, teks di tengah.
   Token aplikasi ditimpa secara lokal (gelap & terang) supaya .input/.btn/.notice bawaan ikut selaras. */
.ax {
  --bg: #08080a; --bg-deep: #0c0c0f; --surface: #131317; --surface-2: #17171b; --surface-3: #1e1e23;
  --line: rgba(255,255,255,.11); --line-soft: rgba(255,255,255,.065);
  --ink: #efece4; --ink-2: #a9a59b; --ink-3: #75716a;
  --accent: #dcb771; --accent-ink: #e8c98a; --accent-soft: rgba(220,183,113,.12); --accent-line: rgba(220,183,113,.55);
  --ok: #8acaa6; --gold: #dcb771;
  --ax-panel: #0c0c0f; --ax-field: #131317; --ax-solid: #efece4; --ax-solid-ink: #0a0a0c; --ax-line3: rgba(255,255,255,.22);
  --ax-m: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) 560px;
  background: var(--bg); color: var(--ink); color-scheme: dark;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] .ax {
  --bg: #f4f2ec; --bg-deep: #efece5; --surface: #ffffff; --surface-2: #f7f5f0; --surface-3: #efece5;
  --line: rgba(30,25,15,.13); --line-soft: rgba(30,25,15,.075);
  --ink: #16140f; --ink-2: #57534a; --ink-3: #847f74;
  --accent: #a5772a; --accent-ink: #8a6220; --accent-soft: rgba(165,119,42,.12); --accent-line: rgba(165,119,42,.55);
  --ok: #2b8257; --gold: #a5772a;
  --ax-panel: #fbfaf7; --ax-field: #ffffff; --ax-solid: #16140f; --ax-solid-ink: #f7f5f0; --ax-line3: rgba(30,25,15,.26);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) .ax {
    --bg: #f4f2ec; --bg-deep: #efece5; --surface: #ffffff; --surface-2: #f7f5f0; --surface-3: #efece5;
    --line: rgba(30,25,15,.13); --line-soft: rgba(30,25,15,.075);
    --ink: #16140f; --ink-2: #57534a; --ink-3: #847f74;
    --accent: #a5772a; --accent-ink: #8a6220; --accent-soft: rgba(165,119,42,.12); --accent-line: rgba(165,119,42,.55);
    --ok: #2b8257; --gold: #a5772a;
    --ax-panel: #fbfaf7; --ax-field: #ffffff; --ax-solid: #16140f; --ax-solid-ink: #f7f5f0; --ax-line3: rgba(30,25,15,.26);
    color-scheme: light;
  }
}
.ax.is-single { grid-template-columns: minmax(0, 1fr); }
.ax-mono { font-family: var(--ax-m); font-size: 11px; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.ax-mono b { color: var(--ink-2); font-weight: 600; }

/* Panggung kiri */
.ax-left { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line-soft); overflow: hidden; }
.ax-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; min-width: 0; }
.ax-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-brand img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.ax-left > .ax-brand { position: absolute; left: 44px; top: 34px; z-index: 3; }
.ax-stage { position: absolute; inset: 0; }
.ax-vp { position: absolute; inset: 20px; }
.ax-vp canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.ax-vp canvas:active { cursor: grabbing; }
.ax-grid { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 42%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 50% at 50% 42%, #000 10%, transparent 75%); }
.ax-fallback { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); }
.ax-cn { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ax-line3); pointer-events: none; }
.ax-cn.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.ax-cn.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.ax-cn.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.ax-cn.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.ax-status { position: absolute; right: 44px; top: 40px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; }
.ax-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 16%, transparent); }
.ax-story { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 3; width: 600px; max-width: calc(100% - 88px); text-align: center; }
.ax-story h2 { margin: 12px 0 0; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; color: var(--ink); }
.ax-story h2 span { color: var(--ink-3); }
.ax-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.ax-facts span { display: inline-flex; align-items: center; gap: 7px; }
.ax-facts svg { color: var(--ink-2); }
.ax-assembly { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.ax-assembly span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-3); transition: color .2s, border-color .2s; }
.ax-assembly span.ok { color: var(--ink); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.ax-assembly span.ok::before { content: ""; width: 7px; height: 4px; border: 1.6px solid var(--ok); border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-1px); }
.ax-assembly span.now { color: var(--ink); border-color: var(--accent-line); }
.ax-assembly span.now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Panel kanan */
.ax-panel { background: var(--ax-panel); display: flex; flex-direction: column; padding: 30px 72px 26px; min-height: 100dvh; min-width: 0; }
.ax.is-single .ax-panel { background: var(--bg); padding-inline: clamp(18px, 4vw, 44px); }
.ax-top { position: relative; display: flex; justify-content: center; align-items: center; min-height: 44px; gap: 12px; }
.ax-top .ax-tt { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.ax.is-single .ax-top { justify-content: space-between; }
.ax.is-single .ax-top .ax-tt { position: static; transform: none; }
.ax-switch { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.ax-switch a { padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; line-height: 1.2; }
.ax-switch a:hover { color: var(--ink); }
.ax-switch a[aria-current="page"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ax-tt { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ax-tt:hover { color: var(--ink); border-color: var(--ax-line3); }
.ax-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; }
.ax .ax-foot a { color: var(--ink-3); text-decoration: none; }
.ax .ax-foot a:hover { color: var(--ink); }

/* Kartu formulir */
.ax-card { width: 100%; max-width: 416px; margin: auto; padding: 28px 0; display: flex; flex-direction: column; gap: 16px; }
.ax-card h1 { margin: 0; text-align: center; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; color: var(--ink); }
.ax-card .sub { margin: -6px 0 6px; text-align: center; color: var(--ink-2); font-size: 15px; }
.ax-card .field label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ax-card .field label a.spacer { margin-left: auto; color: var(--ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ax-line3); text-underline-offset: 3px; }
.ax-card .field .help { color: var(--ink-3); font-size: 12.5px; margin-top: 7px; }
.ax-card .field .err { color: #e8907e; font-size: 12.5px; margin-top: 7px; }
:root[data-theme="light"] .ax-card .field .err { color: #b8443a; }
.ax-card .input { width: 100%; height: 48px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--ax-field); border: 1px solid var(--line); color: var(--ink); font-size: 15px; box-shadow: none; }
.ax-card .input:hover { border-color: var(--ax-line3); }
.ax-card .input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.ax-card .input::placeholder { color: var(--ink-3); }
.ax-card .input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 40px var(--ax-field) inset; caret-color: var(--ink); }
.ax-card .otp-input { text-align: center; letter-spacing: .4em; font-family: var(--ax-m); font-size: 18px; }
.ax-card a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ax-line3); text-underline-offset: 3px; }
.ax-card a.btn { text-decoration: none; }
.ax-card .auth-password { position: relative; }
.ax-card .auth-password .input { padding-right: 104px; }
.ax-card .auth-password-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; }
.ax-card .auth-password-toggle:hover { color: var(--ink); background: var(--surface-2); }
.ax-card .btn { height: 50px; border-radius: 999px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; }
.ax-card .btn.primary { background: var(--ax-solid); color: var(--ax-solid-ink); border: 0; box-shadow: none; }
.ax-card .btn.primary:hover:not(:disabled) { filter: brightness(.92); }
.ax-card .btn.primary:disabled { opacity: .6; }
.ax-card .btn.outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.ax-card .btn.outline:hover { border-color: var(--ax-line3); background: var(--surface-2); }
.ax-card .btn.ghost { background: transparent; color: var(--ink-2); border: 0; height: 40px; }
.ax-card .btn.ghost:hover { color: var(--ink); }
.ax-card .ax-g { width: 18px; height: 18px; flex: none; }
.ax-card .or-line { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; }
.ax-card .or-line::before, .ax-card .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ax-card .muted { color: var(--ink-3); font-size: 14px; }
.ax-card .notice { border-radius: 12px; }
.ax-switchline { margin: 2px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.ax-switchline a { font-weight: 600; }
.ax-terms { margin: -4px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.ax-terms a { color: var(--ink-2); }
.ax-meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 5px; align-items: center; margin-top: 8px; }
.ax-meter i { height: 3px; border-radius: 3px; background: var(--line); transition: background .2s; }
.ax-meter b { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ax-meter.s1 i:nth-child(-n+1) { background: #d9775f; } .ax-meter.s1 b { color: #d9775f; }
.ax-meter.s2 i:nth-child(-n+2) { background: var(--gold); } .ax-meter.s2 b { color: var(--gold); }
.ax-meter.s3 i:nth-child(-n+3), .ax-meter.s4 i { background: var(--ok); } .ax-meter.s3 b, .ax-meter.s4 b { color: var(--ok); }

@media (max-width: 1180px) { .ax { grid-template-columns: minmax(0, 1fr) 480px; } .ax-panel { padding-inline: 48px; } }
@media (max-width: 900px) {
  .ax { grid-template-columns: minmax(0, 1fr); }
  .ax-left { position: relative; height: 250px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .ax-left > .ax-brand { left: 20px; top: 16px; }
  .ax-status { right: 20px; top: 22px; }
  .ax-vp { inset: 46px 10px 6px; }
  .ax-cn, .ax-story { display: none; }
  .ax-fallback { top: 50%; }
  .ax-fallback svg { width: 120px; height: 120px; }
  .ax-panel { min-height: 0; padding: 20px 20px 24px; }
  .ax-card { margin: 0 auto; padding: 18px 0 22px; gap: 14px; }
  .ax-top { min-height: 40px; }
  .ax-top .ax-tt { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .ax-assembly span, .ax-meter i { transition: none; } }

/* Layar pendek (laptop 640–800px): teks panggung lebih ringkas supaya logo 3D tidak menabraknya */
@media (min-width: 901px) and (max-height: 800px) {
  .ax-story { bottom: 30px; }
  .ax-story h2 { font-size: 28px; margin-top: 8px; }
  .ax-facts { margin-top: 14px; padding-top: 12px; }
  .ax-assembly { margin-top: 14px; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .ax-facts { display: none; }
  .ax-story h2 { font-size: 24px; }
  .ax-card { padding: 16px 0; gap: 12px; }
}