/* ============================================================
   苜星能源运维管理平台 · 登录页
   ============================================================ */
:root {
  --bg: #f1f5f8;
  --panel: #ffffff;
  --text: #122633;
  --text-2: #576b7b;
  --text-3: #8a99a6;
  --line: #dce6ed;
  --accent: #0e9384;
  --accent-2: #2dd4bf;
  --rail: #071b27;
  --shadow: 0 24px 70px rgba(13, 42, 60, .14);
  --font: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #07131c;
  --panel: #0d1f2b;
  --text: #e8f2f7;
  --text-2: #a2b4c2;
  --text-3: #6f8899;
  --line: #1c3545;
  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); font-size: 13px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(45,212,191,.25); }

.login-page { display: grid; grid-template-columns: 1.13fr .87fr; height: 100vh; }

/* 左侧品牌区 */
.login-visual {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 30px 40px 24px; color: #e8f4f8;
  background:
    radial-gradient(900px 560px at 72% 6%, rgba(45, 212, 191, .16), transparent 60%),
    radial-gradient(760px 520px at 10% 96%, rgba(37, 99, 235, .18), transparent 65%),
    linear-gradient(150deg, #08202d 0%, #071923 58%, #06141d 100%);
}
.login-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 45% 40%, #000 30%, transparent 76%);
}
.login-visual::after {
  content: "苜"; position: absolute; right: -30px; bottom: -100px; font-size: 420px; font-weight: 800;
  color: rgba(255,255,255,.018); line-height: 1; pointer-events: none;
}
.lv-glow { position: absolute; width: 360px; height: 360px; right: 6%; top: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.13), transparent 64%); filter: blur(2px); pointer-events: none; }
.lv-top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 2; }
.brand-mark {
  width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2dd4bf, #0e9384 55%, #2563eb); color: #04221f;
  font-size: 19px; font-weight: 800; box-shadow: 0 8px 24px rgba(45,212,191,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-copy b { display: block; font-size: 15px; letter-spacing: .8px; color: #f4fbfd; }
.brand-copy span { display: block; font-size: 8px; letter-spacing: 2.3px; color: #6f93a6; margin-top: 2px; }
.brand-tag { margin-left: auto; font-size: 9px; color: #88a9ba; padding: 4px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; }
.lv-copy { position: relative; z-index: 2; margin-top: clamp(48px, 9vh, 92px); max-width: 630px; }
.eyebrow { font-size: 9px; letter-spacing: 2.4px; color: #7fa2b4; }
.lv-copy .eyebrow { color: #59b9b1; }
.lv-copy h1 { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.32; font-weight: 650; letter-spacing: -.7px; margin-top: 17px; color: #f0f8fb; }
.lv-copy h1 em { font-style: normal; color: #5eead4; text-shadow: 0 0 28px rgba(45,212,191,.25); }
.lv-copy > p { margin-top: 18px; font-size: 12px; line-height: 1.9; color: #91a9b8; max-width: 500px; }
.lv-stats { display: flex; gap: clamp(24px, 3vw, 48px); margin-top: 31px; }
.lv-stats > div { position: relative; padding-left: 12px; }
.lv-stats > div::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(#2dd4bf, rgba(45,212,191,.1)); }
.lv-stats b { display: block; font-family: var(--num); font-size: 27px; font-weight: 600; letter-spacing: -.5px; color: #eaf8fb; }
.lv-stats span { display: block; font-size: 9px; color: #7898a9; margin-top: 2px; }
.lv-network { position: relative; z-index: 2; flex: 1 1 auto; display: flex; align-items: flex-end; min-height: 170px; margin-top: 10px; }
.lv-network svg { width: 100%; height: auto; max-height: 250px; display: block; opacity: .92; }
.grid-lines path { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.wire path { fill: none; stroke: rgba(126, 175, 195, .24); stroke-width: 1.2; }
.pulse path { fill: none; stroke: url(#flow); stroke-width: 1.8; stroke-dasharray: 120 620; animation: dash 6s linear infinite; }
.pulse path:nth-child(2) { animation-delay: -2.4s; }
@keyframes dash { to { stroke-dashoffset: -740; } }
.nodes circle:last-of-type { fill: #2dd4bf; filter: drop-shadow(0 0 6px rgba(45,212,191,.8)); }
.labels text { fill: #7fa1b2; font-size: 8.5px; font-family: var(--font); letter-spacing: .4px; }
.lv-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 9px; color: #6f8fa1; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45,212,191,.11); }
.dot-sep { width: 1px; height: 9px; background: rgba(255,255,255,.12); margin: 0 2px; }
.lv-ver { margin-left: auto; font-family: var(--num); font-size: 8.5px; color: #58788a; }

/* 右侧登录区 */
.login-panel {
  display: flex; flex-direction: column; padding: 26px 42px 18px;
  background:
    radial-gradient(620px 400px at 100% 0%, rgba(14,147,132,.05), transparent 60%),
    var(--bg);
  position: relative;
}
.lp-top { display: flex; align-items: center; justify-content: space-between; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: var(--text-3); padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.lp-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(14,147,132,.1); }
.theme-btn { width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: grid; place-items: center; color: var(--text-3); }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 16px; height: 16px; }
.login-card { width: min(382px, 100%); margin: auto; }
.login-card .eyebrow { color: var(--accent); font-size: 8.5px; }
.login-card h2 { font-size: 30px; font-weight: 650; letter-spacing: -.6px; margin-top: 7px; }
.login-sub { font-size: 10.5px; color: var(--text-3); margin-top: 7px; }
.login-sub b { color: var(--text-2); font-family: var(--num); }
.user-list { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.user-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--panel); cursor: pointer; transition: all .15s; position: relative;
}
.user-item:hover { border-color: var(--line-strong, #c8d5df); }
.user-item.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,147,132,.08); }
.user-item.active::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.avatar { width: 33px; height: 33px; flex: 0 0 33px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--av), color-mix(in srgb, var(--av) 60%, #0a2b3a)); color: #fff; font-size: 12px; font-weight: 600; }
.user-meta { min-width: 0; }
.user-meta b { display: block; font-size: 11px; font-weight: 600; }
.user-meta span { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 1px; }
.user-role { margin-left: auto; font-size: 8px; color: var(--text-3); padding: 2px 5px; border-radius: 4px; background: rgba(14,147,132,.07); margin-right: 12px; }
.login-field { display: block; position: relative; margin-top: 15px; }
.login-field > span { display: block; font-size: 9px; color: var(--text-3); margin-bottom: 5px; }
.login-field input {
  width: 100%; height: 42px; padding: 0 38px 0 12px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--panel); outline: 0; font-size: 12px; transition: border-color .15s, box-shadow .15s;
}
.login-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,147,132,.08); }
.login-field input::placeholder { color: var(--text-3); }
.eye-btn { position: absolute; right: 8px; bottom: 7px; width: 28px; height: 28px; border: 0; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.eye-btn:hover { color: var(--accent); }
.eye-btn svg { width: 16px; height: 16px; }
.login-error { min-height: 17px; font-size: 9px; color: #c2415d; padding: 4px 0 0; }
.login-btn {
  width: 100%; height: 43px; border: 0; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 600;
  background: linear-gradient(100deg, #0e9384, #0b7a6f); box-shadow: 0 8px 20px rgba(14,147,132,.23);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(14,147,132,.3); }
.login-btn span { font-size: 15px; font-weight: 400; }
.quick-btn { width: 100%; height: 36px; margin-top: 9px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--text-3); font-size: 10px; }
.quick-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(14,147,132,.04); }
.login-note { display: flex; gap: 7px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 8.5px; line-height: 1.6; }
.login-note svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--accent); margin-top: 1px; }
.lp-foot { display: flex; gap: 12px; align-items: center; font-size: 8.5px; color: var(--text-3); padding-top: 14px; }
.lp-foot a { margin-left: auto; color: var(--accent); }
@media (max-height: 820px) and (min-width: 901px) {
  .lv-copy { margin-top: 34px; }
  .lv-copy h1 { font-size: clamp(29px, 2.75vw, 39px); line-height: 1.28; margin-top: 12px; }
  .lv-copy > p { font-size: 10.5px; line-height: 1.75; margin-top: 12px; max-width: 470px; }
  .lv-stats { margin-top: 19px; gap: 26px; }
  .lv-stats b { font-size: 23px; }
  .lv-network { min-height: 130px; }
  .lv-network svg { max-height: 175px; }
}
@media (max-width: 1120px) {
  .login-page { grid-template-columns: 1fr 1fr; }
  .login-visual { padding: 26px 30px 20px; }
  .lv-copy h1 { font-size: 34px; }
  .lv-stats { gap: 24px; }
  .login-panel { padding: 24px 30px 16px; }
}
@media (max-width: 900px) {
  body { overflow-y: auto; }
  .login-page { display: block; height: auto; min-height: 100vh; }
  .login-visual { min-height: 360px; padding: 22px 24px 18px; }
  .lv-copy { margin-top: 40px; }
  .lv-copy h1 { font-size: 31px; }
  .lv-copy > p { font-size: 11px; max-width: 520px; }
  .lv-stats { margin-top: 22px; }
  .lv-network, .lv-foot { display: none; }
  .login-panel { min-height: calc(100vh - 360px); padding: 26px 24px 20px; }
  .login-card { margin: 8px auto 20px; }
  .lp-foot { margin-top: auto; }
}
@media (max-width: 520px) {
  .login-visual { min-height: 292px; }
  .lv-copy { margin-top: 28px; }
  .lv-copy h1 { font-size: 26px; }
  .lv-copy > p { display: none; }
  .lv-stats { gap: 20px; }
  .lv-stats b { font-size: 23px; }
  .brand-tag { display: none; }
  .login-card h2 { font-size: 26px; }
  .user-role { display: none; }
}
