/* 言脉 · 商业访谈版登录页（深色科技风，与家族版家音暖色海报形成业务线对照）
   形状约定：输入框/按钮圆角 10px，与本页一致。 */
:root {
  --bg: #0a1628;          /* 深海军蓝（取自数字人海报底色） */
  --panel: #0e1d33;
  --line: #1e3a5f;
  --text: #e8f0f8;
  --muted: #8fa9c4;
  --acc: #38bdf8;         /* 青（海报中全息光效色） */
  --acc-d: #0ea5e9;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }

.login-wrap { min-height: 100vh; display: flex; background: var(--bg); }

/* 左侧：数字人采访海报 */
.login-poster {
  flex: 1.2; position: relative; min-height: 100vh;
  background: url(login-poster.jpg?v=20260926-3935) center 42% / cover no-repeat;
}
.login-poster::after { /* 底部压暗渐变，保证文案可读 */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 12, 24, .78) 0%, rgba(4, 12, 24, .26) 32%, rgba(4, 12, 24, 0) 58%);
}
.lp-caption { position: absolute; left: 48px; right: 48px; bottom: 56px; z-index: 1; color: #fff; }
.lp-title {
  font-size: 28px; letter-spacing: 3px; margin-bottom: 12px; font-weight: 600;
  text-shadow: 0 2px 16px rgba(2, 8, 18, .7);
}
.lp-sub { font-size: 14px; letter-spacing: 2px; color: rgba(210, 228, 244, .9); text-shadow: 0 1px 8px rgba(2, 8, 18, .6); }

/* 右侧：深色表单区 */
.login-side {
  width: 480px; flex: none; display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; background: var(--panel);
  box-shadow: -12px 0 40px rgba(2, 8, 18, .45);
}
.login-card { width: 340px; max-width: 100%; }
.login-card .brand {
  text-align: center;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 46px; font-weight: 700; color: var(--text);
  letter-spacing: 14px; text-indent: 14px; /* 末字间距视觉补偿 */
}
.brand-wave { display: block; width: 116px; height: 24px; margin: 12px auto 10px; fill: var(--acc); }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 3px; margin-bottom: 34px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: #b8cce0; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; outline: none;
  background: #0a1830; border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #5b7a99; }
.field input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }

.login-btn {
  width: 100%; padding: 12px; margin-top: 6px;
  border-radius: 10px; font-size: 15px; letter-spacing: 6px; text-indent: 6px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(14, 165, 233, .30); transition: filter .15s, transform .1s;
}
.login-btn:hover { filter: brightness(1.1); }
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled { opacity: .5; cursor: not-allowed; }

.login-foot { margin-top: 32px; text-align: center; font-size: 12px; color: #5b7a99; letter-spacing: 2px; }
.login-foot a { color: #7fa3c4; }
.login-foot a:hover { color: var(--acc); }

/* 错误提示 */
#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: #7f1d1d; color: #fecaca; padding: 10px 22px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 50;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 移动端：上海报横幅、下表单 */
@media (max-width: 880px) {
  .login-wrap { flex-direction: column; }
  .login-poster { flex: none; width: 100%; height: 36vh; min-height: 220px; background-position: center 30%; }
  .lp-caption { left: 22px; right: 22px; bottom: 20px; }
  .lp-title { font-size: 20px; letter-spacing: 1.5px; margin-bottom: 8px; }
  .lp-sub { font-size: 12px; letter-spacing: 1px; }
  .login-side { width: 100%; flex: 1; box-shadow: none; padding: 30px 22px 40px; }
  .login-card { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* v4：品牌 logo（透明线轴图：drop-shadow 贴合轮廓） */
.login-logo {
  border-radius: 22%;
  display: block; width: 64px; height: 64px;
  margin: 0 auto 16px; filter: drop-shadow(0 2px 10px rgba(2, 12, 30, .45));
}

/* v5：邮箱验证码登录（双 tab，深色科技风） */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 10px 0; font-size: 15px; color: #5b7a99; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; font: inherit; font-size: 15px; }
.auth-tab.active { color: #7dd3fc; font-weight: 700; border-bottom-color: var(--acc); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.btn-send { flex: none; white-space: nowrap; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #0a1830; color: #7fa3c4; cursor: pointer; font: inherit; font-size: 14px; }
.btn-send:hover:not(:disabled) { border-color: var(--acc); color: #7dd3fc; }
.btn-send:disabled { opacity: .45; cursor: not-allowed; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #5b7a99; line-height: 1.7; margin: 4px 0 14px; cursor: pointer; border-radius: 8px; padding: 6px 8px; }
.agree input { margin-top: 3px; flex: none; accent-color: var(--acc); }
.agree a { color: #7fa3c4; }
.agree.need { outline: 1.5px solid #f87171; background: rgba(248, 113, 113, .08); }
