        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
            background: #07060f;
            min-height: 100vh;
            display: flex; align-items: center; justify-content: center;
            padding: 20px; position: relative; overflow: hidden;
            color: #e9eaf4;
        }
        /* ==== animated aurora background ==== */
        .aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
        .aurora span {
            position: absolute; border-radius: 50%; filter: blur(110px);
            will-change: transform, opacity; pointer-events: none;
        }
        .aurora span:nth-child(1) {
            width: 560px; height: 560px; left: -180px; top: -200px;
            background: radial-gradient(circle, rgba(47,125,250,0.60), transparent 70%);
            animation: drift1 26s ease-in-out infinite alternate;
        }
        .aurora span:nth-child(2) {
            width: 620px; height: 620px; right: -220px; bottom: -240px;
            background: radial-gradient(circle, rgba(114,46,209,0.55), transparent 70%);
            animation: drift2 32s ease-in-out infinite alternate;
        }
        .aurora span:nth-child(3) {
            width: 420px; height: 420px; left: 15%; top: 60%;
            background: radial-gradient(circle, rgba(24,87,201,0.45), transparent 70%);
            animation: drift3 22s ease-in-out infinite alternate;
        }
        @keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(80px,60px) scale(1.15); } }
        @keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px,-50px) scale(1.2); } }
        @keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,-60px) scale(0.9); } }
        /* subtle grid overlay */
        .grid {
            position: fixed; inset: 0; z-index: 0; pointer-events: none;
            background-image:
                linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
            background-size: 46px 46px;
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
        }
        /* floating particles */
        .particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
        .particles i {
            position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%;
            background: rgba(255,255,255,0.35);
            animation: rise linear infinite;
        }
        @keyframes rise {
            0% { transform: translateY(0); opacity: 0; }
            10% { opacity: 0.7; }
            90% { opacity: 0.4; }
            100% { transform: translateY(-106vh); opacity: 0; }
        }
        .card {
            position: relative; z-index: 1;
            background: rgba(17,16,34,0.72);
            backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%);
            border: 1px solid rgba(255,255,255,0.11);
            border-radius: 24px; padding: 46px 40px 38px;
            width: 100%; max-width: 410px;
            box-shadow: 0 40px 90px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.06);
            animation: cardIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2);
        }
        @keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
        .topbar { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
        .badge {
            display: inline-flex; align-items: center; gap: 7px;
            font-size: 0.72em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
            color: #9fb6ff; background: rgba(47,125,250,0.12);
            border: 1px solid rgba(47,125,250,0.28);
            padding: 6px 12px; border-radius: 999px;
        }
.login-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
        .logo-img {
            width: 96px; height: 96px; border-radius: 22px; object-fit: cover; display: block;
            box-shadow: 0 14px 34px rgba(47,125,250,0.35), 0 0 0 4px rgba(255,255,255,0.07);
            margin-bottom: 20px; animation: pulse 3s ease-in-out infinite;
        }
        .logo {
            width: 68px; height: 68px; border-radius: 20px;
            background: linear-gradient(135deg, #2f7dfa, #1857c9 55%, #7b2ff7);
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 14px 34px rgba(47,125,250,0.5), 0 0 0 6px rgba(47,125,250,0.10);
            color: #fff; font-family: 'Sora', 'Segoe UI', sans-serif; font-weight: 800;
            font-size: 1.2em; letter-spacing: -0.08em; margin-bottom: 20px;
            animation: pulse 3s ease-in-out infinite;
        }
        .product-kicker { color: #87a9ff; font-size: 0.72em; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 9px; text-transform: uppercase; }
        @keyframes pulse {
            0%, 100% { box-shadow: 0 14px 34px rgba(47,125,250,0.5), 0 0 0 5px rgba(47,125,250,0.10); }
            50% { box-shadow: 0 18px 42px rgba(47,125,250,0.62), 0 0 0 11px rgba(47,125,250,0.04); }
        }
        .card h1 {
            color: #fff; font-size: 1.62em; font-weight: 800; letter-spacing: 0.2px;
            font-family: 'Sora', 'Segoe UI', sans-serif;
            background: linear-gradient(90deg, #fff, #b9ccff);
            -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
        }
        .card .sub { color: #a5aac4; margin: 8px 0 30px; font-size: 0.96em; }
        /* error alert */
        .alert {
            display: flex; align-items: flex-start; gap: 10px; text-align: left;
            padding: 13px 15px; border-radius: 12px; margin-bottom: 20px; font-size: 0.9em;
            animation: alertIn 0.35s ease;
        }
        @keyframes alertIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
        .alert .ico { flex: 0 0 auto; font-size: 1.15em; margin-top: 1px; }
        .alert.err { color: #ffb3b3; background: rgba(231,76,60,0.13); border: 1px solid rgba(231,76,60,0.32); }
        .alert.warn { color: #ffd9a0; background: rgba(241,196,15,0.12); border: 1px solid rgba(241,196,15,0.3); }
        .alert.ok { color: #b3f0c6; background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.3); }
        /* discord button */
        .discord-btn {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            width: 100%; padding: 15px 20px;
            background: linear-gradient(135deg, #5865F2, #4a57d6);
            color: #fff; border: none; border-radius: 14px; font-size: 1.03em; cursor: pointer;
            font-weight: 600; text-decoration: none; position: relative; overflow: hidden;
            box-shadow: 0 16px 38px rgba(88,101,242,0.42);
            transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.2s ease;
        }
        .discord-btn::after {
            content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
            background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
            transform: skewX(-20deg); animation: shine 4.2s ease-in-out infinite;
        }
        @keyframes shine { 0%, 55% { left: -120%; } 85%, 100% { left: 160%; } }
        .discord-btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 20px 46px rgba(88,101,242,0.58); }
        .discord-btn:active { transform: translateY(0) scale(0.985); }
        .discord-btn svg { flex: 0 0 auto; }
        button.discord-btn { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
        .logout-cancel { display: inline-block; margin-top: 16px; color: inherit; text-underline-offset: 4px; }
        .discord-btn:focus-visible, .logout-cancel:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
        .divider {
            display: flex; align-items: center; gap: 12px; margin: 24px 0 0;
            color: #9099ba; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.1em;
        }
        .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.09); }
        .trust {
            display: flex; justify-content: center; gap: 8px 20px; flex-wrap: wrap; margin-top: 18px;
            font-size: 0.78em; color: #7f85a0;
        }
        .trust span { display: inline-flex; align-items: center; gap: 6px; }
        .trust b { color: #a9b4d8; font-weight: 600; }
        .foot { text-align: center; margin-top: 26px; font-size: 0.78em; color: #9099ba; }
        .foot a { color: #8ea4f5; text-decoration: none; }
        @media (max-width: 480px) {
            .card { padding: 36px 26px 30px; }
        }
        @media (max-width: 480px), (max-height: 760px) {
            body { align-items: flex-start; overflow-x: hidden; overflow-y: auto; }
            .card { padding-top: 26px; padding-bottom: 24px; }
            .topbar { margin-bottom: 18px; }
            .logo-img { width: 76px; height: 76px; margin-bottom: 14px; }
            .card .sub { margin: 6px 0 20px; }
            .divider { margin-top: 18px; }
            .trust { margin-top: 13px; }
            .foot { margin-top: 18px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .aurora span, .particles i, .logo, .discord-btn::after { animation: none !important; }
        }
        /* ==== CSP: logo fallback hidden by default (was inline style) ==== */
        #logoFallback { display: none; }
        /* ==== particle positions (were inline style attrs) ==== */
        .particles i.p0 { left: 0.0%; animation-duration: 9.0s; animation-delay: -0.0s; opacity: 0.22; }
        .particles i.p1 { left: 4.3%; animation-duration: 11.4s; animation-delay: -1.6s; opacity: 0.36; }
        .particles i.p2 { left: 8.6%; animation-duration: 13.8s; animation-delay: -3.2s; opacity: 0.5; }
        .particles i.p3 { left: 12.9%; animation-duration: 16.2s; animation-delay: -4.8s; opacity: 0.64; }
        .particles i.p4 { left: 17.2%; animation-duration: 18.6s; animation-delay: -6.4s; opacity: 0.22; }
        .particles i.p5 { left: 21.5%; animation-duration: 9.0s; animation-delay: -8.0s; opacity: 0.36; }
        .particles i.p6 { left: 25.8%; animation-duration: 11.4s; animation-delay: -9.6s; opacity: 0.5; }
        .particles i.p7 { left: 30.1%; animation-duration: 13.8s; animation-delay: -11.2s; opacity: 0.64; }
        .particles i.p8 { left: 34.4%; animation-duration: 16.2s; animation-delay: -0.0s; opacity: 0.22; }
        .particles i.p9 { left: 38.7%; animation-duration: 18.6s; animation-delay: -1.6s; opacity: 0.36; }
        .particles i.p10 { left: 43.0%; animation-duration: 9.0s; animation-delay: -3.2s; opacity: 0.5; }
        .particles i.p11 { left: 47.3%; animation-duration: 11.4s; animation-delay: -4.8s; opacity: 0.64; }
        .particles i.p12 { left: 51.6%; animation-duration: 13.8s; animation-delay: -6.4s; opacity: 0.22; }
        .particles i.p13 { left: 55.9%; animation-duration: 16.2s; animation-delay: -8.0s; opacity: 0.36; }
        .particles i.p14 { left: 60.2%; animation-duration: 18.6s; animation-delay: -9.6s; opacity: 0.5; }
        .particles i.p15 { left: 64.5%; animation-duration: 9.0s; animation-delay: -11.2s; opacity: 0.64; }
        .particles i.p16 { left: 68.8%; animation-duration: 11.4s; animation-delay: -0.0s; opacity: 0.22; }
        .particles i.p17 { left: 73.1%; animation-duration: 13.8s; animation-delay: -1.6s; opacity: 0.36; }
        .particles i.p18 { left: 77.4%; animation-duration: 16.2s; animation-delay: -3.2s; opacity: 0.5; }
        .particles i.p19 { left: 81.7%; animation-duration: 18.6s; animation-delay: -4.8s; opacity: 0.64; }
        .particles i.p20 { left: 86.0%; animation-duration: 9.0s; animation-delay: -6.4s; opacity: 0.22; }
        .particles i.p21 { left: 90.3%; animation-duration: 11.4s; animation-delay: -8.0s; opacity: 0.36; }

/* Keyboard navigation and compact viewport polish. */
:focus-visible { outline: 3px solid #9fc5ff; outline-offset: 4px; }
body { min-height: 100svh; overflow-x: hidden; overflow-y: auto; }
.card { flex-shrink: 0; }
.err { overflow-wrap: anywhere; }
@media (max-width: 360px) {
    body { padding: 16px 12px; }
    .card { padding: 26px 18px; border-radius: 18px; }
    .discord-btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
