/* ==========================================================================
   GIDOROO — AUTH EXPERIENCE 2.0
   The Login and Sign Up pages, set from the approved reference screenshots.
   Loaded by public/layouts/auth-guest.blade.php only. Nothing here reaches
   the storefront. Published copy: public/themes/cynoebook/public/css/auth.css
   (keep both identical).

   TOKENS (measured on the 1536×1024 references)
   ------------------------------------------------------------------------ */
:root {
    --au-bg: #f5f3fb;
    --au-surface: #ffffff;
    --au-side: #f4f0fd;
    --au-side-2: #ede7fb;
    --au-purple: #7c3aed;
    --au-purple-deep: #6d28d9;
    --au-purple-soft: #ede9fe;
    --au-purple-text: #6d3bf0;
    --au-ink: #1f2333;
    --au-text: #4b5563;
    --au-muted: #6b7280;
    --au-faint: #9ca3af;
    --au-line: #e5e7eb;
    --au-line-soft: #ece9f6;
    --au-input-bg: #ffffff;
    --au-input-filled: #f7f5fd;
    --au-danger: #dc2626;
    --au-danger-soft: #fef2f2;
    --au-danger-line: #fecaca;
    --au-ok: #166534;
    --au-ok-soft: #ecfdf5;
    --au-ok-line: #a7f3d0;
    --au-radius-card: 28px;
    --au-radius-input: 12px;
    --au-radius-btn: 12px;
    --au-shadow-card: 0 24px 70px rgba(76, 29, 149, 0.10), 0 2px 8px rgba(31, 35, 51, 0.04);
    --au-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --au-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --au-speed: 160ms;
}

/* ---- page ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.au-body {
    margin: 0;
    min-height: 100vh;
    background: var(--au-bg);
    color: var(--au-text);
    font-family: var(--au-font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.au-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 38px;
}
.au-shell { width: 100%; max-width: 1460px; margin: 0 auto; }
.au-live, .au-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.au-skip {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 10;
    background: var(--au-purple); color: #fff; padding: 10px 14px; border-radius: 10px;
    font-weight: 600; text-decoration: none; transition: top var(--au-speed);
}
.au-skip:focus { top: 16px; outline: 3px solid #c4b5fd; outline-offset: 2px; }

/* ---- the card ---------------------------------------------------------------- */
.au-card {
    display: grid;
    grid-template-columns: 42.5% 1fr;
    background: var(--au-surface);
    border: 1px solid var(--au-line-soft);
    border-radius: var(--au-radius-card);
    box-shadow: var(--au-shadow-card);
    overflow: hidden;
    /* The reference canvas is 1024px tall; on a shorter viewport the card
       fits the viewport instead of forcing a scroll for empty space. */
    min-height: 940px;
    outline: none;
}
.au-card--register { grid-template-columns: 47.7% 1fr; max-width: 1380px; margin: 16px auto; min-height: 935px; }

