/* ──────────────────────────────────────────────────────────
   AUTH V5 — Forum-aligned aesthetic.
   Self-contained: tokens + page + form primitives + animations.
   Loaded only on /auth/login and /auth/register.

   Design alignment with the forum (Poire.Space welcome panel):
   - Inter typography (no more Playfair italic)
   - Pear hero in green-glow ring (welcome-img-ring rhyme)
   - Green accent CTA (welcome-cta rhyme)
   - Solid panel + cosmos backdrop (deep-ether default)
   - Pill tabs that echo welcome-mode-toggle chips
   ────────────────────────────────────────────────────────── */

/* ── Light-ether (default — also when no data-theme is set) ── */
:root {
    --bg-body: #f9f8f6;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f3f2ee;
    --bg-surface-raised: #ffffff;
    --border-color: #e2dfd8;
    --border-subtle: rgba(29, 29, 31, 0.10);

    --text-main: #1d1d1f;
    --text-muted: #5e5b54;
    --text-soft: #8a857c;

    --accent-primary: #a8c545;
    --accent-secondary: #8eaf35;
    --accent-text: #3f5e14;
    --accent-on-primary: #1a241b;
    --accent-danger: #c53030;
    --accent-warning: #b45309;
    --accent-success: #2f7a2f;

    --halo-1-color: var(--accent-primary);
    --halo-1-opacity: 18%;
    --halo-2-color: var(--accent-secondary);
    --halo-2-opacity: 12%;

    --shadow-card-1: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    --shadow-card-2: 0 1px 2px rgba(26, 36, 27, 0.06);
    --shadow-card-3: 0 24px 50px -28px rgba(26, 36, 27, 0.18);
    --shadow-cta:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 14px rgba(168, 197, 69, 0.25);
    --shadow-cta-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        0 8px 24px rgba(168, 197, 69, 0.35);

    --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Monaco, Inconsolata, monospace;

    --radius-card: 18px;
    --radius-input: 10px;
    --radius-pill: 999px;
}

/* ── Deep-ether (default forum theme — blue cosmos, green primary) ── */
[data-theme="deep-ether"] {
    color-scheme: dark;
    --bg-body: #060b18;
    --bg-surface: #0e1528;
    --bg-surface-alt: #152038;
    --bg-surface-raised: #1c2a4a;
    --border-color: rgba(99, 140, 230, 0.22);
    --border-subtle: rgba(99, 140, 230, 0.12);

    --text-main: #e4e9f5;
    --text-muted: #8ba2cb;
    --text-soft: #6f87b3;

    /* Green primary preserved (matches forum's brand) */
    --accent-primary: #a8c545;
    --accent-secondary: #8eaf35;
    --accent-text: #b5d455;
    --accent-on-primary: #0c1108;
    --accent-danger: #fb7185;
    --accent-warning: #fcd34d;
    --accent-success: #34d399;

    --halo-1-color: #3b82f6;
    --halo-1-opacity: 14%;
    --halo-2-color: var(--accent-primary);
    --halo-2-opacity: 8%;

    --shadow-card-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --shadow-card-2: 0 2px 6px rgba(4, 8, 30, 0.35);
    --shadow-card-3: 0 32px 70px -28px rgba(4, 8, 30, 0.7);
    --shadow-cta:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 16px rgba(168, 197, 69, 0.28);
    --shadow-cta-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 28px rgba(168, 197, 69, 0.40);
}

/* ── Grey (Discord-like neutral) ── */
[data-theme="grey"] {
    color-scheme: dark;
    --bg-body: #1e1f22;
    --bg-surface: #2b2d31;
    --bg-surface-alt: #313338;
    --bg-surface-raised: #383a40;
    --border-color: #3f4147;
    --border-subtle: rgba(255, 255, 255, 0.06);

    --text-main: #f2f3f5;
    --text-muted: #b5bac1;
    --text-soft: #949ba4;

    --accent-primary: #a8c545;
    --accent-secondary: #8eaf35;
    --accent-text: #cde67c;
    --accent-on-primary: #0c1108;
    --accent-danger: #da373c;
    --accent-warning: #fee75c;
    --accent-success: #23a559;

    --halo-1-color: var(--accent-primary);
    --halo-1-opacity: 10%;
    --halo-2-color: var(--accent-secondary);
    --halo-2-opacity: 6%;

    --shadow-card-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
    --shadow-card-2: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-card-3: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
    --shadow-cta:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(168, 197, 69, 0.22);
    --shadow-cta-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 8px 26px rgba(168, 197, 69, 0.34);
}

