body.account-page #auth-panel {
    border-color:#87455096;
    box-shadow:0 26px 78px #000a,0 0 30px #8b242e2a;
}
body.account-page #auth-panel .account-art {
    isolation:isolate; overflow:hidden;
    background:linear-gradient(0deg,#0d090de8 4%,#140b11a6 42%,#210c1240 100%),
        url("images/eclipse.jpg") 35% 12% / cover no-repeat,#120a0e;
}
#auth-panel .account-art::before { z-index:4; border-color:#ca5a6355; border-radius:11px 4px 11px 4px; }
#auth-panel .account-art::after {
    content:""; position:absolute; z-index:1; inset:0; pointer-events:none;
    background:linear-gradient(0deg,#100a0efa 5%,#100a0edf 21%,#100a0e38 57%,transparent 83%);
}
#auth-panel :is(.auth-scene-portrait,.auth-scene-fog,.auth-scene-glint,.auth-scene-embers) {
    position:absolute; inset:0; pointer-events:none;
}
#auth-panel .auth-scene-portrait {
    inset:-9px; mix-blend-mode:screen;
    background:url("images/black_swordsman.jpg") 18% 7% / auto 91% no-repeat;
    transform:translate(var(--auth-x,0px),var(--auth-y,0px));
    transition:transform .45s cubic-bezier(.18,.7,.3,1);
}
#auth-panel .auth-scene-video {
    position:absolute; inset:0; width:100%; height:100%; z-index:0;
    object-fit:cover; object-position:50% 40%;
    pointer-events:none; opacity:0;
}
#auth-panel .account-art.auth-video-ready .auth-scene-video { opacity:1; }
#auth-panel .account-art.auth-video-ready .auth-scene-portrait { visibility:hidden; }
#auth-panel .account-art.auth-video-ready::after {
    background:linear-gradient(0deg,#100a0efa 5%,#100a0ee6 22%,#100a0ea6 48%,#100a0e25 82%);
}
#auth-panel .auth-scene-fog {
    z-index:2; inset:17% -16% 5%; opacity:.23;
    background:radial-gradient(ellipse 52% 12% at 36% 53%,#d28a8759,transparent 79%),
        radial-gradient(ellipse 49% 14% at 70% 68%,#ad6d736b,transparent 81%);
}
#auth-panel .auth-scene-glint {
    z-index:2; opacity:0; mix-blend-mode:screen;
    background:linear-gradient(112deg,transparent 38%,#ad382c35 48%,#ffd1a346 51%,transparent 58%) 130% 0 / 230% 100% no-repeat;
}
#auth-panel .auth-scene-embers { z-index:3; }
#auth-panel .auth-scene-embers i {
    position:absolute; width:var(--ember-size); height:var(--ember-size);
    left:var(--ember-x); bottom:var(--ember-y); opacity:0; border-radius:50%;
    background:#ffbd79; box-shadow:0 0 8px 2px #e75d5ca0;
}
#auth-panel .auth-art-caption { z-index:5; text-shadow:0 2px 14px #10070b; }
#auth-panel .auth-art-caption>span { color:#ffd2af; }
#auth-panel .account-art h2 { margin:12px 0 16px; color:#fff0e6; }
#auth-panel .account-art h2 em { color:#ff7b80; }
#auth-panel .account-art p { margin-bottom:16px; }
body.account-page #auth-panel .auth-art-caption>a { border:1px solid #9d4954; border-radius:6px; padding:8px 13px; background:#201218b8; }
body.account-page #auth-panel>.account-card {
    min-height:610px; border-color:#81424e7c;
    background:radial-gradient(ellipse at 100% 0,#632c3845,transparent 58%),
        radial-gradient(ellipse at 0 100%,#60242d32,transparent 42%),#1a1318;
}
#auth-panel .account-tabs { margin-bottom:20px; border-color:#80474d99; }
#auth-panel #auth-title { margin-bottom:5px; }
#auth-panel .auth-scene-seal {
    display:flex; align-items:center; gap:12px; color:#f6787e;
    margin:0 0 15px; font-size:18px;
}
#auth-panel .auth-scene-seal::before,#auth-panel .auth-scene-seal::after {
    content:""; height:1px; flex:1; background:linear-gradient(90deg,#99485000,#d05c6899);
}
#auth-panel .auth-scene-seal::after { transform:scaleX(-1); }
body.account-page #auth-panel #google-sign-in { border-radius:28px!important; }
body.account-page #auth-panel #google-sign-in::before {
    content:"G"; font:800 19px/1 Arial,sans-serif;
    background:conic-gradient(#4285f4 0 27%,#34a853 27% 46%,#fbbc05 46% 68%,#ea4335 68% 87%,#4285f4 87%);
    background-clip:text; color:transparent;
}
#auth-panel .account-auth-divider { margin:16px 0; }
#auth-panel label { margin:14px 0; gap:6px; }
#auth-panel .auth-password-row { position:relative; display:flow-root; }
#auth-panel .auth-password-row:has(label[hidden]) { display:none; }
#auth-panel .auth-password-row label { margin:0 0 14px; }
#auth-panel #auth-password-input { padding-right:52px; }
#auth-panel #auth-password-peek {
    display:grid; place-items:center; position:absolute; bottom:15px; right:1px;
    min-width:44px; height:50px; padding:0; border:0; background:transparent; color:#dfacac;
}
#auth-panel .auth-eye-slash { display:none; }
#auth-panel #auth-password-peek[aria-pressed=true] .auth-eye-slash { display:block; }
.account-shell:has(#auth-panel:not([hidden])) #account-status:not(:empty) {
    margin-bottom:14px; padding:10px 13px; border:1px solid #ac4c586b; border-radius:8px;
    background:linear-gradient(90deg,#4a1a22df,#1e131a); color:#f5d4ca;
}
.account-shell:has(#auth-panel:not([hidden])) #account-status[data-error=true] { border-color:#ed566e; color:#ffd2d9; }
.account-shell #auth-status-dismiss {
    float:right; position:relative; z-index:1; width:44px; min-height:44px; padding:0;
    border:0; background:transparent; color:#f2b6b7; font-size:22px;
}
.account-shell #auth-status-dismiss:not([hidden]) + #account-status { padding-right:47px; }
#auth-panel #auth-submit { overflow:hidden; }
#auth-panel #auth-submit::after {
    content:""; position:absolute; inset:0; pointer-events:none;
    background:linear-gradient(112deg,transparent 36%,#ffc4a73d 48%,transparent 62%);
    transform:translateX(-110%); opacity:0;
}
@media(prefers-reduced-motion:no-preference) {
    #auth-panel.auth-scene-enter .auth-scene-portrait { animation:auth-scene-emerge 1.25s ease-out both; }
    #auth-panel.auth-scene-enter .auth-scene-glint { animation:auth-scene-glint 1.8s .22s ease-out both; }
    #auth-panel.auth-scene-enter .auth-scene-fog { animation:auth-scene-drift 5.3s ease-out both; }
    #auth-panel.auth-scene-enter .auth-scene-embers i { animation:auth-scene-ember 3.7s var(--ember-delay) ease-out both; }
    #auth-panel.auth-scene-enter #auth-submit::after { animation:auth-scene-shine 1.25s .52s ease-out both; }
    #auth-panel #auth-submit:not(:disabled):focus-visible::after { animation:auth-scene-shine .72s ease-out both; }
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) {
    #auth-panel #auth-submit:not(:disabled):hover::after { animation:auth-scene-shine .72s ease-out both; }
}
@media(prefers-reduced-motion:reduce) {
    #auth-panel .auth-scene-portrait { transform:none; transition:none; }
}
@keyframes auth-scene-emerge { from{opacity:0;filter:brightness(.65)} to{opacity:1;filter:brightness(1)} }
@keyframes auth-scene-glint { 0%{background-position:130% 0;opacity:0} 43%{opacity:.8} 100%{background-position:-36% 0;opacity:0} }
@keyframes auth-scene-drift { from{transform:translate(-8%,4%);opacity:.09} to{transform:translate(6%,-4%);opacity:.26} }
@keyframes auth-scene-ember { 0%,100%{opacity:0} 34%{opacity:.78} 100%{transform:translate(15px,-83px)} }
@keyframes auth-scene-shine { 0%{transform:translateX(-105%);opacity:0} 30%{opacity:.8} 100%{transform:translateX(110%);opacity:0} }
@media(max-width:760px) {
    body.account-page #auth-panel>.account-card { min-height:0; }
    body.account-page #auth-panel .account-art { min-height:300px; }
    #auth-panel .auth-scene-portrait { background-size:cover; background-position:16% 38%; }
}
