/* ===========================================================================
   登录页 · 按参考图复刻（2026-10-28）
   结构：顶栏（72）｜主体（左品牌 65% + 右表单 35%）｜底栏（36）
   纪律：全部色值与字号走 tokens.css 的 --lg-*，不写裸值（check-css 会拦）
   =========================================================================== */

.lg-body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-cjk);
  -webkit-font-smoothing: antialiased;
}

.lg-shell {
  display: grid;
  grid-template-rows: var(--lg-h-top) 1fr var(--lg-h-bottom);
  min-height: 100vh;
}

/* ─────────── 顶栏 ─────────── */
.lg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--lg-pad-bar);
  border-bottom: 1px solid var(--lg-line);
  background: var(--white);
}

.lg-top-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.lg-logo {
  height: 26px;
  width: auto;
  display: block;
}

.lg-sep {
  width: 1px;
  height: 18px;
  background: var(--border-soft);
}

.lg-prod {
  font-size: var(--lg-fs-brand);
  font-weight: var(--fw-head);
  color: var(--text-primary);
  letter-spacing: .2px;
}

.lg-beta {
  font-size: var(--lg-fs-note);
  font-weight: var(--fw-head);
  color: var(--lg-beta-fg);
  background: var(--lg-beta-bg);
  border-radius: var(--r-xs);
  padding: 2px 6px;
  line-height: 1.4;
}

.lg-top-note {
  font-size: var(--lg-fs-note);
  color: var(--text-muted);
}

/* ─────────── 主体 ─────────── */
.lg-main {
  display: grid;
  grid-template-columns: var(--lg-col-left) 1fr;
  min-height: 0;
}

/* 左：品牌区 */
.lg-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--lg-pad-x) 48px;
  background:
    radial-gradient(120% 80% at 78% 24%, var(--lg-cream-glow) 0%, rgba(255,248,236,0) 62%),
    linear-gradient(155deg, var(--lg-cream-top) 0%, var(--lg-cream-mid) 48%, var(--lg-cream-bot) 100%);
  border-right: 1px solid var(--lg-line);
}

.lg-eyebrow {
  margin: 0 0 var(--lg-gap-eyebrow);
  font-size: var(--lg-fs-eyebrow);
  font-weight: var(--fw-title);
  color: var(--text-brand);
  letter-spacing: .4px;
}

.lg-title {
  margin: 0 0 var(--lg-gap-title);
  font-size: var(--lg-fs-title);
  line-height: var(--lg-lh-title);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: .5px;
}

.lg-lede {
  margin: 0 0 var(--lg-gap-lede);
  max-width: var(--lg-max-lede);
  font-size: var(--lg-fs-lede);
  line-height: var(--lg-lh-lede);
  color: var(--text-secondary);
}

.lg-rule {
  width: var(--lg-rule-w);
  height: 1px;
  background: var(--border-card);
  opacity: .55;
  margin-bottom: var(--sp-6);
}

.lg-person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.lg-person img {
  width: var(--lg-avatar);
  height: var(--lg-avatar);
  border-radius: var(--r-pill);
  object-fit: cover;
  background: var(--bg-avatar-placeholder);
}

.lg-person strong {
  display: block;
  font-size: var(--lg-fs-label);
  font-weight: var(--fw-title);
  color: var(--text-primary);
  line-height: 1.5;
}

.lg-person p {
  margin: 2px 0 0;
  font-size: var(--lg-fs-person);
  color: var(--text-muted);
  line-height: 1.5;
}

/* 右：表单区 */
.lg-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-8);
  background: var(--white);
}

.lg-form {
  width: 100%;
  max-width: var(--lg-w-panel);
}

.lg-form h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--lg-fs-h2);
  line-height: 1.3;
  font-weight: var(--fw-title);
  color: var(--text-primary);
}

.lg-sub {
  margin: 0 0 var(--sp-8);
  font-size: var(--lg-fs-sub);
  color: var(--text-muted);
}

.lg-field {
  display: block;
  margin-bottom: var(--sp-4);
}

.lg-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--lg-fs-label);
  font-weight: var(--fw-head);
  color: var(--text-secondary);
}

.lg-field input {
  width: 100%;
  box-sizing: border-box;
  height: var(--lg-h-field);
  padding: 0 var(--sp-4);
  font-family: inherit;
  font-size: var(--lg-fs-input);
  color: var(--text-primary);
  background: var(--bg-field);
  border: 1px solid var(--border-field);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}

.lg-field input::placeholder {
  color: var(--text-muted);
}

.lg-field input:hover {
  border-color: var(--border-hover);
}

.lg-field input:focus {
  border-color: var(--focus-ring);
  box-shadow: var(--shadow-focus);
}

/* 密码框内的「显示」 */
.lg-pwd {
  position: relative;
  display: block;
}

.lg-pwd input {
  padding-right: 56px;
}

.lg-eye {
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  padding: 0 2px;
  font-family: inherit;
  font-size: var(--lg-fs-note);
  font-weight: var(--fw-head);
  color: var(--text-brand);
  cursor: pointer;
  line-height: 1.6;
}

.lg-eye:hover {
  color: var(--red-700);
  text-decoration: underline;
}

/* 保持登录 / 忘记密码 */
.lg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--sp-2) 0 var(--sp-6);
}

.lg-check {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--lg-fs-note);
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.lg-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--orange-600);
  cursor: pointer;
}

.lg-help {
  font-size: var(--lg-fs-note);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}

.lg-help:hover {
  color: var(--text-brand-strong);
}

.lg-err {
  min-height: 16px;
  margin: 0 0 var(--sp-2);
  font-size: var(--lg-fs-note);
  color: var(--text-brand);
  line-height: 1.4;
}

.lg-btn {
  width: 100%;
  height: var(--lg-h-btn);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--lg-grad-btn);
  color: var(--text-on-brand);
  font-family: inherit;
  font-size: var(--lg-fs-input);
  font-weight: var(--fw-title);
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: var(--lg-btn-shadow);
  transition: background var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
}

.lg-btn:hover {
  background: var(--lg-grad-btn-hover);
  box-shadow: var(--lg-btn-shadow-hover);
}

.lg-btn:active {
  transform: translateY(1px);
}

.lg-btn:disabled {
  cursor: default;
  opacity: .68;
  box-shadow: none;
}

.lg-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 0;
  font-size: var(--lg-fs-note);
  color: var(--text-muted);
}

.lg-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--dot-success);
  display: inline-block;
}

/* ─────────── 底栏 ─────────── */
.lg-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--lg-pad-bar);
  border-top: 1px solid var(--lg-line);
  background: var(--white);
  font-size: var(--lg-fs-note);
  color: var(--text-muted);
}

.lg-secure {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ─────────── 自适应 ─────────── */
@media (max-width: 1180px) {
  :root {
    --lg-col-left: 58%;
    --lg-pad-x: 40px;
    --lg-fs-title: 36px;
    --lg-lh-title: 46px;
    --lg-gap-lede: 32px;
  }
}

@media (max-width: 880px) {
  .lg-main {
    grid-template-columns: 1fr;
  }

  .lg-brand {
    display: none;
  }

  .lg-panel {
    padding: var(--sp-8) var(--sp-6);
  }

  .lg-top {
    padding: 0 var(--sp-6);
  }

  .lg-top-note {
    display: none;
  }

  .lg-bottom {
    padding: 0 var(--sp-6);
  }
}
