/* Hero title font: ZCOOL KuaiLe, subset to the hero copy only (OFL). */
@font-face{font-family:'ZCOOL KuaiLe';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/zcool-kuaile-hero.woff2) format('woff2')}

/* ---------- Login / register page shell ---------- */
.auth-body{display:block;height:auto;min-height:100vh;overflow-x:hidden;margin:0;background:#FAFAFA;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.auth-shell{width:100%;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,#FF2442 0%,#FF6680 100%);position:relative;overflow:hidden}
.auth-bubble{position:absolute;border-radius:50%;background:rgba(255,255,255,.14);pointer-events:none}
.auth-bubble-1{right:-140px;top:-160px;width:460px;height:460px}
.auth-bubble-2{left:-110px;bottom:-120px;width:320px;height:320px}
.auth-bubble-3{left:38%;top:-60px;width:140px;height:140px;background:rgba(255,255,255,.07)}
.auth-header{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 56px;flex-wrap:wrap}
.auth-brand{display:flex;align-items:center;gap:10px}
.auth-brand img{width:34px;height:34px;border-radius:9px;box-shadow:0 0 0 2px rgba(255,255,255,.4)}
.auth-brand span{font-size:21px;font-weight:800;color:#fff;letter-spacing:.5px}
.auth-nav{display:flex;align-items:center;gap:32px;font-size:15px}
.auth-nav a,.auth-footer a{color:#fff;text-decoration:none}
.auth-nav a:hover,.auth-footer a:hover{color:#FFE4E9}
.auth-main{position:relative;z-index:1;flex:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:48px 120px;padding:24px 56px 48px}
.auth-hero{flex:0 1 440px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:40px}
.auth-hero-figure{position:relative;width:300px;display:flex;align-items:center;justify-content:center}
.auth-hero-figure::before{content:"";position:absolute;left:-60px;right:-60px;top:-20px;bottom:10%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.28) 0%,rgba(255,255,255,.08) 60%,rgba(255,255,255,0) 100%)}
.auth-hero-figure img{position:relative;width:300px;height:auto;display:block;transform:scaleX(-1);filter:drop-shadow(0 16px 32px rgba(120,0,20,.25));-webkit-mask-image:linear-gradient(to bottom,#000 62%,transparent 98%);mask-image:linear-gradient(to bottom,#000 62%,transparent 98%)}
.auth-hero-text{display:flex;flex-direction:column;gap:12px}
.auth-hero-text h1{margin:0;font-family:'ZCOOL KuaiLe',-apple-system,"PingFang SC",sans-serif;font-size:44px;font-weight:400;line-height:1.2;color:#fff;letter-spacing:3px;text-shadow:0 4px 16px rgba(120,0,20,.18)}
.auth-hero-text p{margin:0;font-size:17px;line-height:1.6;color:#fff;letter-spacing:2px}
.auth-card{flex:0 1 440px;max-width:100%;box-sizing:border-box;background:#fff;border:1px solid var(--border-soft,#EEF0F2);border-radius:24px;box-shadow:0 24px 60px rgba(120,0,20,.25);padding:40px;display:flex;flex-direction:column;gap:28px}
.auth-footer{position:relative;z-index:1;padding:0 24px 28px;text-align:center;font-size:12px;color:#fff}

/* ---------- Card content ---------- */
.auth-methods{display:flex;flex-direction:column;gap:28px}
.auth-card-head{display:flex;flex-direction:column;gap:8px}
.auth-card-head h2{margin:0;font-size:24px;font-weight:800;color:var(--text-title,#1A1A1A)}
.auth-card-head p{margin:0;font-size:14px;color:var(--text-sub,#646A73)}
.auth-alert{display:flex;align-items:center;gap:8px;margin-top:-12px;padding:10px 12px;background:#FFF0F2;border:1px solid #FFCCD5;border-radius:10px;color:#FF2442;font-size:13px}
.auth-alert svg{flex-shrink:0}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:var(--bg-track,#F2F3F5);border-radius:12px;gap:4px}
.auth-tabs[hidden]{display:none}
.auth-tabs button{height:40px;border:0;border-radius:9px;cursor:pointer;font:inherit;font-size:14px;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .2s;background:transparent;color:var(--text-sub,#646A73);font-weight:500}
.auth-tabs button[hidden]{display:none}
.auth-tabs button[aria-selected=true]{background:#fff;color:var(--text-title,#1A1A1A);font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.auth-tabs button:focus-visible,.auth-code-button:focus-visible,.auth-submit:focus-visible,.auth-qr-refresh:focus-visible{outline:2px solid #FF2442;outline-offset:2px}
.auth-panel{min-height:252px}
.auth-panel[hidden],.auth-qr-stage[hidden],.auth-bind-form[hidden],.auth-qr-fallback[hidden]{display:none!important}

.auth-form{display:flex;flex-direction:column;gap:16px;margin:0}
.auth-field{display:flex;align-items:center;height:48px;border-radius:12px;background:var(--bg-input,#F7F8FA);border:1px solid var(--border-color,#E4E6EB);padding:0 16px;gap:12px;transition:border-color .2s,box-shadow .2s,background .2s}
.auth-field:focus-within{border-color:#FF2442;background:#fff;box-shadow:0 0 0 3px rgba(255,36,66,.1)}
.auth-field input{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;font:inherit;font-size:15px;color:var(--text-main,#1F2329);padding:0}
.auth-field input::placeholder{color:#B0B4BB}
.auth-field-prefix{font-size:15px;color:var(--text-main,#1F2329);font-weight:600}
.auth-field-sep{width:1px;height:16px;background:var(--border-color,#E4E6EB)}
.auth-field-code{padding:0 6px 0 16px}
.auth-code-button{height:36px;padding:0 14px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;color:#FF2442}
.auth-code-button:disabled{color:var(--text-weak,#8F959E);cursor:default}
.auth-form-forgot{display:flex;justify-content:flex-end;margin-top:-6px}
.auth-form-forgot a{font-size:13px;color:var(--text-weak,#8F959E);text-decoration:none}
.auth-form-forgot a:hover{color:#FF2442}
.auth-submit{width:100%;height:48px;border:0;border-radius:50px;background:#FF2442;color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s,box-shadow .2s;box-shadow:0 8px 20px rgba(255,36,66,.22)}
.auth-submit:hover{background:#E61E3A;box-shadow:0 8px 24px rgba(255,36,66,.3)}
.auth-submit:disabled{opacity:.6;cursor:wait}
.auth-form-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
.auth-form-foot span{color:var(--text-weak,#8F959E)}
.auth-form-foot a,.auth-qr-fallback a,.auth-agree a{color:#FF2442;text-decoration:none;font-weight:600}
.auth-form-foot a:hover,.auth-qr-fallback a:hover,.auth-agree a:hover{color:#D91030}
.auth-error{min-height:0;margin:-6px 0 0;color:#D82B46;font-size:13px;line-height:1.6;text-align:left}
.auth-error:empty{display:none}
.auth-hint{font-size:12px;color:#687181;line-height:1.8;text-align:center;margin:12px 0}

.auth-agree{display:flex;align-items:flex-start;gap:8px;padding-top:20px;border-top:1px solid var(--border-soft,#EEF0F2);font-size:12px;line-height:1.6;color:var(--text-weak,#8F959E);cursor:pointer}
.auth-agree input{margin:2px 0 0;accent-color:#FF2442;width:14px;height:14px;flex-shrink:0}
.auth-agree a{font-weight:400}
.auth-agree.is-shaking{animation:dzShake .3s}
@keyframes dzShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes dzSpin{to{transform:rotate(360deg)}}

/* ---------- WeChat scan widget ---------- */
.auth-qr{display:flex;flex-direction:column;gap:16px}
.auth-qr h3{font-size:18px;margin:0;color:#1d2129;text-align:center}
.auth-qr-stage{display:flex;flex-direction:column;align-items:center;gap:16px}
.auth-qr-box{position:relative;width:200px;height:200px;border-radius:16px;border:1px solid var(--border-color,#E4E6EB);background:#fff;box-shadow:var(--shadow-card,0 4px 20px rgba(0,0,0,.03));display:flex;align-items:center;justify-content:center;overflow:hidden}
.auth-qr-box img{width:176px;height:176px;object-fit:contain;display:block}
.auth-qr-box img[hidden]{display:none}
.auth-qr-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;background:rgba(255,255,255,.94);font-size:13px;color:var(--text-sub,#646A73);text-align:center}
.auth-qr-cover.is-failed{background:rgba(255,255,255,.96)}
.auth-qr-cover[hidden]{display:none}
.auth-spinner{width:24px;height:24px;border-radius:50%;border:2.5px solid #FFE4E9;border-top-color:#FF2442;animation:dzSpin .8s linear infinite;display:block}
.auth-qr-refresh{height:34px;padding:0 16px;border-radius:50px;border:1px solid var(--border-color,#E4E6EB);background:#fff;color:var(--text-main,#1F2329);font:inherit;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s}
.auth-qr-refresh:hover{border-color:#FF2442;color:#FF2442}
.auth-qr-tip{margin:0;font-size:14px;color:var(--text-body,#555);text-align:center}
.auth-qr-mobile-tip{display:none;margin:0;font-size:12px;line-height:1.6;color:#8a8f99;text-align:center}
.auth-bind-form .auth-submit{margin-top:12px}
.auth-bind-rescan{margin:12px 0 0;font-size:13px;text-align:center}.auth-bind-rescan a{color:var(--text-sub,#8a8f99);text-decoration:none}.auth-bind-rescan a:hover{color:#ff2442}
.auth-wechat-word{color:var(--brand-wechat,#07C160);font-weight:600}
.auth-qr-fallback{margin:0;font-size:13px;color:var(--text-weak,#8F959E);text-align:center}
.auth-qr > .auth-error{text-align:center;margin:0}
.auth-bind-success{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border-radius:12px;background:#E8F7EF;color:#07A35A;font-size:14px;font-weight:600}

/* Profile dialog reuses the scan widget; its unbind form keeps the compact row layout. */
.auth-code-row{display:flex;gap:8px;align-items:center}.auth-code-row input{min-width:0;flex:1}
.auth-profile-dialog .auth-bind-form label:not(.auth-agreement){display:block;font-size:13px;margin:16px 0 8px}
.auth-profile-dialog .auth-code-row input{height:48px;border:1px solid #e4e6eb;border-radius:10px;padding:0 12px;box-sizing:border-box;font-size:14px}
.auth-profile-dialog .auth-code-row .auth-code-button{height:48px;border:1px solid #e4e6eb;border-radius:10px;background:#fff}
.auth-profile-dialog .auth-bind-form button[type=submit]{width:100%;height:48px;margin-top:24px;border:0;border-radius:24px;color:#fff;background:var(--primary-color,#ff2442);font-size:15px;cursor:pointer}
.auth-profile-dialog .auth-error{text-align:center;margin:10px 0}
.auth-profile-dialog{border:0;border-radius:20px;margin:auto;padding:24px;width:min(400px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box}
.auth-profile-dialog::backdrop{background:rgba(0,0,0,.35)}.auth-profile-dialog .auth-dialog-close{float:right;border:0;background:none;font-size:24px;cursor:pointer}

@media(max-width:767px){
.auth-qr-mobile-tip{display:block}
    .auth-scan-tab{display:none!important}
    .auth-header{padding:16px 20px}
    .auth-brand span{font-size:19px}
    .auth-nav{gap:20px;font-size:14px}
    .auth-main{padding:8px 16px 28px;gap:24px}
    .auth-hero{gap:0}
    .auth-hero-figure{display:none}
    .auth-hero-text h1{font-size:30px;letter-spacing:2px}
    .auth-hero-text p{font-size:14px;letter-spacing:1px}
    .auth-card{padding:28px 20px;border-radius:20px;gap:24px}
    .auth-methods{gap:24px}
    .auth-panel{min-height:0}
}
