/* ============================================================
 * 车辆管理系统 · 服务端模式附加样式
 * 只做三件事：启动遮罩、登录层、右上角用户按钮
 * ============================================================ */

/* ---- 启动中：盖住整页，避免闪出空壳 ---- */
html.booting .app,
html.login .app { display: none !important; }

html.booting::before {
  content: "";
  position: fixed; left: 50%; top: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 2.5px solid #d7deea; border-top-color: #2563eb;
  border-radius: 50%; animation: lgspin .7s linear infinite; z-index: 9501;
}
html.booting::after {
  content: "";
  position: fixed; inset: 0; background: #f4f6fa; z-index: 9500;
}
@keyframes lgspin { to { transform: rotate(360deg); } }

/* ---- 登录层 ---- */
#lgWrap {
  position: fixed; inset: 0; z-index: 9000; display: none;
  align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(1100px 560px at 50% -12%, #e6efff 0%, #f4f6fa 55%, #eef1f6 100%);
}
html.login #lgWrap { display: flex; }

.lg-card {
  width: 100%; max-width: 392px; background: #fff;
  border: 1px solid #e4e8f0; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .10);
  padding: 30px 26px 22px;
}
.lg-logo {
  width: 54px; height: 54px; border-radius: 15px; background: #eff4ff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.lg-logo svg { width: 29px; height: 29px; stroke: #2563eb; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-card h2 { font-size: 19px; font-weight: 700; text-align: center; color: #1f2937; }
.lg-sub { text-align: center; color: #6b7280; font-size: 12.5px; margin: 6px 0 20px; }
.lg-field { margin-bottom: 13px; }
.lg-field label { display: block; font-size: 12.5px; color: #6b7280; margin-bottom: 6px; font-weight: 600; }
.lg-field input {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid #e4e8f0; border-radius: 10px;
  background: #fafbfd; font-size: 14px; color: #1f2937; transition: .15s;
}
.lg-field input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); outline: none; }
.lg-err {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 9px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px; line-height: 1.5;
}
.lg-btn {
  width: 100%; height: 44px; border-radius: 10px; background: #2563eb; color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 2px; transition: .15s; border: none; cursor: pointer;
}
.lg-btn:hover { background: #1d4ed8; }
.lg-btn:disabled { opacity: .6; cursor: not-allowed; }
.lg-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: #9aa3b2; line-height: 1.8; }
.lg-foot a { color: #64748b; text-decoration: none; }

/* ---- 右上角用户按钮 ---- */
#btnUser { max-width: 158px; }
#btnUser svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#btnUser span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  #btnUser { max-width: 92px; }
  .lg-card { padding: 24px 18px 18px; }
}
