.au { display: grid; grid-template-columns: minmax(420px, 5fr) 7fr; min-height: 100vh; }

/* ---------- Form side ---------- */
.au-form-side { display: flex; flex-direction: column; padding: 32px 48px; }
.au-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: #fff; letter-spacing: -0.02em; align-self: flex-start; }
.au-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 380px; margin: 0 auto; padding: 48px 0; }
.au-title { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.03em; }
.au-sub { color: var(--zyn-muted); margin: 0 0 32px; font-size: 15px; }
.au-form { display: grid; gap: 20px; }
.au-submit { width: 100%; margin-top: 8px; }
.au-switch { margin-top: 28px; font-size: 14px; color: var(--zyn-muted); text-align: center; }
.au-switch a { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: #444; text-underline-offset: 3px; }
.au-switch a:hover { text-decoration-color: #fff; }
.au-legal { font-size: 12px; color: var(--zyn-faint); margin: 0; }

.au-field-err { margin: 6px 0 0; font-size: 13px; color: var(--zyn-danger); }
.au-hint { margin: 6px 0 0; font-size: 13px; color: var(--zyn-faint); }
.zyn-input.is-bad { border-color: rgba(248,113,113,.6); }

.au-pw { position: relative; }
.au-pw .zyn-input { padding-right: 70px; }
.au-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--zyn-muted); font: inherit; font-size: 13px; cursor: pointer; }
.au-pw-toggle:hover { color: #fff; background: var(--zyn-surface2); }

/* ---------- Demo side ---------- */
.au-demo { position: relative; overflow: hidden; margin: 12px; border-radius: 22px; border: 1px solid var(--zyn-border); background: #0e0e0e; display: grid; place-items: center; padding: 48px; }
.au-demo::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%);
}
.au-demo-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 10%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(139,92,246,.18), rgba(34,211,238,.06) 45%, transparent 70%); filter: blur(10px); }
.au-demo-inner { position: relative; width: 100%; max-width: 520px; }
.au-demo-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--zyn-muted); margin: 0 0 14px; }
.au-demo-kicker span:last-child { transition: opacity .4s var(--ease); }
.au-demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--zyn-gradient); box-shadow: 0 0 10px rgba(34,211,238,.6); }
.au-demo-win { background: rgba(18,18,18,.92); }
.au-demo-body { padding: 22px; min-height: 380px; display: flex; flex-direction: column; }
.au-demo-caption { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--zyn-muted); }

.au-demo-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.au-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: #fff; background: var(--zyn-select-bg); border: 1px solid var(--zyn-border); opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease); }
.au-chip small { color: var(--zyn-faint); font-size: 11px; }
.au-chip.in { opacity: 1; transform: none; }
.au-chip.last { border-color: var(--zyn-select-border); }

.au-demo-gen { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--zyn-muted); opacity: 0; height: 0; overflow: hidden; transition: opacity .3s var(--ease); }
.au-demo-gen.on { opacity: 1; height: 20px; }
.au-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #333; border-top-color: #fff; animation: au-spin .8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-demo-out { margin-top: 20px; opacity: 0; transition: opacity .4s var(--ease); }
.au-demo-out.on { opacity: 1; }
.au-demo-out h4 { font-size: 17px; margin: 0 0 12px; letter-spacing: -0.02em; }
.au-demo-script { font-size: 13.5px; line-height: 1.7; color: #c7c7c7; min-height: 92px; }
.au-demo-script .cue { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--zyn-accent); margin-bottom: 6px; }
.au-caret { display: inline-block; width: 2px; height: 1em; background: #fff; vertical-align: -2px; margin-left: 2px; animation: au-blink 1s steps(1) infinite; }
@keyframes au-blink { 50% { opacity: 0; } }
.au-demo-hooks { display: grid; gap: 8px; margin-top: 16px; }
.au-hook { display: flex; gap: 10px; font-size: 12.5px; color: #d4d4d4; padding: 9px 12px; border-radius: 9px; background: var(--zyn-surface2); border: 1px solid var(--zyn-border); opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.au-hook b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--zyn-faint); padding-top: 1px; }
.au-hook.in { opacity: 1; transform: none; }

.au-demo-body.fade > * { opacity: 0 !important; transition: opacity .5s var(--ease); }

@media (max-width: 1000px) {
  .au { grid-template-columns: 1fr; }
  .au-demo { display: none; }
}
@media (max-width: 560px) {
  .au-form-side { padding: 24px 16px; }
  .au-form-wrap { padding: 40px 0; }
}
.au-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.au-agree { margin: 14px 0 0; font-size: 12.5px; color: var(--zyn-faint); text-align: center; line-height: 1.5; }
.au-agree a { color: var(--zyn-muted); text-decoration: underline; text-underline-offset: 2px; }

/* Welcome (after sign-up) */
.au-welcome-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--zyn-success); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); }
.au-welcome-badge svg { width: 15px; height: 15px; }
.au-sub b { color: var(--zyn-text); font-weight: 500; }
.au-skip { margin-top: 12px; }
.au-skip-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 12px; border: 1px solid var(--zyn-border); background: transparent; color: var(--zyn-muted); font-size: 15px; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s; }
.au-skip-btn:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.au-skip-btn svg { width: 16px; height: 16px; }
.au-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.au-forgot { font-size: 13px; color: var(--zyn-muted); text-decoration: none; }
.au-forgot:hover { color: #fff; }
.au-form-err { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 14px; color: #fca5a5; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); }
.au-form-err svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
