/* Log in, sign up, password reset and invite pages. Two columns on desktop (form + brand panel), form only on phones.
   Tokens only: change colours, radii and spacing in tokens.css, not here. */
body.au { margin: 0; background: var(--ds-background); color: var(--ds-text); font-family: var(--ds-font-sans); min-height: 100vh; }
.au, .au *, .au *::before, .au *::after { box-sizing: border-box; }
.au-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.au-main { display: flex; flex-direction: column; padding: var(--ds-space-6) var(--ds-space-8); }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); }
.au-logo img { display: block; height: 28px; width: auto; }
.au-top-link { font-size: var(--ds-text-sm); color: var(--ds-muted); }
.au-top-link a { color: var(--ds-primary-ink); font-weight: var(--ds-weight-semibold); text-decoration: none; }
.au-top-link a:hover { text-decoration: underline; }
.au-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--ds-space-8) 0; }
.au-card { width: 100%; max-width: 380px; animation: au-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.au-card--wide { max-width: 420px; }
.au-eyebrow { display: inline-flex; align-items: center; gap: var(--ds-space-1-5); font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semibold); color: var(--ds-primary-ink); background: var(--ds-primary-soft); border: var(--ds-border-width) solid var(--ds-primary-soft-border); border-radius: var(--ds-radius-full); padding: var(--ds-space-1) var(--ds-space-2-5); margin-bottom: var(--ds-space-3); }
.au-title { margin: 0 0 var(--ds-space-1); font-size: var(--ds-text-3xl); line-height: 1.2; letter-spacing: -0.025em; font-weight: var(--ds-weight-extrabold); color: var(--ds-display-ink); }
.au-title em { font-style: normal; font-weight: inherit; color: var(--ds-primary); }
.au-sub { margin: 0 0 var(--ds-space-5); font-size: var(--ds-text-base); color: var(--ds-muted); line-height: 1.5; }
.au-form .form-group { margin-bottom: var(--ds-space-3); }
.au-form .form-control { min-height: 42px; border-radius: var(--ds-radius-lg); }
.au-form .form-label { font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); }
.au-row a { font-size: var(--ds-text-sm); color: var(--ds-primary-ink); text-decoration: none; font-weight: var(--ds-weight-medium); }
.au-row a:hover { text-decoration: underline; }
.au-check { display: flex; align-items: flex-start; gap: var(--ds-space-2); margin-bottom: var(--ds-space-3); font-size: var(--ds-text-sm); color: var(--ds-muted); line-height: 1.5; }
.au-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ds-primary-solid); flex-shrink: 0; cursor: pointer; }
.au-check label { cursor: pointer; }
.au-check a { color: var(--ds-primary-ink); text-decoration: none; font-weight: var(--ds-weight-medium); }
/* Show / hide password: an icon button inside the field's right edge (the app stylesheet that used to style it is not loaded on these pages). */
.password-field-wrapper { position: relative; }
.password-field-wrapper .form-control { padding-right: var(--ds-touch-target); }
.password-toggle-btn { position: absolute; top: 50%; right: var(--ds-space-1); display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; transform: translateY(-50%); border: 0; border-radius: var(--ds-radius-md); background: transparent; color: var(--ds-muted); cursor: pointer; }
.password-toggle-btn:hover { background: var(--ds-background-muted); color: var(--ds-text); }
.password-toggle-btn[aria-pressed="true"] { color: var(--ds-primary-ink); }
.password-toggle-btn:focus-visible { outline: var(--ds-focus-outline); outline-offset: 1px; }
.au-hint { display: block; font-size: var(--ds-text-xs); color: var(--ds-muted); margin-top: var(--ds-space-1); }
.au-btn { width: 100%; min-height: 44px; border-radius: var(--ds-radius-lg); font-weight: var(--ds-weight-semibold); transition: transform var(--ds-duration-fast) ease, box-shadow var(--ds-duration-fast) ease; }
.au-btn.btn-primary { box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--ds-primary-solid) 70%, transparent); }
.au-btn.btn-primary:hover { transform: translateY(-1px); }
.au-google { display: flex; align-items: center; justify-content: center; gap: var(--ds-space-2); min-height: 44px; margin-bottom: var(--ds-space-4); background: var(--ds-surface); color: var(--ds-text); border: var(--ds-border-width) solid var(--ds-border); border-radius: var(--ds-radius-lg); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); text-decoration: none; transition: border-color var(--ds-duration-fast) ease, box-shadow var(--ds-duration-fast) ease; }
.au-google:hover { border-color: var(--ds-primary-soft-border); box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--ds-primary) 50%, transparent); }
.au-or { display: flex; align-items: center; gap: var(--ds-space-3); margin-bottom: var(--ds-space-4); font-size: var(--ds-text-xs); color: var(--ds-muted); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--ds-border); }
.au-alert { margin-bottom: var(--ds-space-4); }
.au-foot { margin-top: var(--ds-space-4); text-align: center; font-size: var(--ds-text-sm); color: var(--ds-muted); }
.au-foot a { color: var(--ds-primary-ink); font-weight: var(--ds-weight-semibold); text-decoration: none; }
.au-foot a:hover { text-decoration: underline; }
.au-legal { text-align: center; font-size: var(--ds-text-xs); color: var(--ds-muted); }
.au-legal a { color: var(--ds-muted); }
.au-referral { display: flex; align-items: center; gap: var(--ds-space-2); margin-bottom: var(--ds-space-4); padding: var(--ds-space-2-5) var(--ds-space-3); font-size: var(--ds-text-sm); color: var(--ds-primary-ink); background: var(--ds-primary-soft); border: var(--ds-border-width) solid var(--ds-primary-soft-border); border-radius: var(--ds-radius-lg); }
.au-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Brand panel */
.au-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: var(--ds-space-6); padding: var(--ds-space-10) var(--ds-space-10); color: var(--ds-on-primary); background: linear-gradient(145deg, var(--ds-primary-solid-hover), var(--ds-primary-solid) 55%, var(--ds-primary-accent)); }
.au-aside::before, .au-aside::after { content: ""; position: absolute; border-radius: 50%; background: var(--ds-primary-on-dark); opacity: .22; filter: blur(60px); animation: au-drift 14s ease-in-out infinite alternate; }
.au-aside::before { width: 360px; height: 360px; top: -120px; right: -100px; }
.au-aside::after { width: 280px; height: 280px; bottom: -90px; left: -80px; animation-delay: -6s; }
.au-aside > * { position: relative; z-index: 1; }
.au-quote { margin: 0; font-size: var(--ds-text-5xl); line-height: 1.1; letter-spacing: -0.03em; font-weight: var(--ds-weight-extrabold); max-width: 14ch; }
.au-quote em { font-style: normal; font-weight: inherit; color: var(--ds-primary-on-dark); }
.au-demo { max-width: 340px; background: color-mix(in srgb, var(--ds-surface) 14%, transparent); border: var(--ds-border-width) solid color-mix(in srgb, var(--ds-surface) 30%, transparent); border-radius: var(--ds-radius-2xl); padding: var(--ds-space-4); backdrop-filter: blur(10px); animation: au-float 6s ease-in-out infinite alternate; }
.au-demo-head { display: flex; align-items: center; gap: var(--ds-space-2-5); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); }
.au-demo-head img { width: 32px; height: 32px; border-radius: 50%; background: var(--ds-surface); padding: var(--ds-space-1); }
.au-demo-head small { display: block; font-weight: 400; opacity: .8; font-size: var(--ds-text-xs); }
.au-demo-msg { margin: var(--ds-space-3) 0 var(--ds-space-3); font-size: var(--ds-text-sm); line-height: 1.5; background: var(--ds-surface); color: var(--ds-text); border-radius: var(--ds-radius-xl); padding: var(--ds-space-2-5) var(--ds-space-3); }
.au-demo-tags { display: flex; flex-wrap: wrap; gap: var(--ds-space-1-5); }
.au-demo-tags span { font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semibold); border-radius: var(--ds-radius-full); padding: var(--ds-space-1) var(--ds-space-2-5); background: color-mix(in srgb, var(--ds-surface) 22%, transparent); }
.au-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-2-5); font-size: var(--ds-text-md); }
.au-points li { display: flex; gap: var(--ds-space-2-5); align-items: center; }
.au-points svg { flex-shrink: 0; }

