:root{
  --auth-primary:#2563eb;
  --auth-primary-2:#3b82f6;
  --auth-primary-dark:#1d4ed8;
  --auth-bg:#f0f2f5;
  --auth-card:#ffffff;
  --auth-text:#1f2937;
  --auth-title:#111827;
  --auth-muted:#9ca3af;
  --auth-border:#e5e7eb;
  --auth-input:#f9fafb;
  --auth-shadow:0 20px 40px rgba(15,23,42,.08);
  --auth-radius:20px;
}
html.dark{
  --auth-bg:#0f172a;
  --auth-card:#1e293b;
  --auth-text:#cbd5e1;
  --auth-title:#f8fafc;
  --auth-muted:#64748b;
  --auth-border:#334155;
  --auth-input:#0f172a;
  --auth-shadow:0 20px 40px rgba(0,0,0,.4);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body.auth-body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--auth-bg);
  color:var(--auth-text);
  -webkit-font-smoothing:antialiased;
}
.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:72px 20px 56px;
  background:#f0f2f5 radial-gradient(circle,#f0f2f5,#e6e9f0);
  position:relative;
  overflow:hidden;
}
.auth-page:before,.auth-page:after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.45;
  pointer-events:none;
}
.auth-page:before{width:420px;height:420px;background:#bfdbfe;top:-140px;left:-120px}
.auth-page:after{width:380px;height:380px;background:#c7d2fe;bottom:-160px;right:-120px}
html.dark .auth-page{background:#0f172a radial-gradient(circle at 50% 0,#1e293b,#0f172a 65%)}
html.dark .auth-page:before{background:#1e3a8a;opacity:.35}
html.dark .auth-page:after{background:#4c1d95;opacity:.3}
.auth-corner-brand{
  position:absolute;
  top:26px;
  left:30px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:calc(100% - 130px);
  color:#1f2937;
  font-size:16px;
  font-weight:600;
  letter-spacing:.5px;
  text-decoration:none !important;
  transition:opacity .2s;
}
.auth-corner-brand:hover{opacity:.85;color:#1f2937;}
.auth-corner-logo{
  width:94px;
  height:34px;
  flex:none;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(15,23,42,.12);
}
.auth-corner-logo img{width:100%;height:100%;object-fit:cover;display:block;}
.auth-corner-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.dark .auth-corner-brand,html.dark .auth-corner-brand:hover{color:#e5e7eb;}
html.dark .auth-corner-logo{box-shadow:0 4px 12px rgba(0,0,0,.35);}
.auth-box{
  position:relative;
  z-index:1;
  width:1000px;
  max-width:100%;
  height:600px;
  display:flex;
  background:var(--auth-card);
  border-radius:var(--auth-radius);
  box-shadow:var(--auth-shadow);
  overflow:hidden;
}
.auth-box.register-mode{height:auto;min-height:600px}
.auth-left{
  width:50%;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:#fff;
}
.auth-left:before{
  content:"";
  position:absolute;
  width:300px;height:300px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  top:-10%;right:-10%;
}
.auth-left:after{
  content:"";
  position:absolute;
  width:200px;height:200px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  bottom:-5%;left:-5%;
}
.auth-left-inner{
  position:relative;
  z-index:1;
  width:100%;
  padding:44px 40px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.auth-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 16px 8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  backdrop-filter:blur(6px);
  margin-bottom:22px;
  font-size:14px;
  letter-spacing:.5px;
}
.auth-brand img{width:26px;height:26px;border-radius:7px;object-fit:cover;background:#fff}
.auth-brand-title{
  font-size:32px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:2px;
  margin:0 0 14px;
  color:#fff;
}
.auth-brand-desc{
  font-size:15px;
  line-height:1.7;
  letter-spacing:1px;
  opacity:.92;
  margin:0 0 8px;
  max-width:340px;
}
.auth-brand-image{
  width:78%;
  max-width:330px;
  margin-top:6px;
  animation:authFloat 6s ease-in-out infinite;
  filter:drop-shadow(0 24px 34px rgba(8,30,70,.25));
}
@keyframes authFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}
.auth-right{
  width:50%;
  padding:52px 60px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:var(--auth-card);
  overflow-y:auto;
}
.auth-box.register-mode .auth-right{padding-top:44px;padding-bottom:44px}
.auth-header{margin-bottom:24px}
.auth-title{
  font-size:28px;
  font-weight:600;
  color:var(--auth-title);
  margin:0 0 6px;
  letter-spacing:.5px;
}
.auth-subtitle{
  font-size:13px;
  color:var(--auth-muted);
  margin:0;
  line-height:1.7;
}
.auth-tabs{
  display:flex;
  margin-top:18px;
  border-bottom:2px solid var(--auth-border);
}
.auth-tab{
  flex:1;
  text-align:center;
  padding:10px 0;
  font-size:15px;
  color:var(--auth-muted);
  cursor:pointer;
  position:relative;
  transition:color .3s;
  user-select:none;
}
.auth-tab:after{
  content:"";
  position:absolute;
  left:20%;right:20%;
  bottom:-2px;
  height:2px;
  border-radius:1px;
  background:transparent;
  transition:background .3s;
}
.auth-tab:hover{color:var(--auth-text)}
.auth-tab.active{color:var(--auth-primary);font-weight:600}
.auth-tab.active:after{background:var(--auth-primary)}
.auth-pane{display:none}
.auth-pane.active{display:block;animation:authFade .35s ease}
@keyframes authFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.auth-field{
  position:relative;
  margin-bottom:14px;
}
.auth-field .field-icon{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  width:18px;height:18px;
  color:#9aa7b8;
  pointer-events:none;
}
.auth-field .field-icon svg{width:18px;height:18px;display:block}
.auth-input{
  width:100%;
  height:48px;
  padding:0 15px 0 44px;
  border:1px solid transparent;
  border-radius:10px;
  background:var(--auth-input);
  color:var(--auth-text);
  font-size:14px;
  outline:none;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
html.dark .auth-input{background:#0f172a;border-color:#24324a}
.auth-input::placeholder{color:#a0aec0}
.auth-input:focus{border-color:var(--auth-primary-2);background:var(--auth-card);box-shadow:0 0 0 4px rgba(59,130,246,.12)}
.auth-field.has-eye .auth-input{padding-right:46px}
.auth-eye{
  position:absolute;
  right:6px;top:50%;
  transform:translateY(-50%);
  width:36px;height:36px;
  border:none;
  background:transparent;
  color:#9aa7b8;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  border-radius:8px;
}
.auth-eye:hover{color:var(--auth-primary)}
.auth-eye svg{width:18px;height:18px}
.auth-code-row{display:flex;gap:10px;align-items:center}
.auth-code-row .auth-input{padding-left:44px}
.auth-code-btn{
  flex:0 0 118px;
  height:48px;
  border:none;
  border-radius:10px;
  background:rgba(37,99,235,.1);
  color:var(--auth-primary);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s;
  white-space:nowrap;
}
.auth-code-btn:hover{background:rgba(37,99,235,.18)}
.auth-code-btn:disabled{cursor:not-allowed;opacity:.55}
.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:4px 0 20px;
  font-size:13px;
  color:var(--auth-muted);
}
.auth-row a{color:var(--auth-primary);text-decoration:none}
.auth-row a:hover{text-decoration:underline}
.auth-check{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none;font-size:13px;color:var(--auth-text)}
.auth-check input{width:15px;height:15px;accent-color:var(--auth-primary);cursor:pointer;margin:0}
.auth-btn{
  width:100%;
  height:48px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:#fff;
  font-size:15px;
  font-weight:600;
  letter-spacing:2px;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s,opacity .2s;
  box-shadow:0 8px 20px rgba(37,99,235,.28);
}
.auth-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(37,99,235,.34)}
.auth-btn:active{transform:none}
.auth-btn:disabled{opacity:.7;cursor:not-allowed;transform:none}
.auth-error{
  display:none;
  margin-bottom:14px;
  padding:10px 14px;
  border-radius:10px;
  background:rgba(239,68,68,.1);
  color:#dc2626;
  font-size:13px;
  line-height:1.6;
}
.auth-error.show{display:block}
.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:24px 0 16px;
  color:var(--auth-muted);
  font-size:12px;
}
.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:var(--auth-border)}
.auth-oauth{display:flex;justify-content:center;gap:18px}
.auth-oauth button{
  width:42px;height:42px;
  border:none;
  border-radius:50%;
  background:#f1f5f9;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .3s;
  padding:0;
}
html.dark .auth-oauth button{background:#334155}
.auth-oauth button:hover{background:#e2e8f0;transform:translateY(-2px)}
html.dark .auth-oauth button:hover{background:#475569}
.auth-oauth img{width:22px;height:22px;border-radius:50%}
.auth-oauth .fa{font-size:19px}
.auth-bottom{
  margin-top:22px;
  text-align:center;
  font-size:13px;
  color:var(--auth-muted);
}
.auth-bottom a{color:var(--auth-primary);text-decoration:none;font-weight:600}
.auth-bottom a:hover{text-decoration:underline}
.auth-price{
  margin:0 0 16px;
  padding:10px 14px;
  border-radius:10px;
  background:rgba(37,99,235,.08);
  color:var(--auth-primary);
  font-size:13px;
  text-align:center;
}
.auth-price b{font-size:16px}
.auth-page-footer{
  position:absolute;
  bottom:20px;
  left:16px;right:16px;
  text-align:center;
  color:#6b7280;
  font-size:12px;
  line-height:1.7;
  z-index:1;
}
.auth-page-footer a{color:inherit;text-decoration:underline;text-underline-offset:2px}
html.dark .auth-page-footer{color:#94a3b8}
.auth-theme-toggle{
  position:fixed;
  top:22px;right:24px;
  width:42px;height:42px;
  border-radius:50%;
  border:1px solid rgba(148,163,184,.25);
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(10px);
  color:#475569;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  z-index:20;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
  transition:transform .3s,background .3s,color .3s;
  padding:0;
}
html.dark .auth-theme-toggle{background:rgba(30,41,59,.8);color:#e2e8f0;border-color:#334155}
.auth-theme-toggle:hover{transform:translateY(-2px) rotate(12deg)}
.auth-theme-toggle svg{width:20px;height:20px}
.auth-theme-toggle .icon-moon{display:none}
html.dark .auth-theme-toggle .icon-sun{display:none}
html.dark .auth-theme-toggle .icon-moon{display:block}
.auth-notice-box{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:10px;
  border:1px dashed rgba(37,99,235,.35);
  background:rgba(37,99,235,.05);
  color:var(--auth-text);
  font-size:12px;
  line-height:1.7;
  max-height:110px;
  overflow:auto;
}
.auth-notice-box b{color:var(--auth-primary)}
.auth-modal{
  position:fixed;
  inset:0;
  z-index:50;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(4px);
}
.auth-modal.show{display:flex}
.auth-modal-card{
  width:100%;
  max-width:520px;
  max-height:80vh;
  display:flex;
  flex-direction:column;
  background:var(--auth-card);
  border-radius:16px;
  box-shadow:0 30px 60px rgba(0,0,0,.28);
  overflow:hidden;
  animation:authPop .25s ease;
}
@keyframes authPop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.auth-modal-head{
  padding:18px 22px;
  font-size:16px;
  font-weight:600;
  color:var(--auth-title);
  border-bottom:1px solid var(--auth-border);
}
.auth-modal-body{
  padding:18px 22px;
  overflow:auto;
  font-size:13px;
  line-height:1.8;
  color:var(--auth-text);
}
.auth-modal-foot{
  padding:14px 22px;
  border-top:1px solid var(--auth-border);
  text-align:right;
}
.auth-modal-foot button{
  height:38px;
  padding:0 22px;
  border:none;
  border-radius:9px;
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:#fff;
  font-size:13px;
  cursor:pointer;
}
.auth-captcha{margin-bottom:14px}
.auth-captcha .geetest_holder{width:100%!important}
@media (max-width:1080px){
  .auth-box{width:100%;max-width:440px;height:auto;min-height:520px;flex-direction:column}
  .auth-left{display:none}
  .auth-right{width:100%;padding:40px 30px}
  .auth-page{padding:76px 16px 24px;align-items:flex-start}
  .auth-corner-brand{top:16px;left:16px;font-size:14px;gap:8px;max-width:calc(100% - 110px)}
  .auth-corner-logo{width:78px;height:30px;border-radius:7px}
  .auth-box.register-mode{min-height:0}
  .auth-page-footer{position:static;margin-top:14px;padding-bottom:6px;width:100%}
  .auth-page{flex-direction:column}
}
@media (max-width:420px){
  .auth-right{padding:32px 20px}
  .auth-title{font-size:24px}
  .auth-theme-toggle{top:14px;right:14px;width:38px;height:38px}
}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
