/* Shares color tokens + resets with dashboard.css (linked before this file). */

html, body.auth-body {
    min-height: 100vh;
}

body.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(560px 420px at 100% 0%, rgba(161, 79, 199, 0.13), transparent 70%),
        radial-gradient(560px 420px at 0% 100%, rgba(7, 143, 155, 0.11), transparent 70%),
        radial-gradient(540px 420px at 50% 52%, rgba(228, 119, 82, 0.05), transparent 75%),
        linear-gradient(145deg, #fbfaff 0%, var(--bg) 58%, #e9edff 100%);
}

/* soft blue glow orbs behind the card, brighter/neon in dark mode */
body.auth-body::before,
body.auth-body::after {
    content: "";
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
body.auth-body::before {
    top: -160px;
    left: -140px;
    width: 420px;
    height: 420px;
    background: rgba(83, 102, 223, 0.17);
}
body.auth-body::after {
    right: -160px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    background: rgba(161, 79, 199, 0.15);
}
body.dark.auth-body::before {
    background: rgba(38, 79, 169, 0.34);
}
body.dark.auth-body::after {
    background: rgba(160, 123, 255, 0.15);
}

.auth-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(18, 52, 110, 0.10);
}
body.dark .auth-theme-toggle {
    box-shadow: 0 0 16px var(--primary-glow);
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 34px 30px 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    background: linear-gradient(150deg, var(--panel), color-mix(in srgb, var(--panel) 93%, var(--track)));
    box-shadow: 0 22px 60px rgba(57, 58, 123, 0.15), 0 1px 0 rgba(255,255,255,.88) inset;
}
body.dark .auth-card {
    background: linear-gradient(150deg, #111824, var(--panel) 74%);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.62), 0 0 34px rgba(48, 91, 183, 0.14), 0 1px 0 rgba(221,232,248,.06) inset;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.auth-logo .logo-box {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(191, 204, 225, 0.78), 0 8px 24px rgba(34, 77, 164, 0.28);
}
.auth-logo h1 {
    margin: 0;
    font-size: 21px;
}
.auth-logo p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.auth-card h2 {
    margin: 0 0 4px;
    font-size: 22px;
}
.auth-card > p.auth-sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 15px;
}
.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}
.auth-field input {
    width: 100%;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 12.5px;
    color: var(--muted);
}
.auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
}
.auth-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

.auth-submit {
    width: 100%;
    margin-bottom: 12px;
}

.auth-guest {
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--primary-strong);
    border: 1px dashed var(--line);
    box-shadow: none;
}
.auth-guest:hover {
    background: var(--panel-soft);
}

.auth-banner {
    margin: -4px 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--primary-glow);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.5;
}

.auth-error {
    display: none;
    margin: -4px 0 14px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(224, 85, 95, 0.10);
    color: #c62f3a;
    font-size: 12.5px;
    font-weight: 600;
}
body.dark .auth-error {
    color: #ff8a92;
    background: rgba(255, 107, 125, 0.12);
}
.auth-error.show {
    display: block;
}

.auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 420px) {
    .auth-card {
        padding: 28px 20px 24px;
    }
}

