:root {
  color-scheme: light;
  --ink: #16203a;
  --soft: #61729b;
  --muted: #8b9ab8;
  --line: rgba(103, 132, 186, 0.22);
  --blue: #4f8df6;
  --violet: #7d7bf5;
  --red: #d73055;
  --shadow: 0 28px 70px rgba(61, 94, 156, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, "HarmonyOS Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(140, 190, 255, 0.55), transparent 62%),
    radial-gradient(760px 460px at 100% 6%, rgba(180, 170, 255, 0.38), transparent 60%),
    linear-gradient(160deg, #f7fbff 0%, #e8f2ff 54%, #eef6ff 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: rgba(110, 170, 255, 0.6);
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -90px;
  background: rgba(160, 150, 255, 0.5);
  animation-duration: 30s;
  animation-delay: -8s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(26px, -30px, 0) scale(1.1);
  }
}

.gate-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.gate-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  padding: 32px 30px 26px;
  box-shadow: var(--shadow);
  animation: rise 0.5s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(140deg, var(--blue), var(--violet));
  box-shadow: 0 10px 24px rgba(79, 141, 246, 0.36);
}

.gate-brand h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}


.gate-hint {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--soft);
}

.gate-hint code {
  padding: 1px 5px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  background: rgba(103, 132, 186, 0.12);
  border-radius: 5px;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field input {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: rgba(248, 250, 253, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  background: #fff;
  border-color: rgba(79, 141, 246, 0.7);
  box-shadow: 0 0 0 4px rgba(79, 141, 246, 0.15);
}

.field input.invalid {
  border-color: #e35a6b;
  box-shadow: 0 0 0 4px rgba(215, 48, 70, 0.12);
}

.gate-btn {
  width: 100%;
  padding: 13px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(79, 141, 246, 0.34);
  transition: transform 0.14s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}

.gate-btn:hover:not(:disabled) {
  box-shadow: 0 14px 30px rgba(79, 141, 246, 0.44);
  transform: translateY(-1px);
}

.gate-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.gate-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.gate-msg {
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--red);
  background: rgba(215, 48, 85, 0.08);
  border: 1px solid rgba(215, 48, 85, 0.22);
  border-radius: 10px;
  animation: rise 0.3s var(--ease) both;
}

.gate-msg.ok {
  color: #0a7f5c;
  background: rgba(10, 127, 92, 0.08);
  border-color: rgba(10, 127, 92, 0.22);
}

.gate-foot {
  margin: 18px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

