/* A full-viewport entrance; styles outside .auth-screen keep the member layout intact. */
body:has(.auth-screen){background:#fce9f1;color:#352431}
body:has(.auth-screen) .desk-note,body:has(.auth-screen) .site-header,body:has(.auth-screen) .locale-tools,body:has(.auth-screen) .upfront-starfield{display:none!important}
body:has(.auth-screen) #app{width:100%;max-width:none;margin:0;min-height:100svh;box-shadow:none;border:0;background:none;overflow:hidden}
body:has(.auth-screen) #view{padding:0!important;min-height:100svh;overflow:visible}
.auth-screen{--auth-ink:#352431;--auth-accent:#754360;position:relative;isolation:isolate;min-height:100svh;display:flex;flex-direction:column;color:var(--auth-ink);font-family:Inter,"PingFang TC","Microsoft JhengHei",sans-serif;background:#fce9f1}
.auth-screen *{box-sizing:border-box}.auth-screen a{color:inherit}.auth-screen button,.auth-screen input,.auth-screen select{font:inherit}.auth-screen button,.auth-screen a,.auth-screen select{-webkit-tap-highlight-color:transparent}.auth-screen button:focus-visible,.auth-screen a:focus-visible,.auth-screen select:focus-visible{outline:2px solid #754360;outline-offset:4px}
.auth-atmosphere{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 16% 5%,#ffb5d8 0,transparent 48%),linear-gradient(130deg,#ffe5f0,#f4d7e5 48%,#fff8fb)}
.auth-light{position:absolute;width:110vmax;height:110vmax;left:-55vmax;top:-60vmax;background:conic-gradient(from 45deg,transparent,#ff87c033,transparent 44%,#fff8 60%,transparent 75%);animation:auth-light-turn 32s linear infinite}
.auth-ribbons{position:absolute;width:82vw;height:110vh;left:-34vw;top:-3vh;transform:rotate(-25deg);perspective:1000px}
.auth-ribbons i{position:absolute;inset:calc(var(--i)*6%);border:clamp(28px,5vw,90px) solid #cf6a9c2e;border-left-color:#fff9;border-right-color:#d34c8c5c;border-radius:48%;box-shadow:inset 10px 2px 34px #fff9,10px 4px 34px #ac3f7630;transform:rotateY(28deg) rotateZ(calc(var(--i)*8deg));animation:auth-ribbon-wave 16s ease-in-out infinite alternate;animation-delay:calc(var(--i)*-3s)}
.auth-grid{position:absolute;inset:0;opacity:.32;background:linear-gradient(transparent 99.5%,#a6577d12 99.5%),linear-gradient(90deg,transparent 99.5%,#a6577d12 99.5%);background-size:90px 90px;mask-image:linear-gradient(90deg,#000,transparent 74%)}
.auth-header{width:100%;max-width:1440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:30px 5vw;gap:14px}.auth-wordmark{text-decoration:none;display:inline-flex;align-items:center}.auth-wordmark .brand-wordmark{font-size:30px}.auth-wordmark svg{width:30px;height:38px}.auth-wordmark img{max-width:150px;max-height:40px}.auth-tools{display:flex;gap:12px;align-items:center}.auth-tools select{border:0;border-bottom:1px solid #9a6d8450;padding:10px 20px 10px 0;background:transparent;font-size:12px;color:#573b4c}.auth-tools button{width:40px;height:40px;display:grid;place-items:center;border:1px solid #a46e8b40;border-radius:50%;background:#fff5;color:#754360}
.auth-layout{flex:1;width:100%;max-width:1180px;margin:auto;display:grid;grid-template-columns:1fr 430px;align-items:center;gap:clamp(40px,8vw,140px);padding:34px 48px 50px}.auth-intro{align-self:center}.auth-kicker{font-size:11px;font-weight:650;letter-spacing:.24em;display:block;color:#744461;margin-bottom:25px}.auth-intro h1{font-size:clamp(48px,6vw,84px);font-weight:600;line-height:1.07;letter-spacing:-.045em;margin:0 0 25px}.auth-intro p{font-size:15px;color:#754a62;margin:0}.auth-signature{display:flex;align-items:center;gap:16px;font-size:9px;letter-spacing:.18em;margin-top:90px;color:#8b5f76}.auth-signature span{width:48px;height:1px;background:#a87b93}
.auth-card{background:#fff9fcf0;border:1px solid #fffc;padding:34px 32px 24px;box-shadow:0 25px 70px -35px #87486655,0 1px 0 #fff inset;border-radius:20px;min-width:0}.auth-overline{font-size:10px;letter-spacing:.2em;color:#947087;font-weight:600}.auth-card-heading h2{font-size:28px;letter-spacing:-.035em;line-height:1.25;margin:10px 0}.auth-card-heading p{font-size:12px;line-height:1.5;color:#86667b;margin:0 0 25px}.auth-screen form{display:grid;gap:16px}.auth-field{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0}.auth-field>span{font-size:12px;line-height:1.4;font-weight:600;color:#69465b;display:flex;justify-content:space-between;gap:8px}.auth-field small{font-size:10px;font-weight:400;color:#927688}.auth-field input{border:1px solid #deccd6;border-radius:8px;background:#fffafc;color:#352431;box-shadow:none;padding:0 12px;width:100%;height:46px;font-size:14px;outline:0;letter-spacing:0}.auth-field input:focus{border-color:#86516f;box-shadow:0 0 0 3px #96597812}.auth-field input::placeholder{color:#a28b99;font-size:12px}.auth-field input[name=inviteCode]{letter-spacing:.08em}.auth-password{position:relative}.auth-password input{padding-right:45px}.auth-password button{position:absolute;right:2px;top:2px;width:42px;height:42px;border:0;background:transparent;color:#88667b;padding:12px}.auth-password svg{width:18px;height:18px}
.auth-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.auth-code-row input{letter-spacing:.2em}.auth-send{height:46px;min-width:94px;padding:0 12px;font-size:12px!important;font-weight:600!important;border:1px solid #d4b6c8;border-radius:8px;background:#f5e7ef;color:#754360;cursor:pointer}.auth-send:disabled{opacity:.6;cursor:default}.auth-code-status{font-size:11px;line-height:1.5;color:#80506e;margin:-9px 0 0}.auth-code-status:empty{display:none}.auth-error{font-size:12px;line-height:1.5;color:#a23159;margin:0}.auth-primary{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:48px;border:0;border-radius:8px;background:#754360;color:#fff;padding:12px 16px;font-size:14px!important;font-weight:600!important;cursor:pointer;transition:background .2s}.auth-primary:hover{background:#62344f}.auth-primary:disabled{opacity:.65;cursor:wait}.auth-primary span{font-size:21px;line-height:1}.auth-switch{text-align:center;font-size:12px;color:#8c6e80;margin:22px 0 0}.auth-switch a{font-weight:650;color:#754360;text-underline-offset:4px;text-decoration-thickness:1px;margin-left:4px}.auth-local{margin-top:18px;text-align:center;color:#9a7c8e;font-size:11px}.auth-local summary{cursor:pointer}.auth-local button{font-size:11px;padding:9px 12px;border:0;background:#f3e5ee;border-radius:5px;color:#754360;margin:10px 3px 0}.auth-footer{width:100%;max-width:1440px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:20px 5vw;font-size:10px;color:#9c7d91;gap:12px}.auth-footer a{text-decoration:none;color:#754360}
.profile-invitation{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #d9bfd0;padding-top:22px}.profile-invitation h2{font-size:14px!important;margin:0 0 10px!important}.profile-invitation code{font-size:18px;letter-spacing:.13em;font-family:Inter,monospace;color:#754360}.profile-invitation .btn{white-space:nowrap}.profile-invitation [data-auth-copy-status]:not(.sr){font-size:11px}
@keyframes auth-light-turn{to{transform:rotate(360deg)}}@keyframes auth-ribbon-wave{0%{transform:rotateY(28deg) rotateZ(calc(var(--i)*8deg)) translateY(-3%)}100%{transform:rotateY(-18deg) rotateZ(calc(var(--i)*8deg + 15deg)) translateY(7%)}}
.auth-screen.is-still .auth-atmosphere *{animation-play-state:paused!important}
@media(max-width:760px){.auth-header{padding:22px 24px}.auth-wordmark .brand-wordmark{font-size:26px}.auth-layout{display:block;max-width:460px;padding:18px 24px 28px}.auth-intro{margin-bottom:24px}.auth-kicker,.auth-signature{display:none}.auth-intro h1{font-size:32px;line-height:1.15;margin:0 0 8px;letter-spacing:-.035em}.auth-intro h1 br{display:none}.auth-intro p{font-size:12px}.auth-card{padding:26px 24px 22px;border-radius:16px}.auth-card-heading h2{font-size:25px}.auth-overline{display:none}.auth-card-heading p{margin-bottom:22px}.auth-ribbons{left:-95vw;top:-20vh;width:180vw;height:110vh;opacity:.75}.auth-footer{padding:16px 24px}.auth-grid{background-size:65px 65px}.auth-screen:has([data-auth-form=register]) .auth-intro{display:none}.auth-screen:has([data-auth-form=register]) .auth-layout{padding-top:4px}.auth-screen:has([data-auth-form=register]) form{gap:12px}.auth-screen:has([data-auth-form=register]) .auth-card-heading p{margin-bottom:18px}}
@media(max-width:350px){.auth-header{padding:18px}.auth-layout{padding:12px 16px 24px}.auth-card{padding:22px 20px}.auth-tools{gap:6px}.auth-tools button{width:32px;height:32px}.auth-tools select{padding-right:8px}.auth-intro h1{font-size:29px}.auth-footer{padding:16px}.auth-send{min-width:82px;padding:0 8px}.profile-invitation code{font-size:15px}}
@media(prefers-reduced-motion:reduce){.auth-atmosphere *{animation:none!important}.auth-screen *{scroll-behavior:auto!important;transition:none!important}}
