/* Sign-in, sign-up and password pages (templates/registration/). Loaded after tokens.css (the
   product's colours and font) and landing_page/base.css (the public pages' reset, buttons,
   form fields (.lp-field), alert (.lp-alert) and logo); the pages set <html data-theme="light">, so they are always light. Neither the app's
   Tailwind build nor custom.css is loaded here. Classes are prefixed au-. */

/* Two halves: the form on the left, a panel about the product on the right. The panel folds
   away on narrow screens. */
.au-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.au-col { display: flex; flex-direction: column; padding: 24px 32px; }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.au-back { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ui-text-3); transition: color .15s; }
.au-back:hover { color: var(--ui-text); }
.au-back i { font-size: .75em; }
.au-main { display: grid; flex: 1; place-items: center; padding: 48px 0; }
.au-card { width: 100%; max-width: 380px; animation: lp-rise .7s var(--ui-ease) both; }
.au-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--ui-text-3); }
.au-foot a { color: inherit; }
.au-foot a:hover { color: var(--ui-text); text-decoration: underline; }
/* What creating an account agrees to, under the words at the top of the sign-up page. */
.au-terms { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: var(--ui-text-3); }
.au-terms a { font-weight: 500; color: var(--ui-accent-text); }
.au-terms a:hover { text-decoration: underline; }

.au-title { font-size: 1.9rem; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.au-sub { margin-top: 8px; font-size: .95rem; color: var(--ui-text-3); }
.au-text { margin-top: 16px; font-size: .95rem; color: var(--ui-text-2); }

/* --- Form ------------------------------------------------------------------ */
/* The fields themselves are base.css's .lp-field. */
.au-form { display: grid; gap: 18px; margin-top: 28px; }
/* The password field's "Forgot password?" sits beside its label but comes after the box in
   the page, so Tab goes from one box to the next. */
.au-field-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label link" "box box"; align-items: baseline; }
.au-field-link label { grid-area: label; }
.au-field-link input { grid-area: box; }
.au-field-link .au-link { grid-area: link; }
.au-error { font-size: .8125rem; font-weight: 500; color: var(--ui-bad); }
.au-help { font-size: .8125rem; line-height: 1.5; color: var(--ui-text-3); }
.au-help ul { padding-left: 1.1rem; list-style: disc; }
.au-link { font-size: .875rem; font-weight: 500; color: var(--ui-accent-text); }
.au-link:hover { text-decoration: underline; }

/* A full-width button; the form's own one shows a spinner once it is sent (in place of its arrow). */
.au-wide { width: 100%; height: 42px; font-size: .95rem; }
.au-wide .fa-spinner { display: none; }
.au-wide.is-busy { opacity: .75; pointer-events: none; }
.au-wide.is-busy .fa-spinner { display: inline-block; }
.au-wide.is-busy .fa-arrow-right { display: none; }

/* The Google / Phone switch (registration/_via.html): a segmented control over two halves of
   the page. Its radios are hidden but keep the keyboard (arrow keys move between them); the
   picked label is the raised one. Each half is an .au-via-panel[data-via], and only the
   picked one is shown. */
.au-via {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 26px; padding: 4px;
    border: 1px solid var(--ui-line); border-radius: var(--ui-radius-md); background: var(--ui-inset);
}
.au-via label {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px;
    border: 1px solid transparent; border-radius: calc(var(--ui-radius-md) - 2px);
    font-size: .9rem; font-weight: 500; color: var(--ui-text-3);
    cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s;
}
.au-via label:hover { color: var(--ui-text); }
.au-via label .fa-whatsapp { font-size: 1.05rem; }
.au-via input:checked + label {
    border-color: var(--ui-line); background: var(--ui-surface); color: var(--ui-text);
    box-shadow: var(--ui-shadow-sm);
}
.au-via input:checked + label .fa-whatsapp { color: var(--ui-good); }
.au-via input:focus-visible + label { border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--ui-ring); }
.au-card:has(#via-phone:checked) .au-via-panel[data-via="google"],
.au-card:has(#via-google:checked) .au-via-panel[data-via="phone"] { display: none; }
.au-via-panel > :first-child { margin-top: 20px; }
.au-via-panel > .lp-alert + * { margin-top: 16px; }

/* "Continue with Google": Google's own look, a white button with its four-colour mark, so
   people recognise it. It is a button, not a link: signing in is always posted. */
.au-google {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-md);
    background: var(--ui-surface); color: var(--ui-text);
    font: inherit; font-size: .95rem; font-weight: 500;
    cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.au-google:hover { border-color: var(--ui-line-hover); background: var(--ui-hover); }
.au-google:focus-visible { outline: none; border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--ui-ring); }
.au-google:disabled { opacity: .55; cursor: not-allowed; }
.au-google-mark { flex: none; }

/* "or" between the form and the other way in. */
.au-or { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; font-size: .8125rem; color: var(--ui-text-3); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--ui-line); }

/* A message above the form (base.css's .lp-alert): an error, or what just happened. */
.au-card .lp-alert { margin-top: 22px; }
/* One carried over from another page sits above the heading, not under it. */
.au-card .au-message { margin: 0 0 22px; }
.au-actions { display: grid; gap: 12px; margin-top: 26px; }

/* --- The panel about the product ------------------------------------------- */
/* It stays in view while a long form (sign-up) scrolls beside it. */
.au-aside {
    position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh;
    isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: 64px clamp(32px, 5vw, 88px);
    border-left: 1px solid var(--ui-line); background: var(--ui-inset);
}
/* Slow contour lines behind the whole panel (drawn by landing.js on [data-topo]). */
.au-aside > .au-topo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; pointer-events: none; animation: none; }
.au-aside > * { max-width: 480px; animation: lp-rise .8s var(--ui-ease) both; }
.au-aside > :nth-child(2) { animation-delay: .08s; }
.au-aside > :nth-child(3) { animation-delay: .16s; }
.au-aside > :nth-child(4) { animation-delay: .24s; }
.au-pitch { font-size: clamp(1.9rem, 3.1vw, 2.9rem); font-weight: 500; line-height: 1.07; letter-spacing: -.03em; }
/* The heading is a sentence that changes (base.css's .lp-stagger, drawn by landing.js): room is
   kept for the longest of them, so the words under it never move as one replaces another. */
.au-pitch-lines { font-style: normal; }
.au-pitch-lines .lp-stagger { font-style: normal; }
.au-lead { margin-top: 16px; color: var(--ui-text-2); }
.au-points { display: grid; gap: 14px; margin-top: 30px; }
.au-points li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ui-text-2); }
.au-points i {
    display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px;
    background: var(--ui-accent-soft); color: var(--ui-accent-text); font-size: .8rem;
}

/* --- Narrower screens ------------------------------------------------------ */
@media (max-width: 960px) {
    .au-shell { grid-template-columns: minmax(0, 1fr); }
    .au-aside { display: none; }
}
@media (max-width: 520px) {
    .au-col { padding: 20px 20px; }
    .au-main { padding: 36px 0; }
    .au-title { font-size: 1.65rem; }
}
