/* 门诊域中枢智能体平台 · 登录页
   色板与材质对齐运行大屏（assets/screen.css）：同一套深蓝底 + 青色高光，
   但本页是自适应布局（不做 1920×1080 等比缩放），小屏下左侧全息场景整块隐藏。 */

:root {
  --lg-bg: #04101F;
  --lg-bg2: #020913;
  --lg-panel: rgba(10, 32, 64, .62);
  --lg-brd: rgba(45, 168, 214, .28);
  --lg-brd-str: rgba(103, 232, 249, .62);
  --lg-ink: #E6F3FF;
  --lg-ink2: #9FB6D4;
  --lg-ink3: #5F7696;
  --lg-cyan: #2399B8;
  --lg-cyan-lt: #67E8F9;
  --lg-blue: #1689AC;
  --lg-bad: #F85149;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--lg-bg2);
  color: var(--lg-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* icons.js 产出的 .hub-icon 本来靠 components.css 定尺寸，本页没加载那套样式，
   不兜底的话带 viewBox 的 SVG 会按容器撑满 —— 错误条里的警告图标会涨成整块 */
.hub-icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}

/* ============ 背景层 ============ */
#lg-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1400px 700px at 50% -14%, rgba(35, 153, 184, .24), transparent 70%),
    radial-gradient(1000px 560px at 8% 100%, rgba(123, 94, 214, .14), transparent 70%),
    radial-gradient(1000px 560px at 96% 96%, rgba(35, 153, 184, .13), transparent 70%),
    var(--lg-bg);
  z-index: 0;
}

/* 栅格底纹 */
#lg-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 160, 200, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 160, 200, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 暗角 + 顶部光带：四角压暗后卡片与白字更「立」得住 */
#lg-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1600px 860px at 50% 34%, transparent 48%, rgba(1, 5, 14, .5) 100%),
    linear-gradient(180deg, rgba(103, 232, 249, .07), transparent 220px);
}

/* 科技感包边 + 四角角标（与大屏一致） */
.lg-frame { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

.lg-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(78, 196, 240, .22);
}

.lg-corner {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 2px solid #7FE6FA;
  opacity: .82;
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, .8));
}

.lg-corner--tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.lg-corner--tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.lg-corner--bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.lg-corner--br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

/* ============ 顶部品牌条 ============ */
.lg-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.lg-top__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1689AC, #67E8F9);
  color: #04101F;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(103, 232, 249, .42);
}

.lg-top__name { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.lg-top__name em { font-style: normal; color: var(--lg-cyan-lt); }

.lg-top__tag {
  margin-left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--lg-ink2);
  border: 1px solid var(--lg-brd);
  border-radius: 999px;
  background: rgba(10, 32, 64, .5);
}

/* ============ 主体布局 ============ */
.lg-main {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 76px 72px 54px;
  max-width: 1780px;
  margin: 0 auto;
}

/* ---- 左：全息场景 ---- */
.lg-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.lg-scene {
  width: 100%;
  max-width: 860px;
  height: auto;
  overflow: visible;
  animation: lg-in .8s ease both;
}

.lg-slogan { text-align: center; animation: lg-in .8s .1s ease both; }

.lg-slogan__main {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 7px;
  text-shadow: 0 0 22px rgba(103, 232, 249, .45);
}

.lg-slogan__sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--lg-ink2);
}

/* 场景内的浮动与流光 */
.lg-node { animation: lg-float 5.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.lg-link {
  stroke-dasharray: 5 9;
  animation: lg-flow 1.6s linear infinite;
}

.lg-hub { animation: lg-float 6.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.lg-ring {
  stroke-dasharray: 12 16;
  animation: lg-spin 7s linear infinite;
}

.lg-chip-txt {
  font-size: 13px;
  letter-spacing: .5px;
  fill: #CFEFFF;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

@keyframes lg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes lg-flow { to { stroke-dashoffset: -28; } }
@keyframes lg-spin { to { stroke-dashoffset: -280; } }

/* ---- 右：登录卡 ---- */
.lg-card {
  position: relative;
  flex: none;
  width: 440px;
  padding: 46px 44px 34px;
  border-radius: 18px;
  border: 1px solid var(--lg-brd);
  background:
    linear-gradient(160deg, rgba(16, 48, 90, .78), rgba(6, 20, 44, .88));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(103, 232, 249, .08) inset,
    0 0 60px rgba(35, 153, 184, .16);
  backdrop-filter: blur(10px);
  animation: lg-in .7s .05s ease both;
}

/* 卡片顶边流光 */
.lg-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-brd-str), transparent);
}

.lg-card.is-shake { animation: lg-shake .4s ease; }

@keyframes lg-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  45% { transform: translateX(7px); }
  70% { transform: translateX(-4px); }
}

.lg-card__logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(103, 232, 249, .5));
}

.lg-card__title {
  margin: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(103, 232, 249, .42);
}

.lg-card__sub {
  margin: 12px 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--lg-ink2);
}

.lg-card__sub i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-brd));
}

