/* Sign in, sign up and the account pages: a dark brand band on the left, the form card on the right. */

.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* The band is dark in both themes: the markup gives it .dark-surface, so every token inside takes its dark value. */
.auth-aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: calc(48px * var(--stage-zoom)); background: var(--band); color: var(--ink);
}
.auth-aside::before {
  content: ""; position: absolute; top: -160px; right: -160px; width: 640px; height: 640px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 45%, transparent); filter: blur(120px); pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; zoom: var(--stage-zoom); }
.auth-aside h2 { max-width: 20ch; margin-bottom: 12px; font-size: 34px; line-height: 1.1; letter-spacing: var(--tr-tight); }
.auth-aside .lede { max-width: 46ch; margin: 0; font-size: var(--fs-l); line-height: 1.65; color: var(--ink-3); }

.aside-demo-block { width: 100%; max-width: 760px; }
.ad-head { margin-bottom: 12px; }
.ad-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 3px 10px;
  border-radius: var(--r-full); background: var(--brand-soft); color: var(--brand-text);
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.ad-pill svg { width: 11px; height: 11px; }
.ad-head b { display: block; font-size: var(--fs-l); font-weight: 600; color: var(--ink); }
.ad-head > span:last-child { display: block; margin-top: 2px; font-size: var(--fs-s); line-height: 1.5; color: var(--ink-3); }
.aside-demo {
  position: relative; width: 100%; aspect-ratio: 1.924; overflow: hidden;
  border-radius: var(--r-l); box-shadow: var(--sh-float), 0 0 0 1px var(--line); background: var(--demo-bg);
}
.aside-demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--demo-bg); }

.auth-main { display: grid; place-items: center; padding: calc(40px * var(--stage-zoom)) 24px; }
.auth-card {
  zoom: var(--stage-zoom);
  position: relative; width: 100%; max-width: 440px; padding: 30px 32px 32px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--panel); box-shadow: var(--sh-float);
}
.auth-card h1 { margin-bottom: 8px; padding-right: 48px; font-size: 28px; letter-spacing: var(--tr-tight); }

/* The theme switch sits in the top right corner, level with the title. */
.auth-card .auth-theme { position: absolute; top: 28px; right: 28px; }
.auth-card .sub { margin-bottom: 26px; font-size: var(--fs-l); color: var(--ink-4); }

/* The sign in and sign up forms: providers side by side, a divider, the email form, then the way to the other form. */
.authform { display: flex; flex-direction: column; }
.authform > .note { margin-bottom: 18px; }
.authform-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.authform-providers .btn { min-height: var(--h-lg); font-size: var(--fs-m); font-weight: 500; }
.authform .divider { margin: 24px 0; font-size: var(--fs-m); color: var(--ink-2); }
.authform .field { margin-bottom: 18px; }
.authform .field > label { margin-bottom: 8px; font-size: var(--fs-m); font-weight: 500; }
.authform .req { color: inherit; font-weight: 500; }
.authform .input { min-height: var(--h-lg); padding: 10px 14px; border-radius: var(--r-m); font-size: var(--fs-m); }
.authform .pw-field .input { padding-right: 46px; }
.authform-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 24px; }
.authform-row a { font-size: var(--fs-m); color: var(--ink); }
.authform-row a:hover { color: var(--brand-text); }
.authform .btn.primary.block { min-height: var(--h-lg); font-size: var(--fs-m); }
.authform-foot { margin: 24px 0 0; text-align: center; font-size: var(--fs-m); color: var(--ink-4); }
.authform-foot a { color: var(--ink); font-weight: 500; }
.authform-foot a:hover { color: var(--brand-text); }

.consent-list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.consent-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-m); color: var(--ink-2); }
.consent-list li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ok); }
.consent-list li.never svg { color: var(--bad); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent-actions .btn { min-height: var(--h-lg); font-size: var(--fs-m); }

@media (max-width: 1080px) {
  .auth-aside { padding: 40px 32px; }
  .auth-aside h2 { font-size: 28px; }
}

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { align-items: start; padding: 24px 16px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 22px 18px 24px; border-radius: var(--r-l); }
  .auth-card .auth-theme { top: 20px; right: 14px; }
}