/* ---- left: the marketing panel ---------------------------------------------- */
.au-side {
    position: relative;
    background: linear-gradient(160deg, var(--au-side) 0%, var(--au-side-2) 100%);
    padding: 64px 56px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.au-side::before {
    content: ''; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px;
    border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.12), transparent 70%);
}
.au-side--register { padding-top: 96px; }
.au-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--au-ink); width: fit-content; }
.au-brand-mark { width: 30px; height: 30px; color: var(--au-purple); flex: none; }
.au-brand-name { font-family: var(--au-font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.au-brand--lg .au-brand-mark { width: 42px; height: 42px; }
.au-brand--lg .au-brand-name { font-size: 27px; }

.au-headline { font-family: var(--au-font-display); color: var(--au-ink); margin: 0; letter-spacing: -0.02em; }
.au-headline-line { display: block; }
.au-headline--login { margin-top: 72px; font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
/* Two lines, as the reference: "Your eBooks," / "Anywhere, Anytime". */
@media (min-width: 1181px) { .au-headline--login .au-headline-line { white-space: nowrap; } }
.au-headline--register { margin-top: 54px; font-size: 46px; line-height: 1.15; font-weight: 800; }
.au-tagline { display: block; font-size: 28px; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; }
.au-accent { color: var(--au-purple-text); }
.au-lead { margin: 0; color: var(--au-text); }
.au-lead--login { margin-top: 24px; font-size: 18px; line-height: 1.5; max-width: 22em; }
.au-lead--register { margin-top: 26px; font-size: 16px; line-height: 1.55; max-width: 30em; }

.au-values { list-style: none; margin: 0; padding: 0; }
.au-values--lg { margin-top: 36px; display: grid; gap: 38px; position: relative; z-index: 1; }
.au-values--sm { margin-top: 34px; display: grid; gap: 26px; }
.au-value { display: flex; align-items: center; gap: 18px; }
.au-value-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #e9e2fb; color: var(--au-purple);
}
.au-values--lg .au-value-icon { width: 64px; height: 64px; }
.au-values--lg .au-value-icon svg { width: 28px; height: 28px; }
.au-values--sm .au-value-icon { width: 40px; height: 40px; }
.au-values--sm .au-value-icon svg { width: 20px; height: 20px; }
.au-value-body { display: flex; flex-direction: column; gap: 4px; }
.au-value-title { font-family: var(--au-font-display); font-weight: 700; color: var(--au-ink); }
.au-values--lg .au-value-title { font-size: 17px; }
.au-values--sm .au-value-title { font-size: 16px; }
.au-value-text { color: var(--au-muted); }
.au-values--lg .au-value-text { font-size: 15px; line-height: 1.45; max-width: 15em; }
.au-values--sm .au-value-text { font-size: 14px; line-height: 1.45; }

.au-art { display: block; margin-top: auto; width: 100%; height: auto; }
/* The reference tucks the Login artwork bottom-right, under and beside the
   value list, so the card keeps the reference height instead of stacking. */
.au-side--login { padding-bottom: 250px; }
.au-art--login { position: absolute; inset-inline-end: -16px; bottom: 0; width: 470px; max-width: 80%; margin: 0; }
.au-art--register { max-width: 520px; margin: auto 0 40px -24px; }

/* ---- right: the form panel ------------------------------------------------- */
.au-form-panel { padding: 92px 137px 72px; display: flex; flex-direction: column; }
/* Login balances vertically: with the social surfaces present the form fills
   the panel as the reference does; without them (no provider enabled) it does
   not sit top-heavy over empty space. */
.au-form-panel--login { justify-content: center; padding-top: 64px; padding-bottom: 64px; }
.au-form-panel--register { padding: 56px 54px 44px; }
.au-form-head { text-align: center; margin-bottom: 44px; }
.au-form-panel--register .au-form-head { margin-bottom: 32px; }
.au-title { font-family: var(--au-font-display); font-weight: 800; color: var(--au-ink); margin: 0; letter-spacing: -0.02em; }
.au-form-panel--login .au-title { font-size: 34px; line-height: 1.2; }
.au-form-panel--register .au-title { font-size: 30px; line-height: 1.2; }
.au-subtitle { margin: 10px 0 0; color: var(--au-muted); }
.au-form-panel--login .au-subtitle { font-size: 17px; }
.au-form-panel--register .au-subtitle { font-size: 16px; }

.au-form { display: flex; flex-direction: column; gap: 22px; }
.au-form-panel--register .au-form { gap: 18px; }
.au-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }

.au-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.au-label { font-weight: 600; color: var(--au-ink); font-size: 15px; }
.au-req { color: var(--au-danger); font-weight: 700; }
.au-control { position: relative; display: flex; align-items: center; }
.au-input-icon {
    position: absolute; inset-inline-start: 20px; top: 50%; transform: translateY(-50%);
    color: var(--au-muted); pointer-events: none; display: inline-flex;
}
.au-input-icon svg { width: 20px; height: 20px; }
.au-input {
    width: 100%; height: 58px; border: 1px solid var(--au-line); border-radius: var(--au-radius-input);
    background: var(--au-input-bg); color: var(--au-ink); font: inherit; font-size: 16px;
    padding: 0 20px 0 56px; transition: border-color var(--au-speed), box-shadow var(--au-speed), background var(--au-speed);
    appearance: none;
}
[dir="rtl"] .au-input { padding: 0 56px 0 20px; }
.au-input::placeholder { color: var(--au-faint); }
.au-input:not(:placeholder-shown) { background: var(--au-input-filled); }
.au-input:focus { outline: none; border-color: var(--au-purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); background: #fff; }
.au-input--secret { padding-inline-end: 56px; }
.au-form-panel--register .au-input { height: 50px; border-radius: 10px; font-size: 15px; padding-inline-start: 48px; }
.au-form-panel--register .au-input-icon { inset-inline-start: 16px; }
.au-form-panel--register .au-input-icon svg { width: 18px; height: 18px; }

.au-eye {
    position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px;
    color: var(--au-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.au-eye svg { width: 22px; height: 22px; }
.au-eye .au-eye-closed { display: none; }
.au-eye[aria-pressed="true"] .au-eye-open { display: none; }
.au-eye[aria-pressed="true"] .au-eye-closed { display: block; }
.au-eye:hover { color: var(--au-purple); background: var(--au-purple-soft); }
.au-eye:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 1px; }

.au-error { margin: 0; font-size: 13.5px; color: var(--au-danger); line-height: 1.4; }
.au-field.is-invalid .au-input, .au-captcha.is-invalid .au-input { border-color: var(--au-danger); background: var(--au-danger-soft); }
.au-field.is-invalid .au-input:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14); }
.au-field.is-invalid .au-label { color: var(--au-danger); }

.au-row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: -2px; }
.au-check { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--au-ink); font-size: 16px; line-height: 1.45; min-height: 24px; }
.au-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.au-check-box {
    flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #cfcbe0; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background var(--au-speed), border-color var(--au-speed);
    margin-top: 1px;
}
.au-check-box svg { width: 14px; height: 14px; opacity: 0; }
.au-check input:checked + .au-check-box { background: var(--au-purple); border-color: var(--au-purple); }
.au-check input:checked + .au-check-box svg { opacity: 1; }
.au-check input:focus-visible + .au-check-box { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.au-form-panel--register .au-check { font-size: 15px; }
.au-form-panel--register .au-check-box { width: 22px; height: 22px; }
.au-field--check.is-invalid .au-check-box { border-color: var(--au-danger); }

.au-link { color: var(--au-purple-text); text-decoration: none; font-weight: 600; }
.au-link:hover { text-decoration: underline; }
.au-link:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; border-radius: 4px; }
.au-row-between .au-link { font-size: 15px; }