/* ── Custom (user-defined; vars hydrated by inline bootstrap) ── */
[data-theme="custom"] {
    color-scheme: dark;
    --bg-body: var(--custom-bg, #101010);
    --bg-surface: var(--custom-secondary, #242424);
    --bg-surface-alt: color-mix(in srgb, var(--custom-secondary, #242424) 70%, var(--custom-bg, #101010));
    --bg-surface-raised: color-mix(in srgb, var(--custom-secondary, #242424) 80%, white 6%);
    --border-color: color-mix(in srgb, var(--custom-accent, #a8c545) 22%, transparent);
    --border-subtle: color-mix(in srgb, var(--custom-accent, #a8c545) 10%, transparent);

    --text-main: #f3f4f6;
    --text-muted: #c2c8d3;
    --text-soft: #8e95a3;

    --accent-primary: var(--custom-accent, #a8c545);
    --accent-secondary: var(--custom-primary, #38bdf8);
    --accent-text: var(--custom-accent, #a8c545);
    --accent-on-primary: #0c1108;
    --accent-danger: #fb7185;
    --accent-warning: #fcd34d;
    --accent-success: #34d399;

    --halo-1-color: var(--accent-secondary);
    --halo-1-opacity: 12%;
    --halo-2-color: var(--accent-primary);
    --halo-2-opacity: 8%;

    --shadow-card-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --shadow-card-2: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-card-3: 0 28px 70px -28px rgba(0, 0, 0, 0.65);
    --shadow-cta:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 16px color-mix(in srgb, var(--accent-primary) 28%, transparent);
    --shadow-cta-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 28px color-mix(in srgb, var(--accent-primary) 40%, transparent);
}

/* ─────────────────────────────────────────── */
/*  Reset + body                                                        */
/* ─────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.auth-body {
    font-family: var(--font-base);
    color: var(--text-main);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────── */
/*  Page + cosmos backdrop                                              */
/*  Single primary glow + secondary ambience — echoes the forum's       */
/*  deep-ether breathe without the strong 3-halo effect.                */
/* ─────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 56px 24px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(900px 520px at 50% -10%,
            color-mix(in srgb, var(--halo-1-color) var(--halo-1-opacity, 14%), transparent),
            transparent 65%),
        radial-gradient(720px 460px at 78% 100%,
            color-mix(in srgb, var(--halo-2-color) var(--halo-2-opacity, 8%), transparent),
            transparent 60%);
}

/* Soft cosmos breath — only on dark themes, kept subtle. */
[data-theme="deep-ether"] .auth-page::before,
[data-theme="grey"] .auth-page::before,
[data-theme="custom"] .auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 40% at 50% 0%,
            color-mix(in srgb, var(--accent-primary) 6%, transparent),
            transparent 65%);
    animation: authBreathe 16s ease-in-out infinite;
}

@keyframes authBreathe {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(-4px); }
}

/* ─────────────────────────────────────────── */
/*  Card — solid panel, accent stripe, soft cosmos shadow.              */
/* ─────────────────────────────────────────── */
.auth-card {
    width: 420px;
    max-width: 100%;
    padding: 32px 30px 26px;
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow:
        var(--shadow-card-1),
        var(--shadow-card-2),
        var(--shadow-card-3);
    display: grid;
    gap: 18px;
    isolation: isolate;
}

/* Top accent stripe — preserves brand identity */
.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-primary) 50%,
        transparent 100%);
    opacity: 0.85;
    pointer-events: none;
}

/* ─────────────────────────────────────────── */
/*  Hero — pear in glow ring + brand wordmark.                          */
/*  Visual rhyme with the forum's welcome-img-ring.                     */
/* ─────────────────────────────────────────── */
.auth-hero {
    display: grid;
    place-items: center;
    gap: 10px;
    margin-top: 4px;
}

.auth-hero__ring {
    width: 108px;
    height: 108px;
    border-radius: 22px;
    padding: 3px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent-primary) 36%, transparent) 0%,
        color-mix(in srgb, var(--accent-primary) 6%, transparent) 50%,
        color-mix(in srgb, var(--accent-primary) 22%, transparent) 100%);
    box-shadow:
        0 18px 40px -18px color-mix(in srgb, var(--accent-primary) 40%, transparent),
        0 0 0 1px color-mix(in srgb, var(--accent-primary) 12%, transparent);
    position: relative;
}

.auth-hero__img {
    width: 100%;
    height: 100%;
    border-radius: 19px;
    object-fit: contain;
    display: block;
    background: var(--bg-surface);
}

/* Brand mini wordmark — subtle, monospace caps, sits below the ring */
.auth-hero .brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.auth-hero .brand-mini__glyph {
    width: 14px;
    height: 14px;
    color: var(--accent-text);
    flex-shrink: 0;
    opacity: 0.85;
}

.auth-hero .brand-mini__name {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.20em;
    text-transform: lowercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─────────────────────────────────────────── */
/*  Title block — Inter heavy (matches forum welcome-title)             */
/* ─────────────────────────────────────────── */
.auth-title-block {
    display: grid;
    gap: 6px;
    text-align: center;
    margin-top: -2px;
}

.auth-title {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text-main);
}

.auth-subtitle {
    margin: 0 auto;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 32ch;
}

/* ─────────────────────────────────────────── */
/*  Tabs — pill segment (echoes welcome-mode-toggle chips)              */
/* ─────────────────────────────────────────── */
.tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.tabs__indicator {
    position: absolute;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
    border-radius: 999px;
    background: var(--bg-surface-raised);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.tabs[data-mode="register"] .tabs__indicator { transform: translateX(100%); }

.tabs__btn {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
    transition: color 0.25s ease;
    min-height: 34px;
    letter-spacing: 0.005em;
}

.tabs__btn[aria-selected="true"] { color: var(--text-main); }
.tabs__btn:hover { color: var(--text-main); }

/* ─────────────────────────────────────────── */
/*  Swap (animated form container)                                      */
/* ─────────────────────────────────────────── */
.swap {
    display: grid;
    gap: 18px;
}

@keyframes swapIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.swap > * { animation: swapIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* When GSAP drives the entrance, suppress the CSS keyframe so the two
   don't race on initial paint. Toggled by JS once GSAP confirms ready. */
body[data-gsap-ready] .swap > * { animation: none; }

/* ─────────────────────────────────────────── */
/*  Form structure                                                      */
/* ─────────────────────────────────────────── */
.auth-form {
    display: grid;
    gap: 16px;
    margin: 0;
}

.f-group {
    display: grid;
    gap: 6px;
}

.f-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.005em;
}

.f-group label .opt {
    color: var(--text-soft);
    font-weight: 400;
    margin-left: 4px;
}

/* ─────────────────────────────────────────── */
/*  Inputs                                                              */
/* ─────────────────────────────────────────── */
.f-input-wrap {
    position: relative;
    display: block;
}

.f-input {
    width: 100%;
    padding: 11px 14px;
    background: color-mix(in srgb, var(--bg-surface-alt) 60%, var(--bg-surface));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    font: 14px var(--font-base);
    color: var(--text-main);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.f-input::placeholder {
    color: color-mix(in srgb, var(--text-muted) 60%, transparent);
}

.f-input:hover {
    border-color: color-mix(in srgb, var(--text-main) 22%, var(--border-color));
}

.f-input:focus {
    outline: none;
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 22%, transparent);
}

.f-input--error,
.f-input--error:focus {
    border-color: var(--accent-danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-danger) 18%, transparent);
}

.f-input-wrap--password .f-input { padding-right: 44px; }

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.pw-toggle:hover {
    color: var(--text-main);
    background: var(--bg-surface-alt);
}

.pw-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────── */
/*  Errors                                                              */
/* ─────────────────────────────────────────── */
.f-error {
    color: var(--accent-danger);
    font-size: 12px;
    margin: 0;
    line-height: 1.35;
}

.f-global-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-danger) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-danger) 28%, transparent);
    color: var(--accent-danger);
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.f-global-error__icon {
    flex-shrink: 0;
    margin-top: 1px;
    width: 16px;
    height: 16px;
}

.f-global-error__body { flex: 1; min-width: 0; }
.f-global-error__body p { margin: 0; }
.f-global-error__body p + p { margin-top: 2px; }

.f-global-error--list ul {
    margin: 0;
    padding-left: 18px;
}

.f-global-error--list li + li { margin-top: 2px; }

/* ─────────────────────────────────────────── */
/*  Forgot link                                                         */
/* ─────────────────────────────────────────── */
.f-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.forgot {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--text-muted) 35%, transparent);
    text-underline-offset: 3px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.forgot:hover {
    color: var(--text-main);
    text-decoration-color: currentColor;
}