/* ---------- Google sign-in ---------- */
.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 700;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}
.auth-google:hover { border-color: var(--primary); background: var(--panel-soft); }
.auth-providers {
    display: block;
}
.auth-apple {
    display: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px;
    color: var(--muted);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.auth-setup { margin-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.auth-setup summary { cursor: pointer; font-weight: 700; color: var(--primary-strong); }
.auth-setup ol { margin: 8px 0; padding-left: 18px; }
.auth-setup code { padding: 1px 5px; border-radius: 4px; background: var(--panel-soft); color: var(--text); overflow-wrap: anywhere; }
.auth-setup-row { display: flex; gap: 8px; }
.auth-setup-row input { flex: 1; }
.auth-setup-msg { display: block; margin-top: 6px; color: var(--primary-strong); }

.auth-layout {
    display: contents;
}
.auth-showcase {
    display: none;
}

@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
    body.auth-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 28px clamp(28px, 5vw, 76px);
        background:
            radial-gradient(700px 520px at 0% 100%, rgba(32, 113, 236, 0.13), transparent 70%),
            radial-gradient(640px 500px at 100% 0%, rgba(48, 190, 218, 0.11), transparent 72%),
            linear-gradient(145deg, #f8faff 0%, var(--bg) 100%);
    }

    .auth-layout {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(430px, 0.94fr) minmax(0, 1.06fr);
        width: min(1440px, 100%);
        min-height: min(760px, calc(100vh - 112px));
        border: 1px solid var(--line);
        border-radius: 28px;
        overflow: hidden;
        background: var(--panel);
        box-shadow: 0 28px 84px rgba(31, 57, 110, 0.18);
    }

    .auth-card {
        width: auto;
        max-width: none;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(36px, 4vw, 64px);
        border: 0;
        border-radius: 0;
        background: linear-gradient(155deg, var(--panel), color-mix(in srgb, var(--panel) 95%, var(--track)));
        box-shadow: none;
    }
    body.dark .auth-card {
        background: linear-gradient(155deg, #111824, var(--panel) 78%);
        box-shadow: none;
    }

    .auth-logo {
        gap: 16px;
        margin-bottom: 30px;
    }
    .auth-logo .logo-box {
        width: 64px;
        min-width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    .auth-logo h1 {
        font-size: 25px;
        letter-spacing: -0.04em;
    }
    .auth-logo p {
        margin-top: 4px;
        font-size: 13px;
    }

    .auth-card h2 {
        margin-bottom: 6px;
        font-size: clamp(28px, 2.4vw, 34px);
        letter-spacing: -0.04em;
    }
    .auth-card > p.auth-sub {
        margin-bottom: 26px;
        font-size: 14px;
    }
    .auth-field {
        margin-bottom: 13px;
    }
    .auth-field input {
        min-height: 50px;
        border-radius: 13px;
    }
    .auth-google {
        min-height: 50px;
        margin-bottom: 4px;
        border-radius: 13px;
    }
    .auth-providers {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .auth-providers .auth-google {
        min-width: 0;
        min-height: 50px;
        gap: 7px;
        margin: 0;
        padding: 8px;
        border-radius: 13px;
        font-size: 12px;
    }
    .auth-providers .auth-google svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }
    .auth-apple {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 50px;
        padding: 8px;
        border: 1px solid #111;
        border-radius: 13px;
        background: #111;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    }
    .auth-apple:hover {
        transform: translateY(-1px);
        border-color: #333;
        background: #292929;
    }
    body.dark .auth-apple {
        border-color: #f5f5f7;
        background: #f5f5f7;
        color: #111;
    }
    body.dark .auth-apple:hover {
        border-color: #fff;
        background: #fff;
    }
    .auth-divider {
        margin: 18px 0 16px;
    }
    .auth-row {
        margin: 2px 0 18px;
    }
    .auth-submit {
        min-height: 50px;
        border-radius: 13px;
    }
    .auth-guest {
        min-height: 46px;
        border-style: solid;
        border-radius: 13px;
    }

    .auth-showcase {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        overflow: hidden;
        padding: 38px clamp(34px, 4vw, 64px) 30px;
        color: #f7faff;
        background:
            radial-gradient(500px 430px at 100% 92%, rgba(19, 129, 255, 0.38), transparent 72%),
            radial-gradient(520px 360px at 78% 12%, rgba(0, 195, 220, 0.14), transparent 70%),
            linear-gradient(145deg, #06122f 0%, #071b42 52%, #06122a 100%);
    }
    body.dark .auth-showcase {
        background:
            radial-gradient(520px 440px at 100% 92%, rgba(24, 93, 220, 0.3), transparent 72%),
            radial-gradient(500px 360px at 78% 12%, rgba(0, 165, 195, 0.12), transparent 70%),
            linear-gradient(145deg, #070c18 0%, #0b1425 54%, #080e1b 100%);
    }
    .auth-showcase-header {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    .auth-showcase-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: -0.03em;
    }
    .auth-showcase-brand img {
        width: 34px;
        height: 34px;
        padding: 3px;
        border-radius: 9px;
        background: #fff;
        object-fit: contain;
    }
    .auth-showcase-header nav {
        color: rgba(233, 241, 255, 0.72);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .auth-showcase-header nav span {
        padding: 0 7px;
        color: #38c8ed;
    }
    .auth-showcase-content {
        position: relative;
        z-index: 1;
        width: min(100%, 540px);
        margin: 42px auto 28px;
    }
    .auth-showcase-eyebrow {
        margin: 0 0 15px;
        color: #61d9f4;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.16em;
    }
    .auth-showcase h2 {
        margin: 0;
        color: #f7faff;
        font-size: clamp(38px, 4.2vw, 60px);
        font-weight: 800;
        line-height: 1.06;
        letter-spacing: -0.055em;
    }
    .auth-showcase h2 span {
        color: #1bb7f1;
    }
    .auth-showcase-copy {
        max-width: 420px;
        margin: 18px 0 24px;
        color: rgba(230, 239, 255, 0.76);
        font-size: 15px;
        line-height: 1.65;
    }
    .auth-feature-list {
        display: grid;
        gap: 10px;
    }
    .auth-feature {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 66px;
        padding: 11px 15px;
        border: 1px solid rgba(104, 158, 255, 0.24);
        border-radius: 15px;
        background: rgba(10, 31, 72, 0.54);
        box-shadow: 0 10px 24px rgba(0, 5, 23, 0.15), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
        backdrop-filter: blur(10px);
    }
    .auth-feature-icon {
        display: grid;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        place-items: center;
        border: 1px solid rgba(75, 191, 255, 0.25);
        border-radius: 12px;
        background: rgba(24, 131, 244, 0.17);
        color: #67d9ff;
        font-size: 12px;
        font-weight: 800;
    }
    .auth-feature h3 {
        margin: 0 0 3px;
        color: #f4f8ff;
        font-size: 14px;
    }
    .auth-feature p {
        margin: 0;
        color: rgba(221, 233, 255, 0.66);
        font-size: 12px;
    }
    .auth-feature-arrow {
        margin-left: auto;
        color: #42d4eb;
        font-size: 18px;
    }
    .auth-showcase-note {
        position: relative;
        z-index: 1;
        max-width: 540px;
        margin: 0 auto;
        color: rgba(220, 233, 255, 0.59);
        font-size: 11px;
        line-height: 1.6;
    }
    .auth-showcase-orbit {
        position: absolute;
        right: -250px;
        bottom: -310px;
        width: 590px;
        height: 590px;
        border: 1px solid rgba(74, 160, 255, 0.24);
        border-radius: 50%;
        box-shadow: 0 0 0 34px rgba(42, 133, 255, 0.035), 0 0 0 72px rgba(42, 133, 255, 0.025);
        pointer-events: none;
    }

    .auth-footer {
        width: min(1440px, 100%);
        margin: 0;
        font-size: 11px;
    }
}

/* ---------- login polish ---------- */
body.auth-body {
    background-color: #f5f5ff;
    background-image:
        radial-gradient(rgba(82, 91, 177, 0.12) 0.75px, transparent 0.85px),
        radial-gradient(620px 480px at 8% 12%, rgba(84, 74, 205, 0.16), transparent 72%),
        radial-gradient(600px 480px at 92% 85%, rgba(19, 157, 145, 0.12), transparent 72%),
        radial-gradient(500px 360px at 74% 8%, rgba(217, 153, 74, 0.08), transparent 74%),
        linear-gradient(145deg, #fbfaff 0%, var(--bg) 58%, #e9edff 100%);
    background-size: 26px 26px, auto, auto, auto, auto;
}
body.dark.auth-body {
    background-color: #080b14;
    background-image:
        radial-gradient(rgba(163, 173, 255, 0.13) 0.75px, transparent 0.85px),
        radial-gradient(620px 480px at 8% 12%, rgba(75, 74, 202, 0.22), transparent 72%),
        radial-gradient(600px 480px at 92% 85%, rgba(13, 135, 131, 0.15), transparent 72%),
        radial-gradient(500px 360px at 74% 8%, rgba(184, 123, 61, 0.09), transparent 74%),
        linear-gradient(145deg, #0b0d19 0%, #101426 58%, #0c1020 100%);
}
body.auth-body::before {
    animation: auth-orb-drift 24s ease-in-out infinite alternate;
    will-change: transform;
}
body.auth-body::after {
    position: fixed;
    z-index: 0;
    inset: 0;
    border-radius: 0;
    opacity: 0.34;
    background: linear-gradient(120deg, transparent 20%, rgba(120, 115, 214, 0.035) 50%, transparent 80%);
    pointer-events: none;
}
body.dark.auth-body::after {
    background: linear-gradient(120deg, transparent 20%, rgba(143, 151, 255, 0.035) 50%, transparent 80%);
}

.auth-card {
    border-color: rgba(130, 139, 192, 0.26);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 24px 72px rgba(44, 49, 106, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    animation: auth-fade-up 680ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
body.dark .auth-card {
    border-color: rgba(155, 164, 232, 0.19);
    background: rgba(15, 20, 34, 0.82);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 1px 0 rgba(238, 241, 255, 0.07) inset;
}
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
    .auth-layout {
        background: rgba(255, 255, 255, 0.48);
        backdrop-filter: blur(20px) saturate(125%);
        -webkit-backdrop-filter: blur(20px) saturate(125%);
    }
    body.dark .auth-layout {
        background: rgba(13, 17, 29, 0.64);
    }
}

.auth-logo,
.auth-card > h2,
.auth-card > p.auth-sub,
.auth-highlights,
.auth-error,
.auth-providers,
.auth-divider,
.auth-field,
.auth-row,
.auth-submit,
.auth-guest {
    animation: auth-fade-up 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.auth-logo { animation-delay: 80ms; }
.auth-card > h2 { animation-delay: 140ms; }
.auth-card > p.auth-sub { animation-delay: 190ms; }
.auth-highlights { animation-delay: 240ms; }
.auth-providers { animation-delay: 300ms; }
.auth-divider { animation-delay: 350ms; }
.auth-field:nth-of-type(1) { animation-delay: 390ms; }
.auth-field:nth-of-type(2) { animation-delay: 430ms; }
.auth-row { animation-delay: 470ms; }
.auth-submit { animation-delay: 510ms; }
.auth-guest { animation-delay: 550ms; }

.auth-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -10px 0 18px;
}
.auth-highlights span {
    padding: 6px 9px;
    border: 1px solid rgba(112, 111, 190, 0.18);
    border-radius: 999px;
    background: rgba(117, 106, 221, 0.075);
    color: var(--primary-strong);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
#authNameField[hidden] { display: none; }
.auth-submit:disabled {
    cursor: wait;
    opacity: 0.76;
}
body.dark .auth-highlights span {
    border-color: rgba(159, 163, 255, 0.2);
    background: rgba(122, 114, 255, 0.13);
    color: #d3d4ff;
}

.auth-google,
.auth-apple,
.auth-guest,
.auth-submit {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.auth-google:hover,
.auth-apple:hover,
.auth-guest:hover,
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(72, 78, 159, 0.16);
}
.auth-google:active,
.auth-apple:active,
.auth-guest:active,
.auth-submit:active {
    transform: translateY(0) scale(0.985);
}
.auth-google:focus-visible,
.auth-apple:focus-visible,
.auth-guest:focus-visible,
.auth-submit:focus-visible {
    outline: 3px solid rgba(115, 107, 235, 0.42);
    outline-offset: 3px;
}
.auth-showcase-header,
.auth-showcase-eyebrow,
.auth-showcase h2,
.auth-showcase-copy,
.auth-feature,
.auth-showcase-note {
    animation: auth-fade-up 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.auth-showcase-header { animation-delay: 100ms; }
.auth-showcase-eyebrow { animation-delay: 180ms; }
.auth-showcase h2 { animation-delay: 240ms; }
.auth-showcase-copy { animation-delay: 300ms; }
.auth-feature:nth-child(1) { animation-delay: 360ms; }
.auth-feature:nth-child(2) { animation-delay: 430ms; }
.auth-feature:nth-child(3) { animation-delay: 500ms; }
.auth-showcase-note { animation-delay: 560ms; }
.auth-feature {
    border-color: rgba(153, 155, 255, 0.23);
    background: rgba(24, 28, 73, 0.48);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.auth-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(146, 151, 255, 0.48);
    background: rgba(35, 38, 91, 0.64);
}

@keyframes auth-fade-up {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
}
@keyframes auth-orb-drift {
    from { transform: translate3d(-12px, -8px, 0) scale(0.98); }
    to { transform: translate3d(22px, 18px, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    body.auth-body::before,
    .auth-card,
    .auth-logo,
    .auth-card > h2,
    .auth-card > p.auth-sub,
    .auth-highlights,
    .auth-error,
    .auth-providers,
    .auth-divider,
    .auth-field,
    .auth-row,
    .auth-submit,
    .auth-guest,
    .auth-showcase-header,
    .auth-showcase-eyebrow,
    .auth-showcase h2,
    .auth-showcase-copy,
    .auth-feature,
    .auth-showcase-note {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        translate: none !important;
    }
}

body.auth-body,
body.dark.auth-body {
    color: var(--text);
    background: var(--bg);
}

body.auth-body::before,
body.auth-body::after {
    display: none;
}

.auth-showcase-orbit {
    display: none;
}

.auth-layout {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
}

body.dark .auth-layout {
    background: var(--panel);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.auth-card,
body.dark .auth-card {
    color: var(--text);
    border-color: var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.dark .auth-card {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.auth-showcase,
body.dark .auth-showcase {
    color: var(--text);
    border-left: 1px solid var(--line);
    background: var(--panel-soft);
}

.auth-showcase-header nav,
.auth-showcase-copy,
.auth-showcase-note {
    color: var(--muted);
}

.auth-showcase-header nav span,
.auth-showcase-eyebrow,
.auth-showcase h2 span,
.auth-feature-arrow {
    color: var(--accent);
}

.auth-showcase h2,
.auth-feature h3 {
    color: var(--text);
}

.auth-feature,
.auth-feature:hover {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.auth-feature-icon {
    color: var(--accent);
    border-color: var(--line);
    background: var(--accent-subtle);
}

.auth-theme-toggle {
    color: var(--text);
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

body.dark .auth-theme-toggle {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.auth-highlights span,
body.dark .auth-highlights span {
    color: var(--accent);
    border-color: var(--line);
    background: var(--accent-subtle);
}

.auth-google,
.auth-guest,
.auth-apple,
body.dark .auth-apple {
    color: var(--text);
    border-color: var(--line);
    background: var(--panel);
}

.auth-google:hover,
.auth-guest:hover,
.auth-apple:hover,
body.dark .auth-apple:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--panel-soft);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.auth-google:focus-visible,
.auth-apple:focus-visible,
.auth-guest:focus-visible,
.auth-submit:focus-visible {
    outline-color: var(--accent);
}

.auth-logo .logo-box {
    position: relative;
    isolation: isolate;
    overflow: visible;
    box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(30, 41, 59, 0.16);
    animation: auth-logo-float 5s ease-in-out infinite;
}

.auth-logo .logo-box::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -6px;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    border-radius: 17px;
    opacity: 0.62;
    animation: auth-logo-halo 5s ease-in-out infinite;
    pointer-events: none;
}

body.dark .auth-logo .logo-box {
    box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.42), 0 0 22px var(--accent-glow);
}

@keyframes auth-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes auth-logo-halo {
    0%, 100% { opacity: 0.38; transform: scale(0.98); }
    50% { opacity: 0.78; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-logo .logo-box,
    .auth-logo .logo-box::before {
        animation: none;
    }
}
