:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #0b1020;
  color: #172033;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { min-height: 100dvh; overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
.gateway-shell {
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 102, 255, .26), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(21, 178, 139, .2), transparent 34%),
    linear-gradient(145deg, #0a0f1f, #141b31 55%, #0b1326);
}
.gateway-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.gateway-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.gateway-orb-a { width: 300px; height: 300px; left: -90px; top: -80px; background: rgba(95, 84, 255, .12); }
.gateway-orb-b { width: 360px; height: 360px; right: -130px; bottom: -160px; background: rgba(18, 179, 134, .1); }
.login-card {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  z-index: 1;
  overflow-y: auto;
  display: grid;
  gap: 15px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(249, 251, 255, .97);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
}
.login-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #4f6ef7, #6551d8);
  box-shadow: 0 10px 24px rgba(79, 110, 247, .28);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}
.login-heading { display: grid; gap: 5px; margin-bottom: 3px; }
.login-heading > span { color: #5e6ff0; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
h1 { margin: 0; color: #172033; font-size: 25px; letter-spacing: -.02em; }
.field { min-width: 0; display: grid; gap: 6px; color: #344159; font-size: 12px; font-weight: 700; }
.field span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field small { color: #8a95a8; font-size: 9px; font-weight: 500; }
.field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7deea;
  border-radius: 9px;
  outline: none;
  color: #172033;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus { border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79, 110, 247, .12); }
.field input::placeholder { color: #a5afbf; }
.verification-field {
  display: grid;
  gap: 6px;
  color: #344159;
  font-size: 12px;
  font-weight: 700;
}
.slider {
  position: relative;
  height: 44px;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 9px;
  color: #7c879a;
  background: #f4f6fa;
  user-select: none;
  touch-action: none;
}
.slider:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79, 110, 247, .12); }
.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #e9eeff, #ddf6ec);
}
.slider > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: 12px;
}
.slider button {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #4f6ef7, #6551d8);
  font-weight: 900;
  cursor: grab;
  touch-action: none;
}
.slider button:active { cursor: grabbing; }
.slider.verified { border-color: #8ad3b3; color: #17794f; }
.slider.verified button { background: #0b9369; cursor: default; }
#login-submit {
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #4f6ef7, #6551d8);
  box-shadow: 0 8px 20px rgba(79, 110, 247, .22);
  font-size: 13px;
  font-weight: 800;
}
#login-submit:hover:not(:disabled) { filter: brightness(1.05); }
#login-submit:disabled { cursor: wait; opacity: .62; }
.login-status { min-height: 18px; color: #b4233c; font-size: 11px; line-height: 1.45; }
.login-status[data-type="ok"] { color: #087a58; }
.login-status[data-type="notice"] { color: #87620a; }
.hidden { display: none !important; }
noscript { position: fixed; inset: auto 16px 16px; z-index: 2; color: #fff; font-size: 12px; text-align: center; }
@media (max-width: 520px) {
  .gateway-shell { padding: 12px; }
  .login-card { width: 100%; max-height: calc(100dvh - 24px); padding: 23px 19px; border-radius: 14px; }
  h1 { font-size: 22px; }
}
