/* ==========================================================================
   登录 / 注册页：沿用主站的配色变量，深浅色随主站一起切换
   ========================================================================== */

body.auth-page{
  min-height:100vh;margin:0;
  background:var(--bg);color:var(--text);
  display:flex;align-items:center;justify-content:center;
  padding:36px 20px;
  font:14px/1.65 var(--sans);
}

.auth-wrap{
  width:min(980px,100%);display:grid;grid-template-columns:0.9fr 1fr;
  background:var(--surface);border:1px solid var(--border);border-radius:6px;overflow:hidden;
}

.auth-brand{
  padding:44px 40px 32px;border-right:1px solid var(--border);
  display:flex;flex-direction:column;background:var(--surface-2);
}
.auth-brand .mark{
  width:44px;height:44px;display:grid;place-items:center;
  background:var(--accent);color:var(--accent-ink);
  font-size:20px;border-radius:var(--radius);
}
.auth-brand h1{margin:22px 0 0;font-size:30px;font-weight:600;letter-spacing:.02em;line-height:1.2;}
.auth-brand .en{margin:6px 0 0;font-size:12px;color:var(--text-3);}
.auth-brand .rule{height:1px;background:var(--border);margin:22px 0 20px;}
.auth-brand .lead{font-size:13.5px;line-height:1.95;color:var(--text-2);margin:0;}
.auth-brand footer{margin-top:auto;padding-top:24px;font-size:11px;line-height:1.9;color:var(--text-3);}

.auth-form{padding:40px 44px 34px;display:flex;flex-direction:column;}
.tabs{display:flex;gap:22px;margin-bottom:24px;border-bottom:1px solid var(--border);}
.tabs .tab{
  height:auto;padding:0 0 10px;border:none;background:none;border-radius:0;
  font-size:15px;color:var(--text-3);border-bottom:2px solid transparent;margin-bottom:-1px;
}
.tabs .tab.on{color:var(--text);border-bottom-color:var(--accent);font-weight:600;}
.tabs .tab:hover{color:var(--text);}

.pane{display:none;flex-direction:column;gap:16px;}
.pane.on{display:flex;}
.pane label{display:block;}
.pane label span{display:block;font-size:12px;color:var(--text-2);margin-bottom:6px;}
.pane input,.pane select{width:100%;height:42px;font-size:14px;}
.pane .btn{height:44px;margin-top:6px;font-size:14px;}
.pane .err{min-height:18px;margin:0;font-size:12px;color:var(--danger);}
.pane .panetip{margin:0 0 2px;font-size:12px;color:var(--text-3);line-height:1.9;}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;}
.grid2 .full{grid-column:1 / -1;}

@media (max-width:900px){
  .auth-wrap{grid-template-columns:1fr;}
  .auth-brand{border-right:none;border-bottom:1px solid var(--border);padding:30px 24px 24px;}
  .auth-form{padding:28px 24px;}
  .grid2{grid-template-columns:1fr;}
}
