/* 客户登录、后台登录与 register 提示页共用；选择器全部以 .auth- 为前缀，不影响登录后的页面。
   左：海军蓝品牌 / 工程示意区；右：纸面登录区。≤768px 收敛为顶部窄带 + 表单优先。 */
.auth-split {
  display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  min-height: 100vh; min-height: 100dvh; background: var(--surface-100);
}

/* ---------- 品牌区 ---------- */
.auth-brand {
  position: relative; display: flex; flex-direction: column; gap: clamp(16px, 3vh, 32px);
  padding: clamp(28px, 4.5vh, 48px) clamp(32px, 4.4vw, 72px) clamp(24px, 4vh, 40px);
  color: #fff; background: var(--navy-900); overflow: hidden;
}
.auth-brand-logo { display: block; width: 184px; height: auto; flex: 0 0 auto; }
.auth-copy { max-width: 520px; }
.auth-kicker { margin-bottom: 14px; font: 500 11px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #8aa0bd; }
.auth-kicker::before { content: ""; display: inline-block; width: 24px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--human); }
.auth-headline { margin: 0; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.35; font-weight: 700; letter-spacing: .01em; }
.auth-headline span { color: #8fb6f5; }
.auth-lead { margin: 14px 0 0; max-width: 440px; color: #c4d1e3; font-size: 15px; line-height: 1.8; }
.auth-figure { display: flex; flex: 1 1 0; min-height: 0; align-items: center; justify-content: center; }
.auth-figure img { display: block; width: 100%; max-width: 620px; max-height: 100%; height: auto; }
.auth-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--navy-700); color: #9fb2cb; font-size: 12px; }
.auth-legend span { display: inline-flex; align-items: center; gap: 8px; }
.auth-legend i { width: 10px; height: 10px; border-radius: 50%; background: #4c8bf0; }
.auth-legend i.human { background: var(--human); }

/* ---------- 登录区 ---------- */
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 4vw, 64px); }
/* 品牌区与纸面交界处的一处 45° 切角 */
.auth-panel::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 0; border-top: 28px solid var(--navy-900); border-right: 28px solid transparent; }
.auth-column { width: min(100%, 380px); }
.auth-scope { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 3px 10px; color: var(--ai-text); background: var(--ai-tint); font: 500 12px/18px var(--font-sans); letter-spacing: .04em; }
.auth-scope.admin { color: #fff; background: var(--navy-900); }
.auth-title { margin: 0 0 6px; font-size: 26px; line-height: 1.3; }
.auth-sub { margin: 0 0 28px; color: var(--ink-muted); font-size: 14px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { margin-bottom: 7px; font-size: 13px; }
.auth-field input { min-height: 44px; padding: 0 12px; font-size: 15px; }
.auth-input { position: relative; }
.auth-input input { padding-right: 68px; }
.auth-toggle {
  position: absolute; top: 4px; right: 4px; bottom: 4px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 2px;
  color: var(--ai-text); background: transparent; font-size: 13px; font-weight: 600;
}
.auth-toggle:hover { background: var(--ai-tint); }
.auth-error { margin: 0 0 18px; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 4px; font-size: 15px; }
.auth-submit .ico { width: 18px; height: 18px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.auth-links span { color: var(--ink-muted); }
.auth-form .message { margin: 0 0 18px; }

@media (max-width: 1100px), (max-height: 780px) {
  .auth-lead { display: none; }
}
@media (max-width: 768px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand { flex-direction: row; align-items: center; padding: 14px 20px; border-bottom: 3px solid var(--ai); overflow: visible; }
  .auth-brand::after { content: ""; position: absolute; right: 0; bottom: -3px; width: 28px; height: 3px; background: var(--human); }
  .auth-brand-logo { width: 140px; }
  .auth-copy, .auth-figure, .auth-legend { display: none; }
  .auth-panel { align-items: flex-start; padding: 32px 20px 40px; }
  .auth-panel::before { display: none; }
  .auth-title { font-size: 22px; }
  .auth-sub { margin-bottom: 22px; }
}
