/* Shared by the H5 password page and the server-rendered WeChat binding page. */
:root{--auth-canvas:#fff;--auth-bg:#f4f5f7;--auth-ink:#181d26;--auth-text:#333840;--auth-muted:#6e7480;--auth-placeholder:#9aa0a8;--auth-border:#e5e5e5;--auth-primary:#181d26;--auth-accent:#0075de;--auth-error:#eb5757}
.auth-surface{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,"PingFang SC","Microsoft Yahei",sans-serif;color:var(--auth-text)}.auth-surface *{box-sizing:border-box}.lg-page.auth-surface{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:100dvh;overflow:auto;background:linear-gradient(165deg,#fff 0%,#fff 52%,#f4f5f7 100%)}.lg-logo{position:relative;flex:none;z-index:2;padding:28px 24px 24px}.lg-logo img{display:block;width:150px;height:36px}.lg-form{position:relative;z-index:2;padding:28px 24px 40px}.lg-title{margin:0 0 24px;color:var(--auth-ink);font-size:24px;font-weight:600;line-height:1.4;letter-spacing:.2px}.lg-subtitle{margin:-12px 0 24px;color:var(--auth-muted);font-size:14px;line-height:1.6}.lg-tabs{display:flex;gap:28px;margin-bottom:24px}.lg-tabs button{position:relative;padding:8px 0;border:0;background:none;font-family:inherit;font-size:14px;line-height:22px;color:var(--auth-muted);cursor:pointer}.lg-tabs button.on{color:var(--auth-ink);font-weight:600}.lg-tabs button.on:after{position:absolute;bottom:0;left:0;right:0;height:2px;border-radius:2px;background:var(--auth-accent);content:''}.lg-field{display:flex;align-items:center;gap:10px;min-height:52px;margin-bottom:16px;padding:12px 14px;border:1px solid var(--auth-border);border-radius:8px;background:var(--auth-canvas);transition:border-color .15s,box-shadow .15s}.lg-field:focus-within{border-color:var(--auth-accent);box-shadow:0 0 0 3px #0075de0c}.lg-ico{display:flex;flex:none;color:var(--auth-placeholder)}.lg-ico svg{stroke:currentColor}.lg-cc{display:flex;align-items:center;gap:6px;flex:none;font-size:14px;color:var(--auth-text);cursor:pointer}.lg-cc i{width:0;height:0;border:4px solid transparent;border-top-color:var(--auth-placeholder);transform:translateY(2px)}.lg-cc i.up{transform:translateY(-2px) rotate(180deg)}.lg-field input{flex:1;min-width:0;width:100%;padding:0;border:0;outline:0;background:transparent;font-family:inherit;font-size:15px;line-height:24px;color:var(--auth-ink)}.lg-field input::placeholder{color:var(--auth-placeholder)}.lg-captcha{flex:none;padding:4px 0 4px 8px;border:0;background:none;color:var(--auth-muted);font-size:12px;cursor:pointer}.lg-submit,.auth-surface .btn{display:block;width:100%;min-height:48px;margin-top:24px;padding:12px 16px;border:1px solid var(--auth-primary);border-radius:8px;background:var(--auth-primary);color:#fff;font-size:16px;font-weight:500;line-height:22px;cursor:pointer}.lg-submit:disabled,.auth-surface .btn:disabled{opacity:.5;cursor:default}.lg-submit:active,.auth-surface .btn:active{background:#0d1218}.lg-bg{pointer-events:none;position:absolute;right:-72px;bottom:0;width:260px;height:260px;border:48px solid #0075de05;border-radius:50%;transform:translateY(35%)}.lg-alt{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:16px;font-size:13px;color:var(--auth-muted)}.lg-qr{display:flex;justify-content:center;padding:24px 0 12px;color:var(--auth-accent)}.lg-qr-tip{text-align:center;font-size:14px;line-height:1.7;color:var(--auth-muted)}.lg-cc-mask,.lg-modal{position:fixed;inset:0;z-index:2100;background:#0006}.lg-cc-panel{position:absolute;right:0;bottom:0;left:0;max-height:55%;overflow:auto;padding:6px 0 20px;border-radius:12px 12px 0 0;background:var(--auth-canvas)}.lg-cc-panel button{display:flex;justify-content:space-between;width:100%;padding:12px 20px;border:0;background:none;font-size:14px;color:var(--auth-text)}.lg-cc-panel button.on{color:var(--auth-accent)}.lg-modal{display:flex;align-items:center;justify-content:center}.lg-modal-card{width:84%;max-width:340px;overflow:hidden;border-radius:12px;background:var(--auth-canvas)}.lg-modal-t{margin:0;padding:24px 20px;font-size:14px;line-height:1.8;color:var(--auth-text)}.lg-modal-t a{color:var(--auth-accent)}.lg-modal-acts{display:flex;border-top:1px solid var(--auth-border)}.lg-modal-acts button{flex:1;min-height:48px;border:0;background:none;font-size:15px}.lg-modal-acts .no{color:var(--auth-muted)}.lg-modal-acts .yes{color:var(--auth-accent);font-weight:500}.auth-surface .msg{display:none;margin-bottom:16px;padding:12px 14px;border-radius:8px;font-size:13px;line-height:1.6}.auth-surface .msg.err{display:block;background:#eb57570e;color:var(--auth-error)}.auth-surface .msg.ok{display:block;background:#0075de0c;color:var(--auth-accent)}.auth-surface .loading{text-align:center;padding:48px 0;color:var(--auth-muted);font-size:14px}.auth-surface .spin{width:28px;height:28px;margin:0 auto 16px;border:3px solid var(--auth-border);border-top-color:var(--auth-accent);border-radius:50%;animation:auth-spin .8s linear infinite}.auth-state-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0 auto 16px;border-radius:12px;background:var(--auth-primary);color:white;font-size:26px}.auth-state-title{font-size:18px;font-weight:500;color:var(--auth-ink)}.auth-state-description{margin:8px 0;color:var(--auth-muted);font-size:14px;line-height:1.6}@keyframes auth-spin{to{transform:rotate(360deg)}}
@media(min-width:768px){body.auth-surface{display:flex;align-items:center;justify-content:center;background:var(--auth-bg);margin:0}.auth-frame{width:400px;min-height:100dvh;background:var(--auth-canvas)}.lg-page.auth-surface{max-width:420px;margin:auto}}@media(max-height:600px){.lg-logo{padding-top:18px;padding-bottom:14px}.lg-form{padding-top:12px}}@media(prefers-reduced-motion:reduce){.auth-surface .spin{animation:none}.lg-field{transition:none}}
