/* Sign-in, sign-up, password, activation and error pages (layouts/auth). Builds on setup.css:
   the same ground, card and controls as the app, one green action per page. */

html { background: #141414; }
.au-body { margin: 0; min-height: 100vh; background: #141414; color: #ececec; -webkit-font-smoothing: antialiased; }
.st-home.au-page { max-width: none; padding: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 1rem; line-height: 1.4; }
.au-page :is(h1, h2, p, ol) { margin: 0; }
.au-page *, .au-page *::before, .au-page *::after { box-sizing: border-box; }
.au-page a { text-underline-offset: 3px; }

/* Top bar: logo at the inline-start, languages at the inline-end */
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-block-end: 1px solid var(--st-line); background: #000; }
.au-logo { display: inline-flex; }
.au-logo img { display: block; height: 30px; width: auto; }
.au-langs { display: flex; gap: 4px; font-size: .875rem; font-weight: 600; }
.au-langs a, .au-langs span { padding: 6px 10px; border-radius: 6px; color: var(--st-ink-2); text-decoration: none; }
.au-langs a:hover { background: var(--st-raised); color: var(--st-ink); }
.au-langs span { color: var(--st-ink); }

/* One centred column; sign-up widens for the route beside the form */
.au-main { flex: 1; width: 100%; max-width: 440px; margin-inline: auto; padding: 56px 16px 72px; box-sizing: border-box; }
.au-main.is-wide { max-width: 860px; }
.au-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }

.au-card { background: var(--st-card); border-radius: var(--st-radius); padding: 32px; }
.au-title { font-size: 1.625rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.au-lede { color: var(--st-ink-2); margin-block-start: 8px !important; }
.au-card form { margin-block-start: 8px; }
.au-label { margin-block-start: 18px; }
.au-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.au-label-row .au-label { margin-block-end: 8px; }
.au-small { font-size: .875rem; }
.au-optional { color: var(--st-ink-2); font-weight: 400; font-size: .875rem; margin-inline-start: 4px; }
.au-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.au-check { display: flex; align-items: center; gap: 10px; margin-block-start: 16px; font-size: .9375rem; color: var(--st-ink); cursor: pointer; }
.au-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--st-green); }
.au-submit { margin-block-start: 24px; min-height: 44px; }
.au-captcha { margin-block-start: 18px; }
.st-input[aria-invalid="true"] { border-color: var(--st-red-ink); }
.au-page .st-input { min-height: 44px; }

/* Flash notes: green for "done", red for a problem */
.au-note { margin-block-start: 16px !important; padding: 12px 14px; border-radius: 6px; background: #1a2b20; color: #7fd39b; font-weight: 600; font-size: .9375rem; }
.au-note.is-error { background: #2e1a1a; color: var(--st-red-ink); }

/* "or" rule and Google */
.au-or { display: flex; align-items: center; gap: 12px; margin-block: 22px 16px; color: var(--st-ink-2); font-size: .875rem; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--st-line); }
.au-google { min-height: 44px; }
.au-google svg { flex: none; }

.au-switch { text-align: center; margin-block-start: 20px !important; color: var(--st-ink-2); font-size: .9375rem; }
.au-switch .st-link { font-weight: 600; }

/* What happens after sign-up: the vertical route, nothing done yet */
.au-next { padding: 28px 8px 0; padding-inline-start: 16px; }
.au-next-title { font-size: 1rem; font-weight: 700; margin-block-end: 18px !important; }
.au-step { display: block; color: var(--st-ink); }
.au-step-hint { display: block; color: var(--st-ink-2); font-weight: 400; font-size: .875rem; margin-block-start: 2px; }

/* Activation envelope and error code */
.au-mark { color: var(--st-green-ink); margin-block-end: 16px; }
.au-card > .st-btn { margin-block-start: 24px; }
.au-code { font-size: .875rem; font-weight: 700; color: var(--st-ink-2); font-variant-numeric: tabular-nums; margin-block-end: 8px !important; }

@media (max-width: 860px) {
  .au-split { grid-template-columns: minmax(0, 1fr); }
  .au-next { padding: 8px 4px 0; }
}
@media (max-width: 480px) {
  .au-top { padding: 14px 16px; }
  .au-logo img { height: 24px; }
  .au-main { padding-block-start: 28px; }
  .au-card { padding: 24px 18px; }
  .au-pair { grid-template-columns: 1fr; }
}
