/* auth.css v6 — 整页风景背景 + 右侧半透明玻璃登录面板（含注册/人机验证） */
:root{
  --blue:#1769e0;
  --blue-2:#0a5bd6;
  --blue-3:#2f8bff;
  --blue-soft:#e8f1ff;
  --orange:#F2A65A;
  --ink:#1d2330;
  --text-2:#5a6473;
  --border:#e6e9ef;
  --border-2:#d8dde6;
  --ok:#2E8B57;
  --err:#E2574C;
  --r:8px; --r-lg:14px; --r-pill:999px;
}
*{box-sizing:border-box;}
html,body{height:100%;margin:0;}
body{
  font-family:"PingFang SC","Microsoft YaHei","Segoe UI",system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:#0a1e46;
  display:flex;justify-content:flex-end;align-items:stretch;
  min-height:100vh;
}

/* 整页风景背景：图片放在最底层 */
.page-bg{
  position:fixed;inset:0;z-index:0;
  background:url('hero.jpg?v=1') center center / cover no-repeat;
}
.page-bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(10,30,70,.12),rgba(10,30,70,.24));
}

/* 右侧半透明玻璃登录面板：占满右半边 */
.auth-card{
  position:relative;z-index:1;
  margin-left:auto;
  width:45%;min-width:380px;max-width:520px;
  height:100vh;min-height:100vh;
  overflow-y:auto;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(20px) saturate(130%);
  -webkit-backdrop-filter:blur(20px) saturate(130%);
  border:1px solid rgba(255,255,255,.85);
  border-radius:14px 0 0 14px;
  box-shadow:-12px 0 40px rgba(8,32,78,.22);
  padding:32px 40px 24px;
  text-align:center;
  display:flex;flex-direction:column;justify-content:center;
}
.brand{margin-bottom:16px;}
.brand .logo-img{max-width:180px;width:100%;height:auto;display:block;margin:0 auto;
  filter:drop-shadow(0 4px 14px rgba(8,32,78,.28));}
.title{margin:4px 0 2px;font-size:24px;font-weight:800;color:var(--ink);}
.subtitle{margin:0 0 20px;font-size:13px;color:var(--text-2);}

.tabs{display:flex;gap:6px;background:rgba(23,105,224,.10);padding:5px;border-radius:var(--r-pill);
  margin-bottom:18px;}
.tab{flex:1;border:0;background:transparent;padding:9px 0;border-radius:var(--r-pill);
  font-size:14px;font-weight:600;color:#5b7bb5;cursor:pointer;transition:.2s;}
.tab.active{background:#fff;color:var(--blue);box-shadow:0 4px 12px rgba(23,105,224,.18);}

.panel{display:flex;flex-direction:column;gap:12px;text-align:left;}
.panel.hidden{display:none;}

.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#5a6473;font-weight:600;}
.field input{font:inherit;font-weight:500;color:var(--ink);padding:12px 14px;
  border:1px solid rgba(23,105,224,.25);border-radius:var(--r);background:rgba(255,255,255,.85);outline:none;
  transition:.15s;}
.field input:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(23,105,224,.16);}
.field input:disabled{background:rgba(255,255,255,.55);color:#aeb6c2;}

.btn{border:0;border-radius:var(--r);padding:12px 16px;font:inherit;font-weight:700;
  cursor:pointer;transition:.18s;font-size:14px;}
.btn.primary{background:linear-gradient(135deg,var(--blue-3),var(--blue-2));color:#fff;
  box-shadow:0 10px 22px rgba(23,105,224,.38);}
.btn.primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 14px 26px rgba(23,105,224,.46);}
.btn.primary:disabled{background:#b9cbe6;box-shadow:none;cursor:not-allowed;}
.btn.ghost{background:rgba(255,255,255,.9);color:var(--blue);box-shadow:inset 0 0 0 1.5px var(--blue);}
.btn.ghost:hover{background:var(--blue-soft);}
.btn.small{padding:9px 14px;font-size:13px;}

.status{margin:2px 0 0;min-height:18px;font-size:12.5px;font-weight:600;color:#8a93a3;}
.status.ok{color:var(--ok);}
.status.err{color:var(--err);}

/* 成功面板 */
.success{align-items:center;text-align:center;}
.ok-badge{width:54px;height:54px;margin-bottom:4px;animation:pop .4s ease;}
.ok-hi{margin:0;font-size:19px;font-weight:800;color:var(--blue);}
.ok-user{margin:2px 0 14px;font-size:13px;color:var(--text-2);}
.token-box{width:100%;background:rgba(255,255,255,.9);border:1px solid var(--border);border-radius:var(--r);
  padding:12px;text-align:left;}
.token-label{font-size:12px;font-weight:700;color:#8a93a3;}
.token-row{display:flex;gap:8px;margin-top:7px;}
.token-row input{flex:1;font:inherit;font-size:12px;color:var(--ink);
  padding:9px 10px;border:1px solid var(--border);border-radius:var(--r);background:#fff;outline:none;}
.ok-note{font-size:12px;color:#9aa3b2;line-height:1.5;margin:12px 0 4px;}
@keyframes pop{0%{transform:scale(.5);opacity:0;}100%{transform:scale(1);opacity:1;}}

.foot{margin-top:20px;font-size:11px;color:#7b8494;letter-spacing:.3px;}

/* 通用隐藏 */
.hidden{display:none !important;}

/* 人机验证框 */
.captcha-box{margin-top:2px;background:rgba(23,105,224,.06);border:1px solid rgba(23,105,224,.18);
  border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:10px;}
.captcha-top{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.cap-status{font-size:12.5px;font-weight:600;color:#5b7bb5;}
.captcha-math{display:flex;align-items:center;gap:8px;}
.cap-q{font-size:14px;font-weight:700;color:var(--ink);min-width:92px;}
.cap-ans{flex:1;font:inherit;font-weight:500;padding:9px 10px;border:1px solid rgba(23,105,224,.25);
  border-radius:var(--r);background:#fff;outline:none;}
.cap-ans:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,105,224,.14);}
.cap-progress{font-size:12px;color:#8a93a3;margin:0;}

/* 注册成功区块 */
.reg-done{align-items:center;text-align:center;display:flex;flex-direction:column;gap:4px;padding:8px 0;}
.reg-done .ok-user{margin:2px 0 12px;font-size:13px;color:var(--text-2);line-height:1.5;}

/* 移动端：恢复为居中玻璃卡片 */
@media (max-width:768px){
  body{justify-content:center;padding:16px;align-items:center;}
  .auth-card{
    margin-left:0;width:100%;max-width:100%;min-width:auto;
    height:auto;min-height:auto;
    border-radius:var(--r-lg);border:1px solid rgba(255,255,255,.85);
    box-shadow:0 24px 60px rgba(8,32,78,.30);
    padding:24px 20px 18px;
  }
  .brand .logo-img{max-width:150px;}
}
