/* ============================================================
   login-2026.css · 登录页新视觉（2026-11-01）
   结构：固定顶栏(全站 nav-main) + 中部 左插画/右登录卡 + 底部 三栏平行导航
   头部样式不在这里 —— 统一由 nav-main.css 提供（全站唯一来源）
   ============================================================ */

html,body{height:100%}
body.lg-body{display:flex;flex-direction:column;min-height:100vh;background:var(--bg)}


/* ---------- 中部 ---------- */
.lg-stage{flex:1;display:flex;align-items:stretch;min-height:0}
.lg-art{flex:1.08;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;
  background:#EAF4FB;overflow:hidden}
.lg-art svg{width:78%;height:auto;max-width:620px}
.lg-pane{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;padding:36px 60px;background:var(--card)}

/* ---------- 登录卡 ---------- */
.lg-card{width:100%;max-width:400px}
.lg-card h1{font-size:26px;font-weight:700;letter-spacing:1px;color:var(--t1)}
.lg-card .lg-sub{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 24px}
.lg-card .lg-sub span{font-size:13px;color:var(--t4)}
.lg-card .lg-sub a{font-size:13px;color:#2E8BE6;text-decoration:none}
.lg-card .lg-sub a:hover{text-decoration:underline}

/* 表单行（图标 + 输入 + 右侧块） */
.lg-row{display:flex;align-items:center;gap:10px;border:1px solid #D9E6F2;border-radius:6px;
  height:46px;padding:0 12px;margin-bottom:14px;background:#fff}
.lg-row:focus-within{border-color:#2E8BE6;box-shadow:0 0 0 3px rgba(46,139,230,.12)}
.lg-row > svg{width:17px;height:17px;flex:none;stroke:#8FA8C6;fill:none;stroke-width:1.8}
.lg-row input{border:0;outline:0;flex:1;min-width:0;font:14px/1.4 inherit;color:var(--t1);background:transparent}
.lg-row input::placeholder{color:#AABDD4}
.lg-row.err{border-color:#E0483C;box-shadow:0 0 0 3px rgba(224,72,60,.12)}
.lg-row .lg-eye{flex:none;width:28px;height:28px;border:0;background:transparent;color:#8FA8C6;
  cursor:pointer;display:grid;place-items:center;border-radius:5px}
.lg-row .lg-eye:hover{background:#F2F7FC;color:#2E8BE6}
.lg-row .lg-eye svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7}

/* 图形验证码 */
.lg-cap{width:92px;height:30px;flex:none;border-radius:4px;cursor:pointer;
  border:1px solid #E3ECF6;background:#F4F7FB;display:grid;place-items:center;overflow:hidden}
.lg-cap img{display:block;width:92px;height:30px}
.lg-cap-refresh{flex:none;font-size:12px;color:#8FA8C6;text-decoration:none;white-space:nowrap}
.lg-cap-refresh:hover{color:#2E8BE6}

/* 短信验证码按钮 */
.lg-send{flex:none;border:0;background:#2E8BE6;color:#fff;font-size:13px;border-radius:4px;
  padding:9px 13px;cursor:pointer;font-family:inherit;white-space:nowrap}
.lg-send:disabled{opacity:.55;cursor:default}

/* 主按钮 */
.lg-btn{width:100%;height:48px;border:0;border-radius:6px;background:#2E8BE6;color:#fff;
  font:17px/1 inherit;letter-spacing:8px;cursor:pointer;margin-top:6px;font-family:inherit}
.lg-btn:hover{background:#256FBE}
.lg-btn:disabled{opacity:.6;cursor:default}

.lg-agree{font-size:12px;color:var(--t4);margin-top:14px;text-align:center;line-height:1.8}
.lg-agree a{color:#2E8BE6;text-decoration:none}
.lg-note{margin-top:20px;font-size:12px;color:var(--t4);text-align:center;line-height:1.9}

/* 错误提示 */
.lg-err{display:none;margin:0 0 14px;font-size:12.5px;color:#C4321F;background:#FDEEEB;
  border:1px solid #F7D6D0;border-radius:8px;padding:8px 11px}
.lg-err.on{display:block}

/* 短信沙箱提示 */
.lg-sandbox{display:none;margin:-6px 0 14px;font-size:11.5px;color:#8a5a00;background:#fff6e6;
  border-radius:7px;padding:6px 9px}
.lg-sandbox.on{display:block}
.lg-sandbox b{font-variant-numeric:tabular-nums;letter-spacing:2px}

/* 老会员提示 */
.lg-legacy{margin-top:16px;border:1px dashed var(--line);background:var(--side);border-radius:10px;
  padding:10px 12px;font-size:11.5px;color:var(--t3);line-height:1.9}
.lg-legacy b{color:var(--t2)}

/* ---------- 底部三栏平行导航 ---------- */
.lg-foot{border-top:2px solid #111;background:#fff}
.lg-foot .lg-foot-in{max-width:1200px;margin:0 auto;padding:6px 20px 22px;display:flex}
.lg-foot a{flex:1;display:flex;align-items:baseline;gap:14px;padding:18px 20px;
  text-decoration:none;color:#111}
.lg-foot a + a{border-left:1px solid #ECECEC}
.lg-foot a i{font-style:normal;font-size:11px;color:#999;letter-spacing:1px}
.lg-foot a b{font-size:15px;font-weight:500}
.lg-foot a span{margin-left:auto;font-size:12px;color:#999;white-space:nowrap}
.lg-foot a:hover b{color:#2E8BE6}

/* ---------- 夜间 ---------- */
html[data-theme="dark"] .lg-art{background:linear-gradient(150deg,#152840,#0F1D30)}
html[data-theme="dark"] .lg-pane{background:var(--bg)}
html[data-theme="dark"] .lg-card h1{color:var(--t1)}
html[data-theme="dark"] .lg-card .lg-sub a,
html[data-theme="dark"] .lg-agree a{color:#2DBFA8}
html[data-theme="dark"] .lg-row{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .lg-row:focus-within{border-color:#2DBFA8;box-shadow:0 0 0 3px rgba(45,191,168,.14)}
html[data-theme="dark"] .lg-row > svg{stroke:#737B78}
html[data-theme="dark"] .lg-row input{color:var(--t1)}
html[data-theme="dark"] .lg-row input::placeholder{color:#737B78}
html[data-theme="dark"] .lg-row .lg-eye{color:#737B78}
html[data-theme="dark"] .lg-row .lg-eye:hover{background:rgba(255,255,255,.06);color:#2DBFA8}
html[data-theme="dark"] .lg-cap{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .lg-cap-refresh{color:#737B78}
html[data-theme="dark"] .lg-cap-refresh:hover{color:#2DBFA8}
html[data-theme="dark"] .lg-send{background:#2DBFA8;color:#08130F}
html[data-theme="dark"] .lg-btn{background:#2DBFA8;color:#08130F}
html[data-theme="dark"] .lg-btn:hover{background:#33d1b8}
html[data-theme="dark"] .lg-foot{background:#101013;border-top:1px solid rgba(255,255,255,.09)}
html[data-theme="dark"] .lg-foot a{color:#F2F2F0}
html[data-theme="dark"] .lg-foot a + a{border-left-color:rgba(255,255,255,.075)}
html[data-theme="dark"] .lg-foot a b{color:#F2F2F0}
html[data-theme="dark"] .lg-foot a i,
html[data-theme="dark"] .lg-foot a span{color:#8A8A8A}
html[data-theme="dark"] .lg-foot a:hover b{color:#2DBFA8}

/* body.night 兜底（base.css 体系） */
body.night .lg-art{background:linear-gradient(150deg,#152840,#0F1D30)}
body.night .lg-pane{background:var(--bg)}
body.night .lg-row{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.1)}
body.night .lg-row input{color:var(--t1)}
body.night .lg-row input::placeholder{color:#737B78}
body.night .lg-row > svg{stroke:#737B78}
body.night .lg-send{background:#2DBFA8;color:#08130F}
body.night .lg-btn{background:#2DBFA8;color:#08130F}
body.night .lg-foot{background:#101013;border-top:1px solid rgba(255,255,255,.09)}
body.night .lg-foot a{color:#F2F2F0}
body.night .lg-foot a + a{border-left-color:rgba(255,255,255,.075)}
body.night .lg-foot a b{color:#F2F2F0}
body.night .lg-foot a i,body.night .lg-foot a span{color:#8A8A8A}

/* ---------- 响应式 ---------- */
@media (max-width:1040px){
  .lg-pane{padding:32px 34px}
  .lg-art svg{width:88%}
}
@media (max-width:860px){
  .lg-art{display:none}
  .lg-pane{padding:28px 16px 40px}
  /* 表单行允许换行，避免图形码/发送按钮把内容撑出视口 */
  .lg-row{height:auto;min-height:46px;flex-wrap:wrap;padding:10px 12px;row-gap:8px;column-gap:8px}
  .lg-row input{flex:1 1 130px}
  .lg-cap-refresh{display:none}          /* 点验证码图即可换一张 */
  .lg-cap{width:88px;height:28px}
  .lg-cap img{width:88px;height:28px}
  .lg-send{padding:8px 10px;font-size:12px}
  .lg-card .lg-sub{flex-wrap:wrap;gap:2px 10px}
  .lg-agree,.lg-note,.lg-legacy{word-break:break-word;overflow-wrap:anywhere}
  .lg-foot .lg-foot-in{flex-direction:column;padding:4px 12px 16px}
  .lg-foot a{padding:13px 10px;flex-wrap:wrap;gap:6px 12px}
  .lg-foot a span{margin-left:0}
  .lg-foot a + a{border-left:0;border-top:1px solid rgba(128,128,128,.18)}
}