.au-btn-primary {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; height: 60px; border: 0; border-radius: var(--au-radius-btn); cursor: pointer;
    background: linear-gradient(90deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff; font-family: var(--au-font-display); font-weight: 700; font-size: 18px;
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.28);
    transition: transform var(--au-speed), box-shadow var(--au-speed), filter var(--au-speed);
    margin-top: 6px;
}
.au-form-panel--register .au-btn-primary { height: 58px; margin-top: 2px; }
.au-btn-primary:hover { filter: brightness(1.04); box-shadow: 0 14px 30px rgba(109, 40, 217, 0.32); }
.au-btn-primary:active { transform: translateY(1px); }
.au-btn-primary:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 3px; }
.au-btn-icon { width: 22px; height: 22px; }
.au-spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: au-spin .8s linear infinite; }
.au-btn-primary.is-loading { pointer-events: none; filter: saturate(.85); }
.au-btn-primary.is-loading .au-spinner { display: inline-block; }
.au-btn-primary.is-loading .au-btn-icon { display: none; }
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-divider { display: flex; align-items: center; gap: 16px; color: var(--au-faint); font-size: 15px; margin: 30px 0 26px; }
.au-divider::before, .au-divider::after { content: ''; flex: 1; height: 1px; background: var(--au-line); }
.au-form-panel--register .au-divider { margin: 22px 0 20px; font-size: 14px; }
.au-social { display: grid; gap: 16px; }
.au-social--row { grid-template-columns: 1fr 1fr; gap: 26px; }
.au-social-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    height: 60px; border: 1px solid var(--au-line); border-radius: var(--au-radius-btn); background: #fff;
    color: var(--au-ink); text-decoration: none; font-weight: 500; font-size: 16px;
    transition: border-color var(--au-speed), box-shadow var(--au-speed), background var(--au-speed);
}
.au-social--row .au-social-btn { height: 51px; font-size: 15px; font-weight: 600; }
.au-social-btn:hover { border-color: #cfcbe0; box-shadow: 0 6px 18px rgba(31, 35, 51, 0.06); }
.au-social-btn:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.au-social-icon { width: 22px; height: 22px; }

.au-foot { text-align: center; color: var(--au-text); font-size: 16px; margin: 40px 0 0; }
.au-form-panel--register .au-foot { margin-top: 22px; font-size: 15px; }
.au-link--strong { font-weight: 600; }
.au-privacy-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--au-muted); font-size: 14px; margin: 26px 0 0; }
.au-privacy-note svg { width: 18px; height: 18px; color: #a78bfa; flex: none; }

/* ---- the real CAPTCHA, dressed ------------------------------------------------ */
.au-captcha { border: 1px solid var(--au-line); border-radius: 12px; padding: 14px 16px 16px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.au-captcha-head { display: flex; align-items: center; gap: 14px; }
.au-captcha-shield { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--au-purple-soft); color: var(--au-purple); display: inline-flex; align-items: center; justify-content: center; }
.au-captcha-shield svg { width: 26px; height: 26px; }
.au-captcha-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.au-captcha-title { font-family: var(--au-font-display); font-weight: 700; color: var(--au-ink); font-size: 16px; }
.au-captcha-sub { color: var(--au-muted); font-size: 14px; }
.au-captcha-refresh { flex: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; color: var(--au-purple); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.au-captcha-refresh svg { width: 26px; height: 26px; }
.au-captcha-refresh:hover { background: var(--au-purple-soft); }
.au-captcha-refresh:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 1px; }
.au-captcha-body { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.au-captcha-img { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--au-line-soft); background: #fff; }
.au-captcha-img img { display: block; }
.au-form-panel--register .au-captcha-input { padding-inline-start: 16px; height: 50px; }

/* ---- alerts ------------------------------------------------------------------- */
.au-alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; margin: -12px 0 26px; font-size: 15px; line-height: 1.45; }
.au-form-panel--register .au-alert { margin: -8px 0 20px; }
.au-alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.au-alert--error { background: var(--au-danger-soft); border: 1px solid var(--au-danger-line); color: #991b1b; }
.au-alert--success { background: var(--au-ok-soft); border: 1px solid var(--au-ok-line); color: var(--au-ok); }

/* ---- the switch --------------------------------------------------------------- */
.au-shell .au-card { transition: opacity var(--au-speed) ease, transform var(--au-speed) ease; }
.au-shell.is-leaving .au-card { opacity: 0; transform: translateY(8px); }
.au-shell.is-entering .au-card { animation: au-enter 200ms ease both; }
@keyframes au-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- Forgot Password / New Password (measured on the 1672×941 reference) ------ */
.au-card--forgot { grid-template-columns: 45% 1fr; max-width: 1322px; min-height: 752px; margin: 0 auto; border-radius: 22px; }
.au-side--forgot { padding: 0; align-items: center; text-align: center; }
.au-side-center { padding: 120px 40px 0; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.au-brand--center { justify-content: center; }
.au-brand--center .au-brand-mark { display: none; }
.au-brand--center .au-brand-name { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: #2a2452; }
.au-divider-mark { display: flex; align-items: center; gap: 14px; margin: 22px 0 26px; color: #8b5cf6; }
.au-divider-mark span { width: 96px; height: 1px; background: #d9d2f3; }
.au-divider-mark svg { width: 16px; height: 16px; }
.au-headline--forgot { font-size: 24px; line-height: 1.3; font-weight: 700; color: #4b4f63; letter-spacing: -0.01em; }
.au-lead--forgot { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--au-muted); }
/* The reference composition spans 574 of the 595px panel and keeps 40px of panel below it. */
.au-art--forgot { margin: auto 0 40px; width: 100%; max-width: 574px; align-self: flex-start; margin-inline-start: 5px; }
.au-form-panel--forgot { padding: 85px 130px 60px; padding-inline-start: 121px; padding-inline-end: 138px; align-items: center; text-align: center; justify-content: flex-start; }
.au-hero-icon { position: relative; width: 96px; height: 96px; border-radius: 50%; background: #efe9fb; color: var(--au-purple); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 18px; flex: none; }
.au-hero-icon svg { width: 40px; height: 40px; }
.au-hero-icon::after { content: ''; position: absolute; top: 0; inset-inline-end: -4px; width: 12px; height: 12px; background: #c4b5fd; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.au-hero-icon--ok { background: #e8f6ea; color: #1e6b52; }
.au-form-head--forgot { margin-bottom: 0; }
.au-form-panel--forgot .au-title { font-size: 34px; line-height: 1.2; }
.au-subtitle--forgot { font-size: 16px; line-height: 1.6; margin-top: 12px; }
.au-form--forgot { width: 100%; max-width: 468px; margin: 38px auto 0; gap: 20px; text-align: start; }
.au-form--forgot .au-field { gap: 8px; }
.au-input-icon--box { inset-inline-start: 9px; width: 40px; height: 40px; border-radius: 8px; background: #efe9fb; color: var(--au-purple); justify-content: center; }
.au-input-icon--box svg { width: 20px; height: 20px; }
.au-input--boxed { height: 58px; border-radius: 10px; padding-inline-start: 62px; }
.au-btn-primary--forgot { height: 58px; border-radius: 10px; font-size: 17px; margin-top: 0; }
.au-divider--forgot { width: 100%; max-width: 468px; margin: 26px auto 22px; }
.au-divider--forgot::before, .au-divider--forgot::after { flex: 0 0 80px; }
.au-divider--forgot { justify-content: center; }
.au-back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--au-purple-text); font-weight: 600; font-size: 16px; text-decoration: none; min-height: 44px; }
.au-back-link svg { width: 20px; height: 20px; }
.au-back-link:hover { text-decoration: underline; }
.au-back-link:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; border-radius: 6px; }
.au-security { display: flex; gap: 16px; align-items: center; width: 100%; max-width: 378px; margin: 25px auto 0; text-align: start; color: var(--au-muted); font-size: 15px; line-height: 1.5; }
.au-security-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #efe9fb; color: var(--au-purple); display: inline-flex; align-items: center; justify-content: center; }
.au-security-icon svg { width: 22px; height: 22px; }
.au-state { width: 100%; max-width: 468px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.au-state-text { margin: 18px 0 0; color: var(--au-text); font-size: 15.5px; line-height: 1.6; }
.au-state-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 30px; }
.au-form-panel--forgot .au-alert { width: 100%; max-width: 468px; margin: 26px auto -16px; text-align: start; }
.au-card--reset .au-form--forgot { margin-top: 34px; }
.au-card--reset .au-security { margin-top: 40px; }
@media (max-width: 1400px) {
    .au-form-panel--forgot { padding: 72px 80px 52px; }
    .au-side-center { padding-top: 112px; }
}
@media (max-width: 1180px) {
    .au-card--forgot { grid-template-columns: 44% 1fr; min-height: 0; }
    .au-form-panel--forgot { padding: 56px 48px 44px; }
    .au-side-center { padding: 72px 28px 0; }
    .au-brand--center .au-brand-name { font-size: 28px; }
    /* Narrower panel: the two-line headline and copy keep their line breaks. */
    .au-headline--forgot { font-size: 20px; }
    .au-lead--forgot { font-size: 16px; }
}
@media (max-width: 900px) {
    .au-card--forgot { grid-template-columns: 1fr; }
    .au-side--forgot { padding: 0; }
    .au-side-center { padding: 26px 20px 20px; }
    .au-divider-mark { margin: 14px 0 10px; }
    .au-divider-mark span { width: 60px; }
    .au-headline--forgot { font-size: 18px; }
    .au-form-panel--forgot { padding: 30px 22px 32px; }
    .au-hero-icon { width: 72px; height: 72px; margin-bottom: 22px; }
    .au-hero-icon svg { width: 32px; height: 32px; }
    .au-form-panel--forgot .au-title { font-size: 27px; }
    .au-form--forgot { margin-top: 28px; }
    .au-security { margin-top: 30px; }
}

/* ---- short desktop viewports: the reference canvas is 1024px tall; on a
   shorter screen the whole composition scales down uniformly instead of
   forcing a scroll, so proportions stay the reference's. ------------------ */
/* Short desktop viewports: the tall Login/Register cards (940px) scale down; the Forgot/Reset card (752px) keeps its reference size until the viewport is shorter than it. */
@media (min-width: 1181px) and (max-height: 1000px) { .au-card--login, .au-card--register { zoom: 0.9; } }
@media (min-width: 1181px) and (max-height: 900px) { .au-card--login, .au-card--register { zoom: 0.84; } }
@media (min-width: 1181px) and (max-height: 820px) { .au-card--login, .au-card--register { zoom: 0.78; } }
/* Between 820 and 780px of height the Forgot/Reset card still fits at full size once the page padding shrinks; only below that does it scale. */
@media (min-width: 1181px) and (max-height: 820px) { .au-page:has(.au-card--forgot), .au-page:has(.au-card--reset) { padding-top: 14px; padding-bottom: 14px; } }
@media (min-width: 1181px) and (max-height: 780px) { .au-card--forgot, .au-card--reset { zoom: 0.9; } }
@media (min-width: 1181px) and (max-height: 700px) { .au-card--forgot, .au-card--reset { zoom: 0.8; } }

/* ---- responsive ----------------------------------------------------------------- */
@media (max-width: 1400px) {
    .au-form-panel--login { padding: 72px 88px 56px; }
    .au-headline--login { font-size: 44px; }
    .au-side { padding: 56px 44px 0; }
    .au-side--login { padding-bottom: 230px; }
    .au-art--login { width: 420px; }
}
@media (max-width: 1180px) {
    .au-card { grid-template-columns: 40% 1fr; min-height: 0; }
    .au-card--register { grid-template-columns: 44% 1fr; }
    .au-form-panel--login { padding: 60px 56px 48px; }
    .au-form-panel--register { padding: 48px 40px 40px; }
    .au-headline--login { font-size: 38px; margin-top: 56px; }
    .au-headline--register { font-size: 38px; }
    .au-tagline { font-size: 24px; }
    .au-values--lg { gap: 24px; }
    .au-side--login { padding-bottom: 200px; }
    .au-art--login { width: 360px; }
}
@media (max-width: 900px) {
    .au-page { padding: 16px; align-items: flex-start; }
    .au-card, .au-card--register { grid-template-columns: 1fr; border-radius: 22px; min-height: 0; }
    /* The form first, with a compact brand strip above it; the marketing copy
       and the illustration are not what a phone screen is for. */
    .au-side { padding: 28px 24px 24px; }
    .au-side::before { display: none; }
    .au-headline--login, .au-headline--register { font-size: 28px; margin-top: 18px; }
    .au-tagline { font-size: 18px; margin-top: 4px; }
    .au-lead, .au-values, .au-art { display: none; }
    .au-side--login { padding-bottom: 24px; }
    .au-form-panel, .au-form-panel--register { padding: 32px 24px 32px; }
    .au-form-head { margin-bottom: 28px; }
    .au-form-panel--login .au-title { font-size: 28px; }
    .au-form-panel--register .au-title { font-size: 26px; }
    .au-form-panel--login .au-subtitle, .au-form-panel--register .au-subtitle { font-size: 15px; }
    .au-grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .au-social--row { grid-template-columns: 1fr; gap: 12px; }
    .au-input, .au-form-panel--register .au-input { height: 52px; }
    .au-btn-primary, .au-form-panel--register .au-btn-primary { height: 54px; font-size: 17px; }
    .au-row-between { flex-wrap: wrap; row-gap: 12px; }
    .au-captcha-body { grid-template-columns: 1fr; }
    .au-captcha-img { justify-content: center; }
}
@media (max-width: 480px) {
    .au-page { padding: 10px; }
    .au-form-panel, .au-form-panel--register { padding: 26px 18px 26px; }
    .au-brand-name, .au-brand--lg .au-brand-name { font-size: 20px; }
    .au-brand-mark, .au-brand--lg .au-brand-mark { width: 28px; height: 28px; }
}

/* ---- motion and contrast preferences --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .au-shell .au-card, .au-input, .au-btn-primary, .au-skip, .au-check-box, .au-social-btn { transition: none; }
    .au-shell.is-entering .au-card { animation: none; }
    .au-spinner { animation-duration: 1.6s; }
}
@media (prefers-contrast: more) {
    .au-input { border-color: #8a8f99; }
    .au-social-btn { border-color: #8a8f99; }
    .au-value-text, .au-subtitle, .au-captcha-sub { color: #4b5563; }
}
