/* 统一身份认证登录页（独立样式，不复用 site.css，避免缓存/规则变更影响登录） */
:root {
  --lg-brand: #2563eb;
  --lg-brand-dark: #1d4ed8;
  --lg-ink: #0f172a;
  --lg-muted: #64748b;
  --lg-line: #dbe3ef;
  --lg-bg-card: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body.lg-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--lg-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 10% 6%, rgba(56, 189, 248, .20), transparent 62%),
    radial-gradient(820px 540px at 92% 10%, rgba(99, 102, 241, .24), transparent 64%),
    linear-gradient(168deg, #0b1526 0%, #0a1120 46%, #0c1a2e 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶栏 ---------- */
.lg-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-brand img { width: 40px; height: 40px; border-radius: 11px; }
.lg-brand strong {
  color: #f2f7ff; font-size: 17px; letter-spacing: .4px; line-height: 1.15;
  display: block; font-weight: 700;
}
.lg-brand small {
  display: block; color: #8ea6c8; font-size: 10.5px; letter-spacing: 2.2px;
  margin-top: 3px; font-weight: 600;
}
.lg-back {
  color: #a9bcd8; font-size: 13.5px; padding: 8px 14px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .14); transition: all .18s ease;
}
.lg-back:hover { color: #fff; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); }

/* ---------- 主区 ---------- */
.lg-main {
  flex: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 430px);
  gap: 64px;
  align-items: center;
}

.lg-badge {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, .32);
  background: rgba(56, 189, 248, .10);
  margin-bottom: 20px;
}

.lg-intro h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -.8px;
  color: #f4f8ff;
  font-weight: 700;
}
.lg-intro p { margin: 0; color: #a3b6d2; font-size: 15px; line-height: 1.9; max-width: 30em; }

.lg-points {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lg-point {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  padding: 14px 14px 15px;
  backdrop-filter: blur(6px);
}
.lg-point b { display: block; color: #e8f1ff; font-size: 13.5px; margin-bottom: 4px; }
.lg-point span { color: #91a7c6; font-size: 12px; line-height: 1.6; min-width: 0; }

/* ---------- 登录卡片 ---------- */
.lg-card {
  background: var(--lg-bg-card);
  border-radius: 18px;
  padding: 34px 34px 30px;
  box-shadow: 0 32px 80px rgba(2, 8, 23, .48), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.lg-card h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.3px; color: #0f172a; }
.lg-card-sub { margin: 0 0 20px; color: var(--lg-muted); font-size: 13px; }

.lg-hint {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  color: #1e40af;
  font-size: 13px;
  line-height: 1.72;
}
.lg-hint svg { flex: 0 0 auto; margin-top: 2px; }
.lg-hint > div { min-width: 0; }
.lg-hint b { font-weight: 700; }

.lg-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.65;
}

.lg-form { display: flex; flex-direction: column; gap: 16px; }
.lg-field { display: flex; flex-direction: column; gap: 7px; }
.lg-field > span { font-size: 12.5px; font-weight: 600; color: #334155; letter-spacing: .2px; }
.lg-field > span em { font-style: normal; color: #dc2626; margin-left: 3px; }

.lg-input-wrap { position: relative; display: block; }
.lg-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 15px;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 10px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  font-family: inherit;
}
.lg-input::placeholder { color: #9aa9bf; }
.lg-input:hover { border-color: #b9c7da; }
.lg-input:focus { border-color: var(--lg-brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.lg-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: #0f172a; }

.lg-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.lg-eye:hover { background: #f1f5f9; color: #334155; }
.lg-eye:focus-visible { outline: 2px solid var(--lg-brand); outline-offset: 1px; }

.lg-submit {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .30);
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
  font-family: inherit;
}
.lg-submit:hover { filter: brightness(1.04); box-shadow: 0 12px 26px rgba(37, 99, 235, .38); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }

.lg-card-foot {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  color: #6b7a90;
  font-size: 12.5px;
  line-height: 1.75;
}
.lg-card-foot b { color: #334155; font-weight: 600; }

.lg-target {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed #d7e0ec;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.6;
  word-break: break-all;
}
.lg-target code { color: #1d4ed8; font-size: 11.5px; }

/* ---------- 页脚 ---------- */
.lg-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #7c8ea8;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .lg-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 0 40px;
    max-width: 560px;
  }
  .lg-intro h1 { font-size: 32px; }
  .lg-points { margin-top: 22px; }
  .lg-card { padding: 28px 24px 24px; }
}

@media (max-width: 620px) {
  .lg-header, .lg-main, .lg-footer { width: calc(100% - 32px); }
  .lg-header { height: 66px; }
  .lg-brand img { width: 34px; height: 34px; }
  .lg-back { font-size: 12.5px; padding: 7px 11px; }
  .lg-intro h1 { font-size: 27px; }
  .lg-intro p { font-size: 14px; }
  .lg-points { grid-template-columns: 1fr; gap: 8px; }
  .lg-point { display: flex; gap: 10px; align-items: baseline; padding: 11px 13px; }
  .lg-point b { margin-bottom: 0; flex: 0 0 auto; }
  .lg-card { padding: 24px 18px 20px; border-radius: 15px; }
  .lg-card h2 { font-size: 20px; }
  .lg-footer { flex-direction: column; gap: 4px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
