/* Auth (register + login) layout */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  min-height: 100vh;
}
.auth-main {
  display: flex; flex-direction: column;
  background: var(--bg);
  min-height: 100vh;
}
.auth-top {
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.auth-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-foot {
  padding: 18px 32px;
  font-size: 11px;
}
.auth-card {
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: 14px;
}

.auth-side {
  background: linear-gradient(135deg, var(--deck-bg), var(--deck-panel));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  color: var(--deck-text);
}
.auth-side::before {
  content:""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(245,158,11,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(37,99,235,0.18) 0%, transparent 40%);
  pointer-events: none;
}
.auth-side-card {
  position: relative; z-index: 1;
  max-width: 380px;
  display: flex; flex-direction: column; gap: 20px;
}
.auth-side-h {
  font: 700 32px var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.auth-side-feats {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.auth-side-feats li {
  display: flex; gap: 10px; align-items: center;
  font: 400 13px var(--font-sans);
  color: var(--deck-text);
}
.auth-side-quote {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 14px;
}
.auth-side-quote p {
  font: 400 13px var(--font-sans);
  line-height: 1.55;
  color: var(--deck-text);
  font-style: italic;
}
.auth-side-cite { display: flex; gap: 10px; align-items: center; }

/* Stepper */
.auth-stepper {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 8px;
}
.step { display: flex; gap: 8px; align-items: center; padding-right: 14px; }
.step + .step::before {
  content: "—"; color: var(--fg-3); margin-right: 8px;
}
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-3); color: var(--fg-3);
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px var(--font-mono);
  flex-shrink: 0;
}
.step.cur .step-num { background: var(--accent); color: #fff; }
.step.done .step-num { background: var(--green); color: #fff; }
.step-lbl {
  font: 500 11.5px var(--font-sans);
  color: var(--fg-3);
}
.step.cur .step-lbl { color: var(--fg-1); }
.step.done .step-lbl { color: var(--green); }

.auth-h {
  font: 700 28px var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--fg-1);
  text-wrap: balance;
}
.auth-sub {
  font: 400 13.5px var(--font-sans);
  color: var(--fg-2);
  line-height: 1.5;
}
.auth-form {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 10px;
}
.auth-row { display: flex; gap: 10px; }
.auth-pw { position: relative; }
.auth-pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-3); border-radius: var(--r-sm);
}
.auth-pw-toggle:hover { color: var(--fg-1); background: var(--bg-2); }
.auth-check {
  display: flex; gap: 8px; align-items: flex-start;
  font: 400 12px var(--font-sans);
  color: var(--fg-2);
}
.auth-check input { margin-top: 2px; accent-color: var(--accent); }
.auth-alt {
  font: 400 12px var(--font-sans);
  color: var(--fg-2);
  text-align: center;
  margin-top: 4px;
}
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  font: 500 11px var(--font-sans);
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-1); }

/* Browser-pick (step 2) */
.auth-browsers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 4px;
}
.auth-browser-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: #fff;
  text-align: left;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.auth-browser-card:hover { background: var(--bg-2); border-color: var(--accent-border); }
.auth-browser-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.auth-install-help {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  margin-top: 6px;
}
.auth-install-help svg { margin-top: 1px; }

/* Trial card (step 3) */
.auth-trial-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.auth-trial-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 400 13px var(--font-sans);
}

/* Google Pay button (real Google brand spec, simplified) */
.gpay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  font: 500 15px 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: 0.01em;
  width: 100%;
  transition: opacity var(--dur) var(--ease);
}
.gpay-btn:hover { opacity: 0.9; }
.gpay-btn:disabled { opacity: 0.5; cursor: default; }
.gpay-btn svg { background: #fff; border-radius: 50%; padding: 4px; box-sizing: content-box; }

/* Google Pay overlay/sheet */
.gpay-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.5);
  display: flex; align-items: center; justify-content: center;
  animation: gpay-fade 0.15s ease;
}
@keyframes gpay-fade { from { opacity: 0; } to { opacity: 1; } }
.gpay-sheet {
  width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-4);
  display: flex; flex-direction: column; gap: 10px;
  animation: gpay-slide 0.2s var(--ease);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
@keyframes gpay-slide { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.gpay-sheet-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 4px;
}
.gpay-x { margin-left: auto; color: var(--fg-3); padding: 4px; }
.gpay-merchant {
  display: flex; gap: 12px; align-items: center;
  padding: 4px 0;
}
.gpay-divider { height: 1px; background: var(--border-1); margin: 4px -16px; }
.gpay-row { display: flex; flex-direction: column; gap: 4px; padding: 2px 0; }
.gpay-card {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; border-radius: var(--r-md);
  background: var(--bg-2);
}
.gpay-card-icon {
  background: #1A1F71; color: #fff;
  font: 700 9px var(--font-sans);
  padding: 4px 6px; border-radius: 3px;
  letter-spacing: 0.05em;
}
.gpay-confirm {
  margin-top: 8px;
  height: 44px;
  background: #000; color: #fff;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 14px 'Plus Jakarta Sans', sans-serif;
}
.gpay-confirm svg { background: #fff; border-radius: 50%; padding: 3px; box-sizing: content-box; }
.gpay-processing {
  padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.gpay-spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--border-1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gpay-spin 0.8s linear infinite;
  margin-bottom: 4px;
}
@keyframes gpay-spin { to { transform: rotate(360deg); } }
.gpay-check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  animation: gpay-pop 0.3s var(--ease);
}
@keyframes gpay-pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Responsive: stack the auth panel below the form on narrow screens */
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
