/* 5LAOBAN-1781 登录页样式：与官网首页同一套颜色与字体；只服务 templates/registration/login.html。
   左侧品牌舞台（标题＋业务小组件围着 DTP 核心、流光线连接）铺满一屏，右侧整块登录区。纯 CSS 动效，开了「减少动态效果」不播。 */
@font-face { font-family: 'Noto Sans SC'; src: url('fonts/noto-sans-sc-site.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-site.woff2') format('woff2'); font-style: normal; font-weight: 400; font-variation-settings: 'wght' 400; font-display: swap; unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-site.woff2') format('woff2'); font-style: normal; font-weight: 700; font-variation-settings: 'wght' 700; font-display: swap; unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F; }
@property --lg-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --a9: #4f6bff;
  --a9b: #7b5cff;
  --a9c: #22b8ff;
  --ink9: #0e1222;
  --muted9: #67708a;
  --line9: #e4e7f4;
  --blue-g: linear-gradient(120deg, #4f6bff, #6a63ff);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.login-page {
  min-height: 100vh;
  min-height: 100svh;
  font-family: Inter, 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink9);
  background: #fff;
}
.lg-shell { display: grid; grid-template-columns: minmax(0, 1fr) clamp(420px, 34vw, 540px); min-height: 100vh; min-height: 100svh; }

/* ---- 左侧品牌舞台 ---- */
.lg-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(28px, 4vw, 64px) 32px;
  background:
    radial-gradient(55% 45% at 30% 0%, rgba(123, 92, 255, .16), transparent 70%),
    radial-gradient(45% 45% at 0% 70%, rgba(79, 107, 255, .12), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(34, 184, 255, .12), transparent 70%),
    #f4f6fd;
}
.lg-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(79, 107, 255, .16) 1px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-mask: radial-gradient(80% 70% at 50% 55%, #000, transparent);
  mask: radial-gradient(80% 70% at 50% 55%, #000, transparent);
}
.lg-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: 40%;
  top: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 107, 255, .22), rgba(123, 92, 255, .08) 45%, transparent 70%);
  filter: blur(10px);
  animation: lg-drift 14s ease-in-out infinite alternate;
}
@keyframes lg-drift { to { transform: translate(-18%, -12%) scale(1.15); } }

.lg-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; align-self: flex-start; }
.lg-brand img { display: block; width: auto; height: 38px; }
.lg-brand span { color: var(--a9); font-size: 16px; font-weight: 600; }
.lg-brand-sm { display: none; }