.lg-card__sub i:last-child { background: linear-gradient(90deg, var(--lg-brd), transparent); }

/* ---- 表单 ---- */
.lg-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid var(--lg-brd);
  border-radius: 8px;
  background: rgba(4, 18, 40, .72);
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.lg-field:focus-within {
  border-color: var(--lg-brd-str);
  background: rgba(6, 26, 56, .86);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, .12);
}

.lg-field.is-bad { border-color: rgba(248, 81, 73, .75); }

.lg-field__ico {
  flex: none;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: var(--lg-ink3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lg-field:focus-within .lg-field__ico { color: var(--lg-cyan-lt); }

.lg-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--lg-ink);
  font-size: 14px;
  letter-spacing: .5px;
  font-family: inherit;
}

.lg-field input::placeholder { color: var(--lg-ink3); }

/* Chrome 自动填充会把底色刷成白的，用超长过渡盖掉 */
.lg-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--lg-ink);
  transition: background-color 9999s;
}

.lg-field__eye {
  flex: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lg-ink3);
  cursor: pointer;
  border-radius: 5px;
}

.lg-field__eye:hover { color: var(--lg-cyan-lt); background: rgba(103, 232, 249, .1); }

.lg-caps {
  position: absolute;
  right: 42px;
  font-size: 11px;
  color: #D29922;
  letter-spacing: .5px;
  pointer-events: none;
}

/* ---- 行内选项 ---- */
.lg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 20px;
  font-size: 12px;
  color: var(--lg-ink2);
}

.lg-check { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }

.lg-check__box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--lg-brd);
  border-radius: 3px;
  background: rgba(4, 18, 40, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  /* 未勾选时把「✓」藏掉，勾选再显出来，省一个状态节点 */
  color: transparent;
  font-size: 10px;
  line-height: 1;
}

.lg-check.is-on .lg-check__box {
  background: var(--lg-cyan-lt);
  border-color: var(--lg-cyan-lt);
  color: #04101F;
  box-shadow: 0 0 10px rgba(103, 232, 249, .5);
}

.lg-link-txt { color: var(--lg-ink2); cursor: pointer; }
.lg-link-txt:hover { color: var(--lg-cyan-lt); }

/* ---- 错误条 ---- */
.lg-err {
  display: none;
  align-items: center;
  gap: 7px;
  margin: -6px 0 14px;
  padding: 8px 11px;
  border: 1px solid rgba(248, 81, 73, .4);
  border-radius: 6px;
  background: rgba(248, 81, 73, .1);
  color: #FF9B95;
  font-size: 12px;
  line-height: 1.5;
}

.lg-err.is-on { display: flex; }
.lg-err .hub-icon { width: 15px; height: 15px; margin-top: 2px; }

/* ---- 按钮 ---- */
.lg-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(95deg, #1272A8, #1E9ABE 55%, #35BCD8);
  color: #F2FDFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 6px;
  text-indent: 6px;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(21, 128, 170, .4);
  transition: filter .18s, transform .1s, box-shadow .18s;
}

.lg-btn:hover { filter: brightness(1.12); box-shadow: 0 10px 30px rgba(35, 170, 210, .55); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn[disabled] { cursor: default; filter: saturate(.5) brightness(.85); box-shadow: none; }

/* 按钮扫光 */
.lg-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  animation: lg-sweep 3.6s ease-in-out infinite;
}

@keyframes lg-sweep {
  0%, 62% { left: -60%; }
  92%, 100% { left: 130%; }
}

/* ---- 演示账号提示 ---- */
.lg-demo {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px dashed var(--lg-brd);
  border-radius: 7px;
  background: rgba(10, 32, 64, .4);
  font-size: 12px;
  color: var(--lg-ink2);
  line-height: 1.7;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}

.lg-demo:hover { border-color: var(--lg-brd-str); color: var(--lg-ink); }
.lg-demo b { color: var(--lg-cyan-lt); font-weight: 600; letter-spacing: .5px; }

.lg-card__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--lg-ink3);
}

/* ============ 页脚 ============ */
.lg-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--lg-ink3);
  z-index: 4;
}

/* ============ 自适应 ============ */
@media (max-width: 1280px) {
  .lg-main { padding: 76px 40px 54px; gap: 24px; }
  .lg-slogan__main { font-size: 25px; letter-spacing: 5px; }
}

@media (max-width: 1060px) {
  .lg-visual { display: none; }
  .lg-main { justify-content: center; padding: 76px 24px 54px; }
}

@media (max-height: 760px) {
  .lg-card { padding: 30px 40px 24px; }
  .lg-card__logo { width: 58px; height: 58px; margin-bottom: 10px; }
  .lg-card__title { font-size: 22px; }
  .lg-card__sub { margin: 10px 0 22px; }
  .lg-demo { margin-top: 12px; }
}

@media (max-width: 520px) {
  .lg-card { width: 100%; padding: 30px 24px 22px; }
  .lg-top { padding: 0 20px; }
  .lg-top__tag { display: none; }
}