/* ─────────────────────────────────────────── */
/*  Strength meter                                                      */
/* ─────────────────────────────────────────── */
.strength {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.strength i {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--text-soft) 25%, transparent);
    transition: background 0.18s ease;
}

.strength i.on1 { background: #d4a017; }
.strength i.on2 { background: #d28b1c; }
.strength i.on3 { background: var(--accent-secondary); }
.strength i.on4 { background: var(--accent-success); }

.strength-meta {
    font-size: 0.72rem;
    color: var(--text-soft);
    min-height: 14px;
    line-height: 1.2;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.strength-meta__icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────── */
/*  Submit — green pill (matches welcome-cta)                           */
/* ─────────────────────────────────────────── */
.f-submit {
    position: relative;
    width: 100%;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font: 700 0.95rem var(--font-base);
    background: var(--accent-primary);
    color: var(--accent-on-primary);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 70%, var(--accent-secondary));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    letter-spacing: 0.005em;
    box-shadow: var(--shadow-cta);
    will-change: transform;
    transition:
        filter 0.20s ease,
        transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.20s ease;
}

.f-submit:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta-hover);
}

.f-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.985);
    transition-duration: 80ms;
}

.f-submit:focus-visible {
    outline: none;
    box-shadow:
        var(--shadow-cta),
        0 0 0 3px color-mix(in srgb, var(--accent-primary) 36%, transparent);
}

