*{box-sizing:border-box}
body{margin:0;min-height:100svh;padding:32px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f3f5f9;color:#192c4d;font:14px/1.55 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
.brand{display:flex;align-items:center;justify-content:center;gap:11px;margin:0 0 24px;font-size:22px;font-weight:700;flex-shrink:0}
.brand-mark{display:grid;grid-template-columns:repeat(2,9px);gap:3px;background:#3470ff;padding:7px;border-radius:9px;box-shadow:0 3px 8px #3470ff25}.brand-mark i{width:9px;height:9px;background:white;border-radius:2px}
.auth-layout{width:min(100%,440px);padding:28px 32px 26px;background:#fff;border:1px solid #e0e6ef;border-radius:18px;box-shadow:0 12px 40px #25395908;flex-shrink:0}
.auth-art{position:relative;height:136px;display:flex;align-items:center;justify-content:center;margin:0 0 12px}
#characters{width:300px;max-width:100%;margin:0}#characters svg{display:block;width:100%;overflow:visible}
.auth-form-area{width:100%}.auth-form{width:100%;margin:0}.auth-form h1{font-size:25px;line-height:1.35;font-weight:700;text-align:center;margin:0 0 26px;letter-spacing:.2px}
.auth-form label{display:block;font-weight:500;margin:17px 0 7px}.auth-form label span,summary>span{font-weight:400;color:#748298;font-size:12px;margin-left:6px}
.auth-form input:not([type=file]){display:block;width:100%;height:44px;padding:10px 12px;color:#192c4d;border:1px solid #cdd6e3;border-radius:8px;background:#fff;font:inherit;min-width:0}.auth-form input::placeholder{color:#8490a4;font-size:13px}.auth-form input:focus-visible{outline:3px solid #e3ecff;border-color:#3470ff}
.auth-form button{font:inherit;cursor:pointer}.auth-form button:disabled{opacity:.55;cursor:wait}.primary{width:100%;height:44px;border:0;border-radius:8px;background:#3470ff;color:white;font-weight:600!important;margin-top:24px;transition:background .15s}.primary:hover{background:#255fe8}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9cbaff;outline-offset:3px}
.password-field{position:relative}.password-field input{padding-right:62px!important}.password-field button{position:absolute;right:5px;top:4px;height:36px;padding:0 9px;border:0;background:none;color:#65758e;border-radius:5px;font-size:12px}
#error{color:#b83237;font-size:13px;min-height:20px;margin-top:6px;overflow-wrap:anywhere}.auth-switch{color:#708097;text-align:center;margin:6px 0 0;font-size:13px}a{color:#2866eb;text-decoration:none}a:hover{text-decoration:underline}#login-hint{font-size:13px;color:#536987;padding:10px;background:#f3f7fd;border-radius:8px}
.motion-toggle{position:absolute;top:-12px;right:-16px;width:28px;height:28px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#f3f5f9;color:#748298;font-size:0;cursor:pointer}.motion-toggle::before{content:'Ⅱ';font:600 12px system-ui}.motion-toggle[aria-pressed=true]::before{content:'▶';font-size:10px}.motion-toggle[hidden]{display:none}
.character{transform-box:fill-box;transform-origin:50% 100%;animation:sway 4s ease-in-out infinite alternate}.character-wrap:nth-of-type(3) .character{animation-delay:-1.4s}.character-wrap:nth-of-type(4) .character{animation-delay:-2.8s}
.mascot-arm{d:path("M -57 63 C -82 88 -108 69 -92 45");transition:d .42s cubic-bezier(.22,.7,.25,1)}.mascot-palm{transform:translate(-92px,45px) rotate(-28deg);transition:transform .42s cubic-bezier(.22,.7,.25,1)}.cover-eyes .mascot-arm{d:path("M -57 63 C -92 86 -87 27 -23 8")}.cover-eyes .mascot-palm{transform:translate(-23px,0px) rotate(-12deg)}.mascot-limb:nth-child(2) :is(.mascot-arm,.mascot-palm){transition-delay:45ms}.cover-eyes .character{animation-play-state:paused}.mascot-face{transform:translate(var(--look-x,0px),0);transition:transform .2s}.cover-eyes .mascot-face{transform:none}.motion-paused .character{animation:none}.motion-paused :is(.mascot-arm,.mascot-palm,.mascot-face){transition:none;transition-delay:0s}@keyframes sway{from{transform:scaleY(1)}to{transform:scaleY(1.012)}}
.register-page .auth-art{height:84px;margin-bottom:10px}.register-page #characters{width:200px}.register-page .auth-form h1{margin-bottom:22px}.register-page .auth-form label{margin-top:14px}.register-page details{margin-top:18px;border-top:1px solid #e6ecf4;border-bottom:1px solid #e6ecf4;padding:12px 0}.register-page summary{cursor:pointer;font-weight:500;list-style:none;display:flex;align-items:center;min-height:24px}.register-page summary:before{content:'›';margin-right:8px}.register-page details[open] summary:before{transform:rotate(90deg)}#avatarSummary{margin-left:auto;font-size:12px}.avatar-edit{display:flex;align-items:center;gap:12px;margin-top:16px}#avatarPreview{height:48px;width:48px;flex-shrink:0;border-radius:14px;background:#e7efff;display:grid;place-items:center;overflow:hidden;color:#3470ff;font-size:20px}#avatarPreview img{height:100%;width:100%;object-fit:cover}.secondary,.text-button{border:1px solid #d1dbea;border-radius:7px;background:#fff;padding:7px 12px;color:#334962}.text-button{border:0;color:#718199}.register-page .primary{margin-top:20px}
input::-ms-reveal,input::-ms-clear{display:none}
@media(prefers-reduced-motion:reduce){.character{animation:none}:is(.mascot-face,.mascot-arm,.mascot-palm){transition:none;transition-delay:0s}}
@media(max-width:520px){body{padding:24px 16px}.brand{font-size:20px;margin-bottom:20px}.auth-layout{padding:24px 24px 22px;border-radius:16px}.auth-art{height:120px;margin-bottom:10px}#characters{width:280px}.auth-form h1{font-size:23px;margin-bottom:22px}.motion-toggle{right:-10px;top:-10px}.register-page .auth-art{height:72px}.register-page #characters{width:176px}.avatar-edit{gap:8px}.secondary,.text-button{padding:7px 8px}}
@media(max-width:850px){.auth-form input:not([type=file]){font-size:16px}.auth-layout .password-field button{height:40px;top:2px}.auth-layout .motion-toggle{width:40px;height:40px}}
