.auth-modal{position:fixed;inset:0;z-index:9500;display:grid;place-items:center;padding:16px}
.auth-modal[hidden],.auth-legal-dialog[hidden],.auth-mode-panel[hidden],.auth-standard-view[hidden],.auth-wechat-view[hidden],.auth-wechat-prepare[hidden],.auth-wechat-gate[hidden],.auth-wechat-qr[hidden],.auth-wechat-choice[hidden],.auth-wechat-bind-form[hidden],[data-wechat-choice-actions][hidden]{display:none!important}
.auth-modal-mask{position:absolute;inset:0;border:0;background:rgba(20,28,40,.54);cursor:default}
body.auth-modal-open{overflow:hidden}
.auth-modal-dialog{position:relative;display:grid;grid-template-columns:258px minmax(470px,1fr);width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:hidden;border:1px solid #d8e0eb;border-radius:14px;background:#fff;box-shadow:0 24px 70px rgba(22,34,54,.18)}
.auth-modal-close{position:absolute;z-index:5;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d7dfe9;border-radius:9px;background:#fff;color:#536176;cursor:pointer;transition:border-color .18s ease,color .18s ease,background .18s ease}
.auth-modal-close:hover,.auth-modal-close:focus-visible{border-color:#1769e8;color:#1769e8;outline:2px solid #cfe0fb;outline-offset:1px}
.auth-modal-close svg,.auth-legal-dialog header button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.auth-modal-promo{display:flex;min-height:510px;padding:22px;overflow:auto;flex-direction:column;border-right:1px solid #dfe5ee;background:#f4f7fb;color:#17243a;scrollbar-width:thin}
.auth-modal-brand{display:inline-flex;align-items:center;gap:10px;color:#17243a;text-decoration:none;font-size:15px;font-weight:600}
.auth-modal-logo{width:30px;height:30px}
.auth-modal-promo-copy{margin:44px 0 18px}
.auth-modal-promo-copy>span{display:block;color:#1769e8;font-size:12px;font-weight:600;letter-spacing:.05em}
.auth-modal-promo-copy h2{max-width:210px;margin:10px 0 12px;color:#142138;font-size:25px;line-height:1.32;font-weight:600;letter-spacing:-.02em}
.auth-modal-promo-copy p{margin:0;color:#56657a;font-size:13px;line-height:1.75}
.auth-modal-promo-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.auth-modal-promo-tags span{padding:5px 9px;border:1px solid #d4deeb;border-radius:6px;background:#fff;color:#40516a;font-size:12px;line-height:1.2}
.auth-modal-promo-bottom{margin-top:auto}.auth-modal-promo-foot{margin:0 0 12px;color:#8490a1;font-size:11px;line-height:1.6}
.auth-support-qr{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:11px;padding:9px;border:1px solid #d8e2ed;border-radius:10px;background:#fff}.auth-support-qr img{display:block;width:82px;height:82px;border-radius:6px;object-fit:cover}.auth-support-qr span{color:#40516a;font-size:12px;line-height:1.55}
.auth-modal-main{min-height:510px;overflow:auto;padding:28px 32px 20px;scrollbar-width:thin}
.auth-mode-tabs{--auth-tab-count:3;--auth-tab-index:0;position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:14px 28px 20px 0;overflow:hidden;border:1px solid #e1e7ef;border-radius:10px;background:#fff}
.auth-mode-tabs.has-wechat{--auth-tab-count:4;grid-template-columns:repeat(4,minmax(0,1fr))}
.auth-mode-tabs button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:0 6px;border:0;background:transparent;color:#778397;font:inherit;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer;touch-action:manipulation;transition:color .18s ease,background .18s ease}
.auth-mode-tabs button:hover{color:#34455d}
.auth-mode-tabs button:active{background:#f2f7ff}
.auth-mode-tabs button:focus-visible{outline:2px solid #1769e8;outline-offset:-3px}
.auth-mode-tabs button.is-active{color:#1769e8;font-weight:600}
.auth-mode-indicator{position:absolute;z-index:2;bottom:0;left:0;width:calc(100% / var(--auth-tab-count));height:3px;border-radius:3px 3px 0 0;background:#1769e8;transform:translateX(calc(var(--auth-tab-index) * 100%));transition:transform .26s cubic-bezier(.22,.8,.25,1);pointer-events:none}
.auth-mode-panel{display:none}
.auth-mode-panel.is-active{display:block}
.auth-field{display:block;margin-bottom:12px}
.auth-field>span{display:block;margin-bottom:6px;color:#344258;font-size:12px;font-weight:500}
.auth-field input{width:100%;height:44px;padding:0 12px;border:1px solid #d6dee9;border-radius:8px;outline:0;background:#fff;color:#162238;font:inherit;font-size:14px}
.auth-field input::placeholder{color:#9da8b7}
.auth-field input:focus{border-color:#1769e8;outline:2px solid #dbe9fc;outline-offset:0}
.auth-inline-control,.auth-captcha-control{display:grid;grid-template-columns:minmax(0,1fr) 126px;gap:8px}
.auth-inline-control button,.auth-captcha-refresh{height:44px;padding:0 10px;border:1px solid #bcd1ef;border-radius:8px;background:#f3f7fd;color:#155fca;font:inherit;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer}
.auth-inline-control button:hover,.auth-inline-control button:focus-visible{border-color:#1769e8;background:#eaf2fd;outline:2px solid #dbe9fc}
.auth-inline-control button:disabled{cursor:not-allowed;opacity:.55}
.auth-captcha-refresh{overflow:hidden;padding:0;background:#f5f8fc}
.auth-captcha-refresh:focus-visible{outline:2px solid #1769e8;outline-offset:1px}
.auth-captcha-refresh img{display:block;width:100%;height:100%;object-fit:cover}
.auth-captcha-refresh.is-loading img{opacity:.45}
.auth-account-tip{margin:-2px 0 13px;color:#738095;font-size:12px;line-height:1.6}
.auth-auto-register-tip{margin:8px 0 0;color:#7b8797;font-size:11px;line-height:1.55;text-align:center}
.auth-remember{display:flex;align-items:center;gap:7px;width:max-content;margin-bottom:8px;color:#536176;font-size:12px;cursor:pointer}
.auth-remember input,.auth-legal-consent input{width:17px;height:17px;margin:0;accent-color:#1769e8}
.auth-legal-consent{display:flex;align-items:center;flex-wrap:wrap;gap:2px 4px;color:#5e6b7d;font-size:12px;line-height:1.7}
.auth-legal-consent>label{cursor:pointer}
.auth-legal-consent>button{min-height:28px;padding:0;border:0;background:transparent;color:#1769e8;font:inherit;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.auth-legal-consent>button:hover,.auth-legal-consent>button:focus-visible{color:#0d4fac;outline:1px solid #1769e8;outline-offset:1px}
.auth-modal-message{min-height:19px;margin:5px 0 3px;color:#c63b3b;font-size:12px;line-height:1.5}
.auth-modal-message.is-success{color:#137556}
.auth-modal-submit{position:relative;width:100%;height:44px;border:1px solid #1769e8;border-radius:8px;background:#1769e8;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.auth-modal-submit:hover{background:#115ccf}
.auth-modal-submit:focus-visible{outline:3px solid #cfe0fb;outline-offset:2px}
.auth-modal-submit:disabled{cursor:wait;opacity:.65}
.auth-modal-submit i{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:auth-spin .7s linear infinite}
.auth-modal-submit.is-loading span{display:none}
.auth-modal-submit.is-loading i{display:inline-block}
.auth-wechat-view{min-height:380px}
.auth-wechat-consent{justify-content:center;margin-top:8px;padding-top:8px;border-top:1px solid #e8edf3}
.auth-wechat-gate{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#75849a;font-size:13px;text-align:center}
.auth-wechat-register-tip{margin:10px 0 0;color:#65748a;font-size:12px;line-height:1.55;text-align:center}
.auth-wechat-qr{display:flex;align-items:center;width:286px;margin:0 auto;padding:14px 14px 11px;flex-direction:column;border:1px solid #dce3ec;border-radius:12px;background:#fff;box-shadow:0 9px 24px rgba(25,42,68,.1);text-align:center}
.auth-wechat-code{position:relative;display:grid;place-items:center;width:220px;height:220px;padding:8px;border:1px solid #e5eaf0;border-radius:9px;background:#f6f8fb;overflow:hidden}
.auth-wechat-code img{display:block;width:202px;height:202px;object-fit:contain;transition:opacity .18s ease}.auth-wechat-code img[hidden]{display:none!important}.auth-wechat-code img.is-expired{opacity:.25}
.auth-wechat-loading{position:absolute;z-index:2;display:none;width:28px;height:28px;border:2px solid #dbe4ef;border-top-color:#1769e8;border-radius:50%;animation:auth-spin .75s linear infinite}.auth-wechat-code.is-loading .auth-wechat-loading{display:block}
.auth-wechat-qr>span{margin-top:5px;color:#9aa4b2;font-size:11px}
.auth-wechat-qr>button{min-height:40px;margin-top:16px;padding:0 18px;border:1px solid #1769e8;border-radius:9px;background:#fff;color:#1769e8;font:inherit;font-size:13px;cursor:pointer}.auth-wechat-qr>button:hover,.auth-wechat-qr>button:focus-visible{background:#f2f7fe;outline:2px solid #dbe9fc}
.auth-wechat-view .auth-modal-message{text-align:center}
.auth-wechat-choice{width:min(360px,100%);margin:24px auto 0;padding:20px;border:1px solid #dce4ee;border-radius:12px;background:#fff;box-shadow:0 12px 34px rgba(25,42,68,.1)}
.auth-wechat-choice-head{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:11px;margin-bottom:16px}.auth-wechat-choice-head>span{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:#eaf8f0;color:#18a957}.auth-wechat-choice-head svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7}.auth-wechat-choice-head strong,.auth-wechat-choice-head small{display:block}.auth-wechat-choice-head strong{font-size:15px}.auth-wechat-choice-head small{margin-top:4px;color:#8591a1;font-size:11px}
.auth-wechat-choice-actions{display:grid;gap:9px}.auth-wechat-choice-actions button{min-height:45px;border:1px solid #1769e8;border-radius:8px;background:#1769e8;color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.auth-wechat-choice-actions button+button{background:#fff;color:#1769e8}.auth-wechat-choice-actions button:focus-visible{outline:3px solid #d5e5fb;outline-offset:2px}
.auth-wechat-bind-tabs{display:grid;grid-template-columns:1fr 1fr;margin-bottom:14px;border-bottom:1px solid #e4e9f0}.auth-wechat-bind-tabs button{min-height:38px;border:0;border-bottom:2px solid transparent;background:transparent;color:#7c8797;font:inherit;font-size:12px;cursor:pointer}.auth-wechat-bind-tabs button.active{border-bottom-color:#1769e8;color:#1769e8;font-weight:600}.auth-wechat-bind-buttons{display:grid;grid-template-columns:92px 1fr;gap:8px;margin-top:13px}.auth-wechat-bind-buttons button{min-height:43px;border:1px solid #d5dde8;border-radius:8px;background:#fff;color:#596679;font:inherit;font-size:12px;cursor:pointer}.auth-wechat-bind-buttons button[type="submit"]{border-color:#1769e8;background:#1769e8;color:#fff;font-weight:600}
.auth-legal-dialog{position:relative;z-index:3;display:flex;flex-direction:column;width:min(760px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overflow:hidden;border:1px solid #d8e0eb;border-radius:14px;background:#fff}
.auth-legal-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:15px 20px;border-bottom:1px solid #e0e6ee}
.auth-legal-dialog header span{display:block;margin-bottom:3px;color:#1769e8;font-size:12px}
.auth-legal-dialog header h2{margin:0;color:#17243a;font-size:21px;font-weight:600}
.auth-legal-dialog header button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d7dfe9;border-radius:9px;background:#fff;color:#536176;cursor:pointer}
.auth-legal-dialog header button:focus-visible{outline:2px solid #1769e8;outline-offset:1px}
.auth-legal-content{min-height:240px;overflow:auto;padding:24px;color:#3c495c;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.auth-legal-content p{margin:0;color:#737f90}
.auth-legal-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;padding:10px 20px;border-top:1px solid #e0e6ee;background:#f8fafc}
.auth-legal-dialog footer span{color:#738095;font-size:12px}
.auth-legal-dialog footer button{min-width:110px;height:42px;border:1px solid #1769e8;border-radius:9px;background:#1769e8;color:#fff;font:inherit;font-size:14px;cursor:pointer}
.auth-modal.is-legal-open .auth-modal-dialog{display:none}
.nav-login-button{min-width:84px}
.mobile-menu .mobile-menu-primary{display:block;width:100%;min-height:44px;padding:0 14px;border:0;border-radius:9px;background:#1769e8;color:#fff;text-align:center;font:inherit;font-weight:600;cursor:pointer}
@keyframes auth-spin{to{transform:rotate(360deg)}}
@media(max-width:720px){
 .auth-modal{padding:8px}.auth-modal-dialog{display:block;width:min(100%,520px);max-height:calc(100dvh - 16px);overflow:auto;border-radius:14px}
 .auth-modal-promo{min-height:60px;padding:14px 58px 14px 18px;border-right:0;border-bottom:1px solid #dfe5ee}
 .auth-modal-brand{font-size:14px}.auth-modal-logo{width:28px;height:28px}.auth-modal-promo-copy,.auth-modal-promo-foot{display:none}
 .auth-modal-main{min-height:0;overflow:visible;padding:18px 18px 20px}.auth-mode-tabs{margin:0 0 16px}
 .auth-wechat-view{min-height:0}.auth-wechat-qr{margin-top:0}.auth-wechat-code{width:210px;height:210px}.auth-wechat-code img{width:192px;height:192px}.auth-wechat-choice{margin-top:0}
 .auth-modal-close{top:12px;right:12px}.auth-legal-dialog{width:100%;max-height:calc(100dvh - 16px)}.auth-legal-content{padding:20px;font-size:14px}
}
@media(max-width:420px){
 .auth-modal{padding:5px}.auth-modal-dialog,.auth-legal-dialog{max-height:calc(100dvh - 10px)}.auth-modal-promo{min-height:56px;padding:12px 54px 12px 14px}
 .auth-modal-main{padding:16px 14px 18px}.auth-mode-tabs.has-wechat{grid-template-columns:repeat(4,minmax(0,1fr))}.auth-mode-tabs{gap:0}.auth-mode-tabs button{min-height:44px;padding:0 2px;font-size:11px;white-space:nowrap}.auth-inline-control,.auth-captcha-control{grid-template-columns:minmax(0,1fr) 112px;gap:6px}.auth-field input{font-size:16px}.auth-inline-control button{padding:0 6px;font-size:12px}.auth-wechat-qr{width:min(286px,100%)}.auth-wechat-code{width:204px;height:204px}.auth-wechat-code img{width:186px;height:186px}
 .auth-legal-consent{align-items:flex-start}.auth-legal-dialog header{padding:13px 15px}.auth-legal-dialog footer{align-items:flex-start;flex-direction:column;padding:12px 15px}.auth-legal-dialog footer button{width:100%}.auth-legal-content{padding:18px 15px}
}
@media(prefers-reduced-motion:reduce){.auth-mode-indicator{transition:none}.auth-modal-submit i,.auth-wechat-loading{animation-duration:1.2s}}
