/* Sign in + Register. Uses the studio's tokens from app.css. */
body.auth { overflow: auto; min-height: 100%; background: var(--paper); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-main { display: flex; flex-direction: column; padding: 28px 32px; background: var(--card); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 16px/1 var(--display); letter-spacing: -0.005em; }
.auth-top .switch { font-size: 14px; color: var(--ink-soft); }
.auth-top .switch a { color: var(--cobalt); font-weight: 600; }
.auth-card { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; display: grid; gap: 22px; }
.auth-card h1 { margin: 0; font: 700 30px/1.1 var(--display); letter-spacing: -0.005em; }
.auth-card .lede { margin: -10px 0 0; color: var(--ink-soft); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: #1F1F1F;
  font: 600 15px/1 var(--body); text-decoration: none; transition: border-color .15s, background .15s;
}
.btn-google:hover { border-color: var(--ink); background: #FAFBFF; }
.btn-google[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px; font-weight: 600; font-size: 14px; }
.auth-form label small { font-weight: 500; color: var(--ink-faint); font-size: 13px; }
.auth-form label > :not(small) { grid-column: 1 / -1; }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); border-radius: 6px; }
.pw-toggle:hover { color: var(--ink); background: var(--paper); }
/* The strength bar, with a quiet caption so an empty bar doesn't read as a stray line. */
.strength { display: grid; gap: 5px; margin-top: 2px; }
.strength-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.strength-label { font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.strength .pw-hint { font-size: 12px; min-height: 0; text-align: right; }
.meter { height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.pw-hint { font-size: 13px; font-weight: 500; color: var(--ink-faint); min-height: 1.3em; }
.pw-hint.good { color: #0B6B4F; }
.pw-hint.bad { color: #9E2323; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #9E2323; font-size: 14px; }
.field[aria-invalid="true"] { border-color: var(--danger); }
.auth-card .fine { margin: 0; font-size: 13px; color: var(--ink-faint); }
.auth-card .fine a { color: var(--ink-soft); }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The show plays whole, as a framed card: a wide video stretched to fill this tall panel lost its sides.
   Two videos share the frame, so one clip can fade into the next (js/panel-show.js). */
.auth-show { position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(20px, 3.5vh, 36px); padding: clamp(24px, 4vw, 56px);
  background: radial-gradient(120% 80% at 80% 0%, #232A8C 0%, rgba(35,42,140,0) 60%), #0E1030; }
.auth-show .show { position: relative; align-self: center; width: min(100%, 920px, 52vh * 16 / 9); aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; background: #0E1030; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 28px 70px rgba(0,0,0,.55); }
.show video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.show video.on { opacity: 1; }
.show-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.show-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .4s, width .4s; }
.show-dots i.on { width: 18px; border-radius: 3px; background: rgba(255,255,255,.9); }
@media (prefers-reduced-motion: reduce) { .show video { transition: none; } }
.auth-show blockquote { margin: 0; align-self: center; width: min(100%, 920px, 52vh * 16 / 9); }
.auth-show blockquote p { margin: 0; font: 700 26px/1.2 var(--display); letter-spacing: -0.005em; }
.auth-show blockquote ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: rgba(255,255,255,.8); font-size: 15px; }
.auth-show blockquote li::before { content: "✓"; color: var(--mint); font-weight: 700; margin-right: 8px; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-show { display: none; }
  .auth-main { padding: 20px 16px; }
}
@media (max-height: 800px) { .auth-card { padding: 16px 0; gap: 18px; } }

/* Start your trial (start.html): the plans as a list of radio cards, then what is charged and when. */
.start-chooser { display: grid; gap: 18px; }
body[data-mode="start"] .auth-card { padding: 10px 0; }
body[data-mode="start"] .auth-top .switch { display: flex; align-items: center; gap: 10px; min-width: 0; }
#who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--cobalt); text-decoration: underline; white-space: nowrap; cursor: pointer; }
@media (max-width: 520px) { #who { display: none; } }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.plan-head-label { font-weight: 600; font-size: 14px; }
.bill-toggle { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.bill-toggle button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; font: 600 13px/1 var(--body); color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.bill-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bill-toggle button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.bill-toggle .save { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--mint); color: var(--ink); }
.plan-options { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.auth-form label.plan-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3px 12px; padding: 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.auth-form label.plan-option > * { grid-column: auto; }
.auth-form label.plan-option input { grid-column: 1; grid-row: 1 / span 2; width: 18px; height: 18px; margin: 0; accent-color: var(--cobalt); }
.auth-form label.plan-option .po-name { grid-column: 2; grid-row: 1; font-weight: 700; font-size: 16px; }
.plan-option .po-name em { font-style: normal; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
.plan-option .po-name em.trial { color: #1B2499; background: #E4E6FF; }
.auth-form label.plan-option .po-who { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--ink-soft); }
.auth-form label.plan-option .po-price { grid-column: 3; grid-row: 1 / span 2; display: grid; gap: 3px; justify-items: end; text-align: right; }
.po-price strong { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.auth-form label.plan-option .po-price small { font-size: 12px; white-space: nowrap; }
.plan-option:hover { border-color: var(--ink-faint); }
.plan-option:has(input:checked) { border-color: var(--cobalt); background: #F5F6FF; }
.plan-option:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 2px; }
/* The card step: what was chosen and what is due, then Stripe's card fields drawn in our style (start-page.js). */
.auth-card .step-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--cobalt); letter-spacing: .02em; }
.order { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.order-plan { display: grid; gap: 2px; min-width: 0; }
.order-plan strong { font-size: 16px; }
.order-plan span { font-size: 13px; color: var(--ink-soft); }
.order-due { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-soft); }
.order-due strong { font-size: 17px; color: var(--ink); }
.card-fields { min-height: 236px; }
.card-fields[aria-busy="true"] { display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 12px; }
.card-fields:not([aria-busy="true"]) .card-loading { display: none; }
.card-loading { margin: 0; font-size: 13px; color: var(--ink-faint); }
.start-terms { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; }
.form-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #EEF0FF; color: var(--ink); font-size: 14px; }
@media (max-width: 420px) {
  .auth-form label.plan-option { grid-template-columns: auto 1fr; }
  .auth-form label.plan-option .po-price { grid-column: 2; grid-row: 3; justify-items: start; text-align: left; grid-auto-flow: column; gap: 8px; align-items: baseline; margin-top: 4px; }
}
