:root {
    color-scheme: dark;
    --ink: #f8f4fd;
    --muted: #beb2ce;
    --accent: #e1bfff;
    --line: rgba(194, 170, 223, .24);
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #100b1d;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid #edd2ff; outline-offset: 4px; }
.frame { width: min(89%, 1400px); margin-inline: auto; }

.galaxy-sky {
    position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
    background: radial-gradient(ellipse at 32% 37%, #4d3059 0, #201331 42%, #100b1d 80%);
}
.scene-camera, .scene-plate { position: absolute; inset: 0; }
.scene-plate { --nucleus-x:30.9%; --nucleus-y:36.3%; --orbit-scale:.57; }
.scene-plate picture, .galaxy-image { display:block; width:100%; height:100%; }
.galaxy-image { object-fit:cover; object-position:36% 47%; }
.galaxy-sky::after {
    content:""; position:absolute; inset:0;
    background:linear-gradient(0deg,rgba(13,8,23,.94),rgba(18,9,27,.4) 20%,transparent 54%),
               linear-gradient(90deg,transparent 48%,rgba(17,10,27,.48) 88%);
}
.pointer-sky { position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; }
.galaxy-core,.star-stream,.galaxy-glint { display:none; }
@supports (width: 1cqh) {
    .galaxy-sky { container-type:size; }
    .scene-plate {
        inset:auto; width:max(100cqw,177.69cqh); aspect-ratio:1672 / 941;
        left:36%; top:47%; translate:-36% -47%;
    }
    .galaxy-core, .star-stream { display:block; position:absolute; left:var(--nucleus-x); top:var(--nucleus-y); translate:-50% -50%; }
    .galaxy-core {
        width:calc(19% * var(--orbit-scale)); aspect-ratio:2.8; rotate:-23deg; border-radius:50%;
        background:radial-gradient(ellipse, #ffe5cba6, #edade43b 31%, transparent 69%); opacity:.32;
    }
    .star-stream { width:calc(26% * var(--orbit-scale)); aspect-ratio:1; transform:rotate(-31deg) scaleY(.36); }
    .stream-outer { width:calc(38% * var(--orbit-scale)); transform:rotate(-31deg) scaleY(.40); }
    .star-stream span { position:absolute; inset:0; }
    .star-stream span::before {
        content:""; position:absolute; inset:0; border-radius:50%;
        background:conic-gradient(transparent 0 319deg,#bd95fa22 333deg,#ebbbf388 350deg,#fff0df 359deg,transparent);
        mask-image:radial-gradient(closest-side,transparent 97.8%,#000 99%,transparent);
    }
    .star-stream span::after {
        content:""; position:absolute; top:0; left:50%; width:5px; height:7px; translate:-50% -50%; border-radius:50%;
        background:#fff4ec; box-shadow:0 0 6px 2px #edb3ea;
    }
    .stream-outer span::after { background:#d9deff; box-shadow:0 0 7px 2px #9da9ef; }
    .galaxy-glint {
        display:block; position:absolute; translate:-50% -50%; width:5%; aspect-ratio:1; opacity:.32;
        background:radial-gradient(ellipse 50% 1.6%,#fff2dc,transparent),radial-gradient(ellipse 1.6% 46%,#e1d3ff,transparent);
    }
    .glint-near {left:15.4%;top:17.7%;}
    .glint-far {left:85.2%;top:67.9%;width:3.3%;}
}
.meteor {
    position:absolute; left:62%; top:19%; width:clamp(60px,8vw,120px); height:1px; border-radius:50%;
    background:linear-gradient(90deg,#fff0ff,#cbb7ff 15%,transparent); opacity:0;
}
@media (prefers-reduced-motion:no-preference) {
    html[data-motion="on"] .scene-camera { transform:translate(var(--pan-x,0px),var(--pan-y,0px)) scale(1.022); transition:transform .48s ease-out; }
    html[data-motion] .galaxy-core {animation:core-breath 7s ease-in-out infinite alternate;}
    html[data-motion] .star-stream span {animation:stream-orbit 19s linear -5s infinite;}
    html[data-motion] .stream-outer span {animation-duration:33s;animation-delay:-22s;}
    html[data-motion] .galaxy-glint {animation:star-twinkle 4.6s ease-in-out infinite alternate;}
    html[data-motion] .glint-far {animation-delay:-3.2s;}
    html[data-motion] .meteor {animation:falling-star 11s linear -2s infinite;}
    html[data-motion="off"] :is(.galaxy-core,.star-stream span,.galaxy-glint,.meteor) {animation-play-state:paused;}
    .motion-intro .login-panel {animation:arrive .55s ease-out both;}
    .motion-intro .identity {animation:arrive .75s ease-out both;}
    .input-box,.submit,.arrow,.motion-switch {transition:border-color .18s,background-color .18s,box-shadow .18s,transform .2s;}
    .submit:hover .arrow {transform:translateX(4px);}
}
@keyframes stream-orbit { to {transform:rotate(1turn);} }
@keyframes core-breath { from {opacity:.19;transform:scale(.86);} to {opacity:.83;transform:scale(1.14);} }
@keyframes star-twinkle { from {opacity:.1;transform:scale(.66);} to {opacity:.82;transform:scale(1.12);} }
@keyframes falling-star {
    0%,29%,100% {opacity:0;transform:translate(0,0) rotate(-27deg);}
    31% {opacity:.94;} 39%,99% {opacity:0;transform:translate(-195px,100px) rotate(-27deg);}
}
@keyframes arrive { from {opacity:0;transform:translateY(9px);} to {opacity:1;transform:translateY(0);} }
.masthead { display: flex; align-items: center; justify-content: space-between; padding-block: clamp(20px, 4vh, 44px); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: .93rem; font-weight: 680; letter-spacing: .16em; }
.wordmark { text-shadow:0 1px 5px #100a1c, 0 2px 14px #100a1c; }
.wordmark .domain { color: #c8bcd6; font-weight: 450; }
.brand-mark {
    width: 32px; height: 34px; display: grid; place-items: center;
    border: 1px solid rgba(212, 176, 247, .55); border-radius: 10px;
    background: linear-gradient(140deg, rgba(215, 182, 251, .23), rgba(40, 25, 59, .52));
}
.brand-mark::before {
    content: ""; width: 15px; height: 21px; background: linear-gradient(150deg, #fff1e9, #bd9aff);
    clip-path: polygon(56% 0, 100% 0, 63% 39%, 92% 39%, 14% 100%, 38% 54%, 8% 54%);
}
.motion-switch {
    display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 15px;
    border: 1px solid var(--line); border-radius: 24px; background: rgba(24, 15, 39, .76);
    color: #e4d9ee; font-size: .77rem; letter-spacing: .04em;
}
.motion-switch:hover { border-color: #b99ecf; }
.motion-glyph { width: 9px; height: 10px; border-inline: 2px solid currentColor; }
html[data-motion="off"] .motion-glyph { border: 0; background: currentColor; clip-path: polygon(9% 0, 100% 50%, 9% 100%); }
.entry {
    width: min(84%, 1240px);
    display: grid; flex: 1; align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(310px, min(39vw, 414px));
    gap: clamp(24px, 5vw, 92px);
    padding-block: clamp(24px, 4vh, 60px) clamp(36px, 6vh, 80px);
}
.identity { align-self: end; padding-bottom: clamp(12px, 6vh, 68px); text-shadow: 0 3px 26px #11091e; }
.identity h1 {
    font-family: "Songti SC", "STZhongsong", "Noto Serif CJK SC", SimSun, serif;
    font-size: clamp(2.4rem, 4.4vw, 4.6rem); font-weight: 500;
    line-height: 1.24; letter-spacing: .055em;
}
@supports (background-clip:text) {
    .identity h1 {width:fit-content; color:transparent; background:linear-gradient(110deg,#fff4ef 4%,#edd4f4 55%,#b7b7fe);background-clip:text;text-shadow:none;}
}
.identity p { margin-top: 14px; color: #e1d7ec; font-size: clamp(.87rem, 1.15vw, 1.07rem); letter-spacing: .09em; line-height: 1.65; }
.login-panel {
    position: relative; padding: clamp(26px, 3vw, 44px); color: var(--ink);
    border-radius: 22px; border: 1px solid rgba(205, 170, 240, .34);
    background: linear-gradient(145deg, rgba(48, 31, 65, .97), rgba(22, 15, 35, .97) 64%);
    box-shadow: 0 24px 70px -22px rgba(7, 3, 18, .84), inset 0 1px rgba(245, 224, 255, .09);
}
.login-panel::before {
    content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, #dfb5ef 48%, transparent);
}
.login-panel::after {
    content: ""; pointer-events: none; position: absolute; inset: -1px; border-radius: inherit;
    padding: 2px; opacity: 0;
    background: radial-gradient(145px circle at var(--light-x, 50%) var(--light-y, 0%), #ffe2f4, #b496ff 28%, transparent 90%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
@supports (mask-composite: exclude) {
    html[data-motion="on"] .login-panel[data-lit]::after { opacity: 1; }
}
.login-panel h2 { font-size: clamp(1.85rem, 2.6vw, 2.35rem); line-height: 1.25; letter-spacing: .045em; font-weight: 620; }
.login-panel h2 {font-family:"Songti SC","STZhongsong","Noto Serif CJK SC",SimSun,serif;}
.intro { margin-top: 9px; color: var(--muted); font-size: .91rem; line-height: 1.65; }
form { margin-top: 29px; }
.field + .field { margin-top: 20px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label { color: #eee7f4; font-size: .88rem; font-weight: 560; }
.field-heading a { font-size: .82rem; }
.input-box {
    position: relative; display: flex; align-items: center; min-height: 50px; margin-top: 9px;
    background: #171020; border: 1px solid #695477; border-radius: 10px;
}
.input-box:focus-within { border-color: #ddb4ff; box-shadow: 0 0 0 3px rgba(198, 149, 252, .16); }
.field:has([aria-invalid="true"]) .input-box { border-color: #eaa49b; }
.input-box input {
    width: 100%; min-width: 0; height: 48px; padding: 0 13px 0 43px;
    border: 0; border-radius: inherit; outline: 0; color: var(--ink); background: transparent; font-size: 1rem;
}
.input-box input::placeholder { color: #b2a1bd; font-size: .89rem; opacity: 1; }
.input-box input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 100px #251a30; caret-color: var(--ink); }
.field-icon { position: absolute; left: 15px; pointer-events: none; color: #c5b0d3; z-index: 1; }
.mail-icon { width: 16px; height: 12px; border: 1.5px solid; border-radius: 3px; overflow: hidden; }
.mail-icon::before { content: ""; position: absolute; width: 10px; height: 10px; border: solid; border-width: 0 1.5px 1.5px 0; transform: translate(1.7px,-5.7px) rotate(45deg); }
.lock-icon { width: 14px; height: 11px; border: 1.5px solid; border-radius: 3px; margin: 4px 0 0 1px; }
.lock-icon::before { content: ""; position: absolute; width: 8px; height: 7px; left: 1.6px; top: -7px; border: 1.5px solid; border-bottom: 0; border-radius: 6px 6px 0 0; }
.reveal { flex: 0 0 44px; height: 44px; margin-right: 2px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #cab9d7; }
.reveal:hover { color: var(--accent); }
.reveal:focus-visible { outline-offset: -4px; }
.eye { display: grid; place-items: center; position: relative; width: 17px; height: 11px; border: 1.5px solid; border-radius: 65% 65% 65% 65% / 85% 85% 85% 85%; }
.eye::before { content: ""; width: 5px; height: 5px; border: 1px solid; border-radius: 50%; }
input[type="text"] + .reveal .eye::after { content: ""; position: absolute; width: 20px; height: 1.5px; background: currentColor; transform: rotate(-40deg); }
.submit {
    position: relative; overflow: hidden;
    width: 100%; min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 25px;
    background: linear-gradient(105deg, #dbc5ff, #c3bcfc 56%, #efc4e7); color: #241435;
    border: 1px solid rgba(243, 215, 255, .82); border-radius: 10px; box-shadow: 0 6px 20px rgba(194, 143, 252, .18);
    font-weight: 680; letter-spacing: .08em;
}
.submit > span { position: relative; }
@media (prefers-reduced-motion: no-preference) {
    html[data-motion="on"] .submit:is(:hover, :focus-visible)::before {
        content: ""; position: absolute; pointer-events: none; inset: 0 auto 0 -40%; width: 36%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 241, .65), transparent);
        animation: button-sheen .65s ease-out both;
    }
}
@keyframes button-sheen {
    from { transform: translateX(0) skewX(-18deg); }
    to { transform: translateX(410%) skewX(-18deg); }
}
.submit:hover { background: linear-gradient(105deg, #f1dfff, #d8d3ff 56%, #f6d7ee); box-shadow: 0 6px 24px rgba(194, 143, 252, .3); }
.submit:active { transform: translateY(1px); }
.arrow { width: 16px; height: 1.5px; position: relative; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0; bottom: -3.5px; width: 8px; height: 8px; border: solid; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.register-prompt { padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .88rem; }
.register-prompt a { margin-left: 3px; font-weight: 580; }
.notice, .field-error { font-size: .85rem; line-height: 1.55; overflow-wrap: anywhere; }
.notice { margin-top: 18px; padding: 10px 13px; border: 1px solid #52766f; border-radius: 8px; color: #c4f0dd; background: #172f31; }
.notice-error { border-color: #8d5d60; background: #36252e; color: #ffccc6; }
.field-error { color: #ffb8af; margin-top: 6px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 22px; padding-block: 21px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(200, 176, 219, .2); font-size: .73rem; line-height: 1.7; color: #c1b4cd; }
.filings { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.filings a { color: inherit; }

@media (max-width:980px) and (orientation:portrait), (max-width:599px) {
    body { background:radial-gradient(ellipse at 12% 76%,#21162e,transparent 55%),#100b1d; }
    .masthead, .entry, .site-footer { width:min(90%,460px); }
    .masthead { padding-block:16px 10px; }
    .galaxy-sky { bottom:auto; height:clamp(275px,46svh,545px); }
    .galaxy-image {object-position:center 40%;}
    @supports (width:1cqh) {
        .scene-plate {width:max(100cqw,147.11cqh);aspect-ratio:840 / 571;left:50%;top:40%;translate:-50% -40%;
            --nucleus-x:36.9%;--nucleus-y:33.6%;--orbit-scale:.80;}
        .glint-near {left:15.5%;top:12.3%;}
        .glint-far,.stream-outer {display:none;}
    }
    .galaxy-sky::after {background:linear-gradient(0deg,#100b1d 0%,rgba(16,11,29,.58) 26%,transparent 73%),linear-gradient(180deg,rgba(16,11,29,.48),transparent 23%);}
    .entry { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 10px 28px; }
    .identity { align-self: stretch; padding: clamp(36px, 7svh, 62px) 4px 0; }
    .identity h1 { font-size: 2rem; }
    .identity p { margin-top: 5px; font-size: .79rem; }
    .login-panel { width: 100%; padding: 26px clamp(18px, 5vw, 30px); border-radius: 17px; }
    .login-panel h2 { font-size: 1.85rem; }
    .intro { margin-top: 5px; }
    form { margin-top: 21px; }
    .field + .field { margin-top: 16px; }
    .register-prompt { margin-top: 19px; padding-top: 17px; }
    .site-footer { justify-content: center; gap: 3px 16px; text-align: center; padding-block: 14px max(16px, env(safe-area-inset-bottom)); }
    .filings { justify-content: center; }
}
@media (max-width: 760px) and (max-height: 700px) and (orientation: portrait) {
    .identity { padding-top: 14px; }
    .identity h1 { font-size: 1.7rem; }
    .entry { gap: 14px; }
    .login-panel { padding-block: 21px; }
}
@media (min-width: 600px) and (max-height: 530px) and (orientation: landscape) {
    .masthead { z-index: 1; position: absolute; top: 12px; left: 4%; width: auto; flex-wrap: wrap; gap: 12px; padding: 0; }
    .entry { display: grid; width: 92%; max-width: 1000px; grid-template-columns: minmax(0, 1fr) minmax(300px, 44%); gap: 16px; padding-block: 10px 14px; }
    .galaxy-sky { height: 100%; }
    .identity { align-self: end; padding: 0 0 10px; }
    .identity h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
    .identity p { font-size: .78rem; letter-spacing: .03em; }
    .login-panel { padding: 17px 22px; }
    .login-panel h2 { font-size: 1.65rem; }
    .intro { margin-top: 3px; }
    form { margin-top: 12px; }
    .field + .field { margin-top: 10px; }
    .input-box { margin-top: 4px; min-height: 44px; }
    .input-box input { height: 42px; }
    .reveal { height: 42px; }
    .submit { margin-top: 13px; min-height: 44px; }
    .register-prompt { margin-top: 11px; padding-top: 11px; }
    .site-footer { width: 92%; max-width: 1000px; padding-block: 9px; }
}
@media (forced-colors: active) {
    .identity h1 {color:CanvasText;background:none;}
    .galaxy-sky,.pointer-sky {display:none;}
    .input-box, .submit, .motion-switch, .login-panel { border: 1px solid ButtonText; }
    .input-box:focus-within { outline: 2px solid Highlight; }
    .arrow, .motion-glyph, .eye::before { forced-color-adjust: none; color: ButtonText; }
}
