/* ==========================================================================
   独立登录页（overlay）—— 纯文字 + 纯色，零图片
   由 /login.js 注入，覆盖 SPARK SPA 自带的登录组件。
   ========================================================================== */

html, body { background: #0b1220 !important; }

#lgx-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #16213a 0%, rgba(11, 18, 32, 0) 60%),
    #0b1220;
  font: 14px/1.5 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e5e7eb;
}
#lgx-overlay * { box-sizing: border-box; }

.lgx-card {
  width: 100%;
  max-width: 400px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}

.lgx-brand {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0 0 4px;
  color: #f3f4f6;
}
.lgx-sub {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 26px;
}

.lgx-field { margin-bottom: 14px; }
.lgx-label {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 6px;
}
.lgx-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: #0b1220;
  border: 1px solid #243044;
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lgx-input::placeholder { color: #4b5563; }
.lgx-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .22);
}

.lgx-btn {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s;
}
.lgx-btn:hover { background: #4338ca; }
.lgx-btn:disabled { background: #374151; cursor: not-allowed; }

.lgx-err {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: #f87171;
  text-align: center;
}
.lgx-tip {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #1f2937;
  font-size: 11px;
  color: #4b5563;
  text-align: center;
  line-height: 1.7;
}
.lgx-link {
  background: none;
  border: 0;
  padding: 0;
  color: #818cf8;
  font-size: 11px;
  cursor: pointer;
}
.lgx-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .lgx-card { padding: 28px 20px 22px; }
}
