/* =========================================================
   登录门 v2 · 定稿原型 le-auth 逐像素还原
   覆盖 components.css 中的旧 lg-* 规则（此文件在最后加载）
   ========================================================= */

/* ---- 整体布局：58 / 42 ---- */
.login-gate { background: var(--auth-paper); }
.login-gate-inner { grid-template-columns: 58fr 42fr; min-height: 100svh; }

/* ---- 左侧场景面板 ---- */
.lg-brand {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 15%, var(--bg)) 0%, var(--bg) 72%) !important;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px !important;
}
.lg-brand::before { display: none !important; }
.lg-brand-inner {
  display: contents !important;
}

/* 品牌行 */
.lg-brand-top {
  display: inline-flex; align-items: center; gap: 10px !important;
  font-weight: 600; font-size: 16px; color: var(--ink);
  position: relative; z-index: 2;
  animation: none !important;
}
.lg-brand-top .lg-mark-lg { width: 30px !important; height: 30px !important; }
.lg-brand-name { color: var(--ink) !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.lg-scene-cn {
  font-weight: 400; color: var(--ink-3); font-size: 12px; letter-spacing: .3em;
  margin-left: 2px;
}

/* 大标题区（贴底部） */
.lg-brand-copy {
  margin: 0 !important; position: relative; z-index: 2;
  animation: none !important;
}
.lg-brand-title {
  font-size: 36px !important; font-weight: 600 !important;
  line-height: 1.25 !important; letter-spacing: -.02em !important;
  color: var(--ink) !important;
}
.lg-brand-title span { color: var(--accent) !important; }
.lg-brand-lead {
  margin: 12px 0 0 !important; max-width: 380px !important;
  color: var(--ink-3) !important; font-size: 13px !important; line-height: 1.6 !important;
}

/* 装饰元素：双虚线轨迹 + 双漂浮光球 + 三个碎片卡 */
.lg-scene-trail { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; pointer-events: none; }
.lg-scene-trail path {
  fill: none; stroke: var(--accent); stroke-opacity: .3; stroke-width: 1.2;
  stroke-dasharray: 6 10; animation: lg-trail-drift 40s linear infinite;
}
.lg-scene-orb {
  position: absolute !important; border-radius: 50%;
  filter: blur(48px); opacity: .32; pointer-events: none;
}
.lg-scene-orb-a { width: 260px; height: 260px; left: 55%; top: 12%; background: var(--accent) !important; animation: lg-orb-drift 22s ease-in-out infinite alternate !important; }
.lg-scene-orb-b { width: 200px; height: 200px; left: 8%; top: 58%; background: var(--progress) !important; animation: lg-orb-drift 22s ease-in-out -8s infinite alternate-reverse !important; }
@keyframes lg-trail-drift { to { stroke-dashoffset: -640; } }
@keyframes lg-orb-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-30px, 24px, 0) scale(1.12); } }

.lg-fragment {
  position: absolute !important; padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow-1);
  animation: lg-frag-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes lg-frag-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(10px, -16px, 0); } }

/* 底部 footer */
.lg-brand-foot {
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--ink-4); font-size: 12px;
  position: relative; z-index: 2;
}

/* ---- 右侧表单面板：纯白平铺 ---- */
.lg-form-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; overflow-y: auto;
  background: var(--card) !important;
}
.lg-card-wrap { max-width: 360px; width: 100%; position: static; }
.lg-card {
  border: 0 !important; box-shadow: none !important;
  background: transparent !important; padding: 0 !important;
  display: grid; gap: 18px;
  animation: lg-rise-v2 260ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes lg-rise-v2 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 表单标题 */
.lg-form-title { font-size: 24px !important; font-weight: 600 !important; letter-spacing: -.01em !important; color: var(--ink) !important; }
.lg-form-sub { margin-top: 4px !important; color: var(--ink-3) !important; font-size: 13px !important; }

/* 输入框：h44 r12 无图标 */
.lg-field { display: grid; gap: 6px; animation: none !important; }
.lg-field label { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.lg-field-box {
  height: 44px !important; border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--card) !important;
  box-shadow: none !important;
  display: flex; align-items: center;
  padding: 0 14px !important;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.lg-field-box:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
}
.lg-field-icon { display: none !important; }
.lg-field-box input {
  height: 100%; flex: 1; border: 0; outline: none; background: transparent;
  font-size: 14px; color: var(--ink); padding: 0;
}
/* 新表单不再用左右图标，`.login-gate .input` 的 45px 内边距在这里收掉 */
.login-gate .lg-field-box input.input { padding: 0; }
.lg-field-box:has(.lg-reveal) input.input { padding-right: 34px; }
.lg-field-box input::placeholder { color: var(--ink-4); }
.lg-field.is-bad .lg-field-box { border-color: var(--urgent) !important; }
.lg-field.is-bad .lg-field-box:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--urgent) 12%, transparent) !important; }
.lg-error { font-size: 12px; color: var(--urgent); }

/* 提交按钮：h44 r10 全宽 */
.lg-submit {
  height: 44px !important; width: 100%; border-radius: 10px !important;
  background: var(--accent) !important; color: var(--accent-fg, #fff) !important;
  border: 0 !important; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: background 140ms ease, transform 140ms ease;
  text-shadow: none !important;
  box-shadow: none !important;
}
.lg-submit:hover { background: color-mix(in srgb, var(--accent) 86%, #000) !important; transform: none !important; }
.lg-submit:active { transform: scale(.97) !important; }
.lg-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.lg-submit .lg-arrow { display: none !important; }

/* 记住/忘记行 */
.lg-options {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-3);
}
.lg-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.lg-remember input {
  position: static !important; width: 16px !important; height: 16px !important;
  opacity: 1 !important; pointer-events: auto !important;
  margin: 0; accent-color: var(--accent);
}
.lg-check { display: none !important; }
.lg-link { font-size: 12.5px; font-weight: 500; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

/* 分隔线+注册 */
.lg-divider { display: none !important; }
.lg-secondary {
  display: none !important;
}
.lg-auth-switch { text-align: center; font-size: 12.5px; color: var(--ink-3); }
.lg-auth-switch .lg-link { margin-left: 4px; }

/* 法律文本 */
.lg-legal {
  font-size: 11px; color: var(--ink-4); text-align: center; line-height: 1.6;
  margin-top: 4px;
}

/* 警告横幅 */
.lg-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border-radius: 12px; font-size: 12.5px;
  background: color-mix(in srgb, var(--urgent) 9%, transparent);
  color: var(--urgent);
}

/* 步骤指示器（注册/找回） */
.lg-steps { display: grid; grid-auto-flow: column; gap: 6px; }
.lg-steps span { display: grid; gap: 6px; font-size: 11px; color: var(--ink-4); }
.lg-steps span i { height: 3px; border-radius: 2px; background: var(--line); transition: background 260ms ease; }
.lg-steps span.is-done { color: var(--ink); }
.lg-steps span.is-done i { background: var(--accent); }

/* 手机紧凑版 */
@media (max-width: 760px) {
  .login-gate-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lg-brand {
    padding: 28px 24px 30px !important;
    min-height: 230px;
    gap: 26px;
  }
  .lg-brand-title { font-size: 24px !important; }
  .lg-scene-orb, .lg-scene-trail, .lg-fragment { display: none !important; }
  .lg-form-side { padding: 24px 22px 40px; align-items: stretch; justify-content: flex-start; }
  .lg-card-wrap { max-width: none; }
  .lg-mobile-head { display: flex !important; }
}
