:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { color: #182230; background: #102348; }
button, input { font: inherit; }

.login-page {
  position: relative;
  min-height: 100vh;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(59,130,246,.32), transparent 31%),
    radial-gradient(circle at 84% 82%, rgba(20,184,166,.22), transparent 32%),
    linear-gradient(135deg, #0c1733 0%, #163665 56%, #15566a 100%);
}
.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 38px 40px 32px;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(28,50,78,.12), 0 3px 10px rgba(28,50,78,.04);
}
.login-header {
  display: flex;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #edf1f6;
}
.login-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-right: 12px;
  color: #fff;
  background: #2563eb;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
  font-size: 22px;
  font-weight: 800;
  line-height: 44px;
  text-align: center;
}
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { color: #172033; font-size: 18px; line-height: 1.35; }
.login-brand span { margin-top: 2px; color: #8a98aa; font-size: 11px; }
.login-title { margin: 27px 0 25px; }
.login-title h1 { margin: 0; color: #182230; font-size: 25px; font-weight: 700; line-height: 1.4; }
.login-title p { margin: 6px 0 0; color: #8a98aa; font-size: 12px; line-height: 1.6; }
.form-field { margin-bottom: 17px; display: block; }
.form-field > span { margin-bottom: 7px; display: block; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.5; }
.form-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: #182230;
  background: #f8fafc;
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  outline: none;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form-field input::placeholder { color: #a7b1c0; }
.form-field input:hover { border-color: #b8c4d3; }
.form-field input:focus { background: #fff; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
.login-button {
  width: 100%;
  height: 46px;
  margin-top: 3px;
  color: #fff;
  background: #2563eb;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(37,99,235,.21);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.login-button:hover { background: #1d4ed8; box-shadow: 0 10px 22px rgba(37,99,235,.27); transform: translateY(-1px); }
.login-button:active { transform: translateY(0); }
.login-button:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 2px; }
.login-help { margin: 21px 0 0; color: #94a3b8; font-size: 10px; text-align: center; }
.login-help i { width: 6px; height: 6px; margin-right: 7px; display: inline-block; background: #22c55e; border-radius: 50%; vertical-align: 1px; }
.login-page > footer { position: absolute; bottom: 20px; left: 0; width: 100%; color: rgba(226,232,240,.66); font-size: 10px; text-align: center; }

@media (max-height: 620px) {
  .login-page { min-height: 620px; }
}
@media (max-width: 520px) {
  .login-page { padding: 22px 14px; }
  .login-card { padding: 30px 24px 27px; border-radius: 15px; }
  .login-page > footer { bottom: 9px; }
}
