/* 登录页：全屏背景 + 中间玻璃卡片 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.lx {
  min-height: 100vh; display: flex; flex-direction: column; color: #0f1e3d; background: #0a1f4d;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lx-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.lx-scene, .lx-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-photo { background-size: cover; background-position: center; }
.lx-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(10, 31, 77, .18), transparent 70%); }

/* 顶部：Logo + 标语 */
.lx-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 44px 64px 0; }
.lx-logo { height: 36px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25)); }
.lx-tag { color: #fff; font-size: 19px; font-weight: 600; letter-spacing: .06em; padding-bottom: 10px; position: relative; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); display: flex; align-items: center; gap: 12px; }
.lx-tag i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.lx-tag::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7) 20%, rgba(255, 255, 255, .7) 80%, transparent); }

/* 卡片 */
.lx-main { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.lx-card {
  position: relative; width: 100%; max-width: 480px; padding: 52px 48px 44px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(244, 248, 255, .9));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 80px -20px rgba(5, 20, 60, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.lx-peak { position: absolute; right: -6px; top: 26px; width: 190px; height: 104px; pointer-events: none; }
.lx-card h1 { position: relative; font-size: 38px; line-height: 1.15; font-weight: 800; color: #0d2a5c; letter-spacing: .04em; }
.lx-sub { position: relative; margin-top: 14px; font-size: 18px; color: #3b4a66; }
.lx-error { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: #fff1f0; color: #c4320a; font-size: 14px; }
.lx-error svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
form#loginForm { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.lx-input { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border-radius: 10px; background: rgba(255, 255, 255, .9); border: 1px solid #dbe3ef; transition: border-color .15s, box-shadow .15s; }
.lx-input:focus-within { border-color: #2f6fdc; box-shadow: 0 0 0 3px rgba(47, 111, 220, .15); background: #fff; }
.lx-input.is-error { border-color: #e5484d; }
.lx-input > svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: #5a6a85; stroke-width: 1.7; }
.lx-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: #0f1e3d; }
.lx-input input::placeholder { color: #9aa6b8; }
.lx-eye { border: 0; background: transparent; cursor: pointer; padding: 6px; display: grid; place-items: center; color: #5a6a85; border-radius: 6px; }
.lx-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lx-eye.on { color: #2f6fdc; }
.lx-caps { margin-top: -8px; font-style: normal; font-size: 13px; color: #b54708; }
.lx-row { display: flex; align-items: center; gap: 22px; font-size: 16px; color: #2c3a55; margin-top: 2px; }
.lx-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.lx-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.lx-check span { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #b8c3d4; background: #fff; display: grid; place-items: center; transition: all .15s; }
.lx-check input:checked + span { background: #2f6fdc; border-color: #2f6fdc; }
.lx-check input:checked + span::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.lx-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 111, 220, .25); }
.lx-forgot { margin-left: auto; position: relative; }
.lx-forgot summary { list-style: none; cursor: pointer; color: #2f6fdc; }
.lx-forgot summary::-webkit-details-marker { display: none; }
.lx-forgot div { position: absolute; right: 0; top: 28px; width: 250px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(10, 31, 77, .18); font-size: 13.5px; color: #3b4a66; line-height: 1.6; z-index: 2; }
.lx-submit { margin-top: 10px; height: 60px; border: 0; border-radius: 10px; cursor: pointer; color: #fff; font: inherit; font-size: 21px; font-weight: 600; letter-spacing: .3em;
  background: linear-gradient(180deg, #3b82f0, #1f5fd1); box-shadow: 0 12px 24px -10px rgba(31, 95, 209, .8), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .1s, filter .15s; }
.lx-submit:hover { filter: brightness(1.06); }
.lx-submit:active { transform: translateY(1px); }
.lx-submit.loading { opacity: .8; cursor: progress; letter-spacing: .1em; }
.lx-demo { position: relative; margin-top: 22px; padding-top: 16px; border-top: 1px dashed #d4dceb; }
.lx-demo-title { font-size: 13px; color: #5a6a85; margin-bottom: 8px; }
.lx-demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lx-demo-grid button { border: 1px solid #dbe3ef; background: #fff; border-radius: 8px; padding: 6px 4px; cursor: pointer; font: inherit; text-align: center; }
.lx-demo-grid b { display: block; font-size: 13px; color: #0f1e3d; }
.lx-demo-grid span { display: block; font-size: 11px; color: #8492a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-demo-grid button:hover { border-color: #2f6fdc; }

/* 底部备案号 */
.lx-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 16px 28px; }
.lx-foot i { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55)); }
.lx-foot i:last-child { background: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent); }
.lx-foot a { color: rgba(255, 255, 255, .92); font-size: 16px; text-decoration: none; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.lx-foot a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .lx-top { padding: 22px 18px 0; }
  .lx-logo { height: 28px; }
  .lx-tag { display: none; }
  .lx-card { padding: 36px 22px 28px; border-radius: 14px; }
  .lx-card h1 { font-size: 30px; }
  .lx-sub { font-size: 15px; }
  .lx-peak { width: 140px; top: 18px; }
  .lx-row { gap: 14px; font-size: 14.5px; flex-wrap: wrap; }
  .lx-demo-grid { grid-template-columns: repeat(2, 1fr); }
  .lx-foot i { width: 40px; }
  .lx-foot a { font-size: 13px; }
}
/* 用照片做背景时：底部压暗一点，保证备案号看得清 */
.lx-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(10, 31, 77, 0), rgba(10, 31, 77, .55)); }
@media (max-width: 760px) { .lx-photo { background-position: 32% center; } }