.lg-copy { margin-top: clamp(28px, 6vh, 72px); max-width: 640px; }
.lg-eyebrow { margin: 0 0 16px; color: var(--a9); font-size: 13px; font-weight: 600; letter-spacing: .32em; }
.lg-headline { margin: 0; font-size: clamp(34px, 3.3vw, 54px); line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
.lg-headline em {
  font-style: normal;
  background: linear-gradient(100deg, #4f6bff, #7b5cff 35%, #22b8ff 60%, #4f6bff 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lg-flow 6s linear infinite;
}
@keyframes lg-flow { to { background-position: -220% 0; } }
.lg-desc { margin: 16px 0 0; color: var(--muted9); font-size: 15px; line-height: 1.7; }

/* 舞台场景：600×360 的坐标系，随宽度等比缩放（单位 --u＝场景宽 / 600）。
   大小按舞台宽和屏高取小（屏高扣掉标志、标题、模块排约 520px），在标题与模块排之间上下居中——
   原先固定最宽 640px、贴底，大屏上缩在底部、中间空一大块（仁洲 10-27） */
.lg-scene {
  container-type: inline-size;
  position: relative;
  width: min(100%, 1120px, max(420px, calc((100vh - 520px) * 5 / 3)));
  width: min(100%, 1120px, max(420px, calc((100svh - 520px) * 5 / 3)));
  aspect-ratio: 600 / 360;
  margin: auto;
  padding-top: 8px;
}
.lg-scene > * { --u: calc(100cqw / 600); }
.lg-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lg-rail { fill: none; stroke: url(#lg-rail); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .6; vector-effect: non-scaling-stroke; }
.lg-pulse {
  fill: none;
  stroke: #4f6bff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 12 200;
  stroke-dashoffset: 12;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(79, 107, 255, .8));
  animation: lg-pulse 3.2s cubic-bezier(.45, .05, .35, 1) infinite;
}
.lg-pulse:nth-of-type(6) { animation-delay: .8s; stroke: #7b5cff; }
.lg-pulse:nth-of-type(7) { animation-delay: 1.6s; stroke: #22b8ff; }
.lg-pulse:nth-of-type(8) { animation-delay: 2.4s; }
@keyframes lg-pulse {
  0% { stroke-dashoffset: 12; opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

.lg-hub {
  position: absolute;
  left: calc(252 * var(--u));
  top: calc(132 * var(--u));
  width: calc(96 * var(--u));
  height: calc(96 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: calc(26 * var(--u));
  background: linear-gradient(140deg, #4f6bff, #6a4dff 55%, #22b8ff);
  color: #fff;
  box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(79, 107, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: lg-breathe 4s ease-in-out infinite;
}
.lg-hub b { font-family: Inter, sans-serif; font-size: calc(26 * var(--u)); font-weight: 700; letter-spacing: .04em; }
.lg-hub small { font-size: calc(11 * var(--u)); opacity: .85; }
.lg-hub-ring {
  position: absolute;
  inset: calc(-8 * var(--u));
  border-radius: calc(32 * var(--u));
  padding: 2px;
  background: conic-gradient(from var(--lg-a), transparent 0 60%, #4f6bff 75%, #7b5cff 85%, #22b8ff 93%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: lg-spin 4s linear infinite;
}
@keyframes lg-spin { to { --lg-a: 360deg; } }
@keyframes lg-breathe { 50% { box-shadow: 0 calc(22 * var(--u)) calc(56 * var(--u)) rgba(79, 107, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .35); } }

.lg-card {
  position: absolute;
  padding: calc(12 * var(--u)) calc(14 * var(--u));
  border: 1px solid var(--line9);
  border-radius: calc(14 * var(--u));
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) calc(-16 * var(--u)) rgba(30, 40, 110, .28);
  font-size: calc(12 * var(--u));
  animation: lg-float 6s ease-in-out infinite;
}
.lg-card p { margin: 0; }
.lg-c1 { left: 0; top: calc(30 * var(--u)); width: calc(184 * var(--u)); }
.lg-c2 { left: calc(416 * var(--u)); top: calc(30 * var(--u)); width: calc(184 * var(--u)); animation-delay: -1.5s; }
.lg-c3 { left: calc(420 * var(--u)); top: calc(214 * var(--u)); width: calc(180 * var(--u)); animation-delay: -3s; }
.lg-c4 { left: calc(6 * var(--u)); top: calc(246 * var(--u)); width: calc(184 * var(--u)); animation-delay: -4.5s; }
@keyframes lg-float { 50% { transform: translateY(calc(-7 * var(--u))); } }

.lg-ct { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-bottom: calc(9 * var(--u)) !important; font-weight: 600; color: #3a4566; }
.lg-ct i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #2fd35a; box-shadow: 0 0 0 calc(3 * var(--u)) rgba(47, 211, 90, .16); }
.lg-path { display: flex; flex-direction: column; gap: calc(6 * var(--u)); margin: 0; padding: 0; list-style: none; }
.lg-path li { display: flex; align-items: center; justify-content: space-between; padding: calc(6 * var(--u)) calc(8 * var(--u)); border: 1px solid var(--line9); border-radius: calc(8 * var(--u)); background: #f7f8fd; }
.lg-path span { padding: 0 calc(6 * var(--u)); border-radius: calc(4 * var(--u)); font-family: Inter, sans-serif; font-size: calc(10 * var(--u)); font-weight: 700; color: var(--a9); background: #eef1ff; }
.lg-path li:last-child span { color: #19a34a; background: #e8f8ee; }
.lg-ok { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-bottom: calc(10 * var(--u)) !important; font-weight: 600; }
.lg-ok i { display: grid; place-items: center; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: #e8f8ee; color: #19a34a; font-style: normal; font-size: calc(10 * var(--u)); }
.lg-cus { display: flex; align-items: center; gap: calc(7 * var(--u)); margin-bottom: calc(10 * var(--u)) !important; }
.lg-cus span { display: grid; place-items: center; width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--a9); color: #fff; font-size: calc(10 * var(--u)); }
.lg-cus small { margin-left: auto; color: var(--muted9); font-size: calc(10 * var(--u)); }
.lg-sum { display: flex; align-items: baseline; justify-content: space-between; padding: calc(8 * var(--u)) calc(10 * var(--u)); border-radius: calc(8 * var(--u)); background: #f4f6fd; }
.lg-sum small { color: var(--muted9); font-size: calc(10 * var(--u)); }
.lg-sum b { color: var(--a9); font-family: Inter, sans-serif; font-size: calc(18 * var(--u)); }
.lg-kv { display: flex; gap: calc(22 * var(--u)); }
.lg-kv small { display: block; color: var(--muted9); font-size: calc(10 * var(--u)); }
.lg-kv b { font-family: Inter, sans-serif; font-size: calc(17 * var(--u)); }
.lg-bars { display: flex; align-items: flex-end; gap: calc(5 * var(--u)); height: calc(34 * var(--u)); margin-top: calc(10 * var(--u)) !important; }
.lg-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; background: linear-gradient(180deg, #7b5cff, #4f6bff); transform-origin: bottom; animation: lg-bar 3.2s ease-in-out infinite; }
.lg-bars i:nth-child(2n) { animation-delay: -.8s; }
.lg-bars i:nth-child(3n) { animation-delay: -1.6s; }
@keyframes lg-bar { 50% { transform: scaleY(.72); } }
.lg-ship { display: flex; align-items: baseline; justify-content: space-between; }
.lg-ship b { color: #19a34a; font-size: calc(14 * var(--u)); }
.lg-ship span { color: var(--muted9); font-family: Inter, sans-serif; font-size: calc(11 * var(--u)); }
.lg-prog { position: relative; height: calc(6 * var(--u)); margin-top: calc(10 * var(--u)) !important; border-radius: 99px; background: #eef1f8; overflow: hidden; }
.lg-prog i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #22b8ff, #4f6bff); transform-origin: left; animation: lg-fill 4s ease-in-out infinite; }
@keyframes lg-fill { 0% { transform: scaleX(.15); } 60%, 100% { transform: scaleX(1); } }

.lg-mods { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.lg-mods li { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 92px; padding: 9px 14px; border: 1px solid var(--line9); border-radius: 12px; background: rgba(255, 255, 255, .8); }
.lg-mods b { font-family: Inter, sans-serif; font-size: 14px; }
.lg-mods small { color: var(--muted9); font-size: 12px; }
.lg-mods li { animation: lg-run 6s ease-in-out infinite; }
.lg-mods li:nth-child(2) { animation-delay: .6s; }
.lg-mods li:nth-child(3) { animation-delay: 1.2s; }
.lg-mods li:nth-child(4) { animation-delay: 1.8s; }
.lg-mods li:nth-child(5) { animation-delay: 2.4s; }
.lg-mods li:nth-child(6) { animation-delay: 3s; }
@keyframes lg-run {
  0%, 14%, 100% { border-color: var(--line9); box-shadow: none; }
  5%, 9% { border-color: rgba(79, 107, 255, .55); box-shadow: 0 0 0 3px rgba(79, 107, 255, .12), 0 8px 20px -10px rgba(79, 107, 255, .6); }
}
.lg-demo { position: absolute; right: 18px; bottom: 12px; color: #9aa3bd; font-size: 11px; }

/* ---- 右侧登录区 ---- */
.lg-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(32px, 4vw, 72px) 64px;
  background: #fff;
  box-shadow: -30px 0 60px -40px rgba(30, 40, 110, .25);
}
.lg-form-wrap { width: 100%; max-width: 400px; margin: 0 auto; }
.lg-panel h1 { margin: 0; font-size: 32px; font-weight: 650; }
.lg-sub { margin: 8px 0 32px; color: var(--muted9); font-size: 15px; }

.msg { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: #eef2ff; color: #2f3a8f; }
.msg.error { background: #fdecec; color: #9b1c1c; }
.msg.warning { background: #fff6e0; color: #7a4a0c; }
.msg.success { background: #e6f7ee; color: #146c3a; }

.lg-form { display: flex; flex-direction: column; }
.lg-form label { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.lg-form input[type="text"],
.lg-form input[type="password"] {
  width: 100%;
  height: 52px;
  margin: 0 0 20px;
  padding: 0 16px;
  border: 1px solid #d7dcec;
  border-radius: 12px;
  background: #f8f9fd;
  color: var(--ink9);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.lg-form input::placeholder { color: #a3abc2; }
.lg-form input:focus { outline: none; border-color: var(--a9); background: #fff; box-shadow: 0 0 0 4px rgba(79, 107, 255, .16); }

.lg-submit,
.lg-feishu {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.lg-submit { margin-top: 6px; border: 0; background: var(--blue-g); color: #fff; box-shadow: 0 12px 28px rgba(79, 107, 255, .34); }
.lg-submit::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: lg-sweep 4s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes lg-sweep { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.lg-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(79, 107, 255, .42); }
.lg-submit:focus-visible,
.lg-feishu:focus-visible { outline: 3px solid rgba(79, 107, 255, .45); outline-offset: 2px; }
.lg-feishu { border: 1px solid #d7dcec; background: #fff; color: var(--ink9); }
.lg-feishu:hover { border-color: var(--a9); color: var(--a9); }

.lg-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted9); font-size: 13px; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line9); }
.lg-demo-acc { margin: 22px 0 0; padding: 12px 14px; border-radius: 12px; background: #f4f6fc; color: var(--muted9); font-size: 12px; line-height: 1.6; }
.lg-foot { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; color: #a3abc2; font-size: 12px; }

/* ---- 窄屏：舞台收成顶部横幅，只留标题 ---- */
@media (max-width: 1023px) {
  .lg-shell { grid-template-columns: minmax(0, 1fr); }
  .lg-stage { padding: 20px 20px 28px; }
  .lg-copy { margin-top: 20px; }
  .lg-headline { font-size: clamp(26px, 6.4vw, 40px); }
  .lg-desc, .lg-scene, .lg-mods, .lg-demo { display: none; }
  .lg-panel { justify-content: flex-start; padding: 32px 20px 72px; box-shadow: none; }
}
@media (max-width: 480px) {
  .lg-brand img { height: 30px; }
  .lg-brand span { font-size: 14px; }
  .lg-eyebrow { font-size: 11px; letter-spacing: .24em; }
  .lg-panel h1 { font-size: 26px; }
  .lg-sub { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-stage::after, .lg-headline em, .lg-pulse, .lg-hub, .lg-hub-ring, .lg-card, .lg-bars i, .lg-prog i, .lg-mods li, .lg-submit::after { animation: none; }
  .lg-pulse { display: none; }
  .lg-submit, .lg-feishu, .lg-form input { transition: none; }
  .lg-submit:hover { transform: none; }
}