@keyframes au-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes au-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes au-drift { from { transform: translate(0, 0); } to { transform: translate(30px, 20px); } }
@media (max-width: 900px) {
    .au-shell { grid-template-columns: minmax(0, 1fr); }
    .au-aside { display: none; }
    .au-main { padding: var(--ds-space-5) var(--ds-space-4); }
    .au-form .form-control { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .au-card, .au-demo, .au-aside::before, .au-aside::after { animation: none; } }
.au-alert[hidden] { display: none; }

/* The classic UI forces a 3px corner on everything (style.css); these pages keep their rounded shapes. */
.au .au-form .form-control { border-radius: var(--ds-radius-lg) !important; }
.au .au-btn, .au .au-google, .au .au-referral, .au .alert { border-radius: var(--ds-radius-lg) !important; }
.au .au-eyebrow, .au .au-demo-tags span, .au .ds-step-mark { border-radius: var(--ds-radius-full) !important; }
.au .au-demo { border-radius: var(--ds-radius-2xl) !important; }
.au .au-demo-msg { border-radius: var(--ds-radius-xl) !important; }
.au .au-demo-head img, .au .au-aside::before, .au .au-aside::after { border-radius: 50% !important; }
.au .au-check input { border-radius: var(--ds-radius-sm) !important; }
.au .au-aside .au-quote { color: var(--ds-on-primary); margin: 0; }
.au .au-legal { margin: 0; padding-top: var(--ds-space-4); }
