/* Sign in, create account, reset password and the security check. */
body.s-app.s-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, 40%) 1fr; background: var(--s-paper); }
.s-auth-side { background: var(--s-brand-strong); color: var(--s-on-brand); padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.s-auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 154, 95, .28), transparent 70%); pointer-events: none; }
.s-auth-tagline { margin: 0; max-width: 18ch; font-family: var(--s-display); font-size: 34px; line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.s-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; }
.s-auth-card { width: min(420px, 100%); background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); box-shadow: var(--s-shadow-raised, 0 10px 30px rgba(14, 30, 25, .08)); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.s-auth-card h1 { margin: 0; font-family: var(--s-display); font-size: var(--s-title); font-weight: 600; line-height: 1.15; }
.s-auth-card > p, .s-auth-card form > p { margin: 0; }
.s-auth-card form { display: flex; flex-direction: column; gap: 14px; }
.s-auth-links { display: flex; flex-direction: column; gap: 6px; font-size: var(--s-text); color: var(--s-muted); }
.s-auth-links a { color: var(--s-brand); font-weight: 600; }
.s-auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--s-surface-soft); border: 1px solid var(--s-line-soft); }
.s-auth-switch a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; color: var(--s-muted); font-weight: 600; font-size: var(--s-text); text-decoration: none; }
.s-auth-switch a[aria-current] { background: var(--s-brand); color: var(--s-on-brand); }
.s-auth-google { gap: 10px; }
.s-auth-google svg { width: 18px; height: 18px; }
.s-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--s-faint); font-size: var(--s-text-sm); }
.s-auth-divider::before, .s-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--s-line); }
.s-auth-foot { display: flex; gap: 16px; margin: 0; font-size: var(--s-text-sm); }
.s-auth-foot a { color: var(--s-muted); }
.s-auth .s-callout { margin: 0; }

@media (max-width: 760px) {
  body.s-app.s-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .s-auth-side { padding: 18px 16px 22px; gap: 12px; }
  .s-auth-side::after { width: 220px; height: 220px; right: -90px; bottom: -110px; }
  .s-auth-tagline { font-size: 20px; max-width: none; }
  .s-auth-main { justify-content: flex-start; padding: 20px 16px 32px; }
  .s-auth-card { padding: 22px 18px; border-radius: var(--s-radius); }
}
.s-auth-help { border-top: 1px solid var(--s-line-soft); padding-top: 14px; }
.s-auth-help > summary { cursor: pointer; font-weight: 600; color: var(--s-brand); font-size: var(--s-text); }
.s-auth-help form { margin-top: 12px; }

/* Wide screens: the brand panel stays in view while the form scrolls, and the form is compact enough to fit. */
@media (min-width: 761px) {
  .s-auth-side { position: sticky; top: 0; height: 100vh; height: 100dvh; }
  .s-auth-card .s-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 761px) and (max-height: 960px) {
  .s-auth-main { padding-block: 24px; }
  .s-auth-card { gap: 14px; padding-block: 26px; }
  .s-auth-card form { gap: 12px; }
  .s-auth-tagline { font-size: 30px; }
}
/* The emailed 6-digit code: large and spaced so it is easy to check against the email. */
.s-input-code { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
