:root {
  --brand: #2563eb;
  --brand-cyan: #38bdf8;
  --dark: #06111f;
  --text: #0f172a;
  --muted: #94a3b8;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 42vw);
  align-items: center;
  justify-content: stretch !important;
  padding: 48px clamp(32px, 7vw, 120px);
  overflow: auto !important;
  background-color: var(--dark) !important;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(14, 165, 233, .28), transparent 30%),
    radial-gradient(circle at 48% 82%, rgba(37, 99, 235, .22), transparent 32%),
    linear-gradient(125deg, #06101f 0%, #0b2440 48%, #06111f 100%) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif !important;
}

body::before {
  content: "DISIMA";
  position: absolute;
  left: clamp(40px, 9vw, 170px);
  top: calc(50% - 80px);
  z-index: 1;
  color: #fff;
  font-size: clamp(58px, 8vw, 126px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-shadow: 0 20px 70px rgba(14, 165, 233, .35);
}

body::after {
  content: "迪司马智造管理系统\A生产 · 质量 · 库存 · 数据";
  position: absolute;
  left: clamp(44px, 9.4vw, 178px);
  top: calc(50% + 62px);
  z-index: 1;
  white-space: pre;
  color: rgba(226, 232, 240, .88);
  font-size: clamp(16px, 1.4vw, 23px);
  line-height: 2;
  letter-spacing: .12em;
}

.login-box {
  grid-column: 2;
  justify-self: center;
  width: min(440px, 100%) !important;
  height: auto !important;
  min-height: 390px;
  margin: 0 !important;
  padding: 42px !important;
  gap: 18px !important;
  border: 1px solid rgba(148, 163, 184, .25) !important;
  border-radius: 18px !important;
  background: rgba(15, 23, 42, .86) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(20px) saturate(130%) !important;
}

.login-box h3 {
  margin: 0 0 8px !important;
  color: #fff;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .08em !important;
}

.login-box h3::after {
  content: "欢迎登录管理系统";
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
}

#loginForm { width: 100%; }

.input-group input {
  width: 100% !important;
  height: 52px !important;
  margin: 0 0 16px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(148, 163, 184, .35) !important;
  border-radius: 10px !important;
  outline: none;
  color: var(--text) !important;
  font-size: 15px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s;
}

.input-group input::placeholder { color: #94a3b8; }

.input-group input:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18) !important;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

.login-box button {
  width: 100%;
  height: 50px;
  margin-top: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  background: linear-gradient(135deg, var(--brand), #0284c7) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.login-box button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .36);
}

.login-box button:active { transform: translateY(0); }

footer {
  bottom: 22px !important;
  color: rgba(203, 213, 225, .72) !important;
  font-size: 12px !important;
}

footer a { color: rgba(226, 232, 240, .82) !important; }

@media (max-width: 900px) {
  body {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    padding: 56px 24px 100px;
  }

  body::before,
  body::after { display: none; }

  .login-box { width: min(440px, 100%) !important; }
}

@media (max-width: 520px) {
  body { padding: 32px 16px 100px; }

  .login-box {
    min-height: 0;
    padding: 30px 24px !important;
    border-radius: 14px !important;
  }

  footer {
    padding: 0 18px;
    line-height: 1.8;
  }
}