.f-submit:disabled,
.f-submit[aria-disabled="true"] {
    opacity: 0.55;
    cursor: progress;
    transform: none;
    filter: none;
}

.f-submit__spinner { display: none; line-height: 0; }

.f-submit[data-loading] .f-submit__label { visibility: hidden; }

.f-submit[data-loading] .f-submit__spinner {
    display: inline-flex;
    position: absolute;
    color: var(--accent-on-primary);
}

/* ─────────────────────────────────────────── */
/*  Card footer — online-count pill + alt-mode link.                    */
/* ─────────────────────────────────────────── */
.auth-card__footer {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    margin-top: 2px;
    border-top: 1px solid var(--border-subtle);
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
    color: var(--accent-text);
    border: 1px solid color-mix(in srgb, var(--accent-text) 20%, transparent);
    font: 500 11px/1 var(--font-mono);
    letter-spacing: 0.04em;
}

.auth-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: authPulse 2s ease-in-out infinite;
}

.auth-pill__short { display: none; }

@keyframes authPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.f-foot {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.f-foot a {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--text-main) 30%, transparent);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: text-decoration-color 0.18s ease, color 0.18s ease;
}

.f-foot a:hover {
    text-decoration-color: currentColor;
    color: var(--accent-text);
}

/* ─────────────────────────────────────────── */
/*  Generic flash (toast)                                               */
/* ─────────────────────────────────────────── */
.auth-flash {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: grid;
    gap: 8px;
    max-width: calc(100vw - 32px);
}

.auth-flash__item {
    margin: 0;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.18);
}

.auth-flash__item--ok {
    border-color: color-mix(in srgb, var(--accent-success) 35%, transparent);
    color: var(--accent-success);
}

.auth-flash__item--err {
    border-color: color-mix(in srgb, var(--accent-danger) 35%, transparent);
    color: var(--accent-danger);
}

/* ─────────────────────────────────────────── */
/*  Focus rings (keyboard)                                              */
/* ─────────────────────────────────────────── */
.tabs__btn:focus-visible,
.forgot:focus-visible,
.f-foot a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ─────────────────────────────────────────── */
/*  Responsive                                                          */
/* ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .auth-page {
        padding: 28px 16px 40px;
        place-items: start center;
    }

    .auth-card {
        width: 100%;
        padding: 24px 22px 22px;
        border-radius: 16px;
        gap: 16px;
    }

    .auth-hero__ring {
        width: 92px;
        height: 92px;
        border-radius: 20px;
    }

    .auth-hero__img { border-radius: 17px; }

    .auth-title { font-size: 1.4rem; }

    .auth-subtitle { font-size: 0.85rem; }

    .auth-pill__full { display: none; }
    .auth-pill__short { display: inline; }

    .f-input {
        padding: 13px 14px;
        font-size: 16px; /* prevent iOS zoom-on-focus */
    }

    .f-input-wrap--password .f-input { padding-right: 48px; }

    .f-submit {
        font-size: 0.95rem;
        padding: 13px 22px;
        min-height: 48px;
    }

    .pw-toggle { width: 44px; height: 44px; }
}

/* ─────────────────────────────────────────── */
/*  Reduced motion                                                      */
/* ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .swap > *,
    .tabs__indicator,
    .auth-pill__dot,
    .f-input,
    .f-submit,
    .pw-toggle,
    .strength i,
    [data-theme="deep-ether"] .auth-page::before,
    [data-theme="grey"]       .auth-page::before,
    [data-theme="custom"]     .auth-page::before {
        animation: none !important;
        transition: none !important;
    }
}
