:root {
  color-scheme: dark;
  --sg-navy: #07111f;
  --sg-blue: #183250;
  --sg-lime: #b8f23a;
  --sg-canvas: #eef3f7;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #eef3f7;
  background: #07111f;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #07111f;
}

.hud-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(rgb(238 243 247 / 2.4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(238 243 247 / 2.4%) 1px, transparent 1px),
    radial-gradient(circle at 82% 26%, rgb(24 50 80 / 72%), transparent 39%), #07111f;
  background-size:
    40px 40px,
    40px 40px,
    auto,
    auto;
}

.hud-background span {
  position: absolute;
  width: 820px;
  aspect-ratio: 1;
  border: 1px solid rgb(184 242 58 / 16%);
  border-radius: 50%;
  animation: orbit 28s linear infinite;
}

.hud-background span:first-child {
  top: -430px;
  right: -90px;
  border-style: dashed;
}

.hud-background span:nth-child(2) {
  top: 180px;
  right: -410px;
  width: 940px;
  border-color: rgb(238 243 247 / 10%);
  animation-direction: reverse;
}

.hud-background span:last-child {
  left: -540px;
  bottom: -590px;
  width: 1060px;
  border-color: rgb(24 50 80 / 62%);
}

.topbar {
  width: min(1320px, calc(100% - 48px));
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  border-bottom: 1px solid rgb(238 243 247 / 12%);
}

.topbar img {
  width: 220px;
  height: auto;
}

.language {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9cb0c2;
  font-size: 14px;
  font-weight: 700;
}

.language select,
.field input {
  border: 1px solid #39516c;
  border-radius: 11px;
  outline: none;
  color: #eef3f7;
  background: rgb(13 27 42 / 94%);
}

.language select {
  min-height: 44px;
  padding: 8px 36px 8px 13px;
}

main {
  width: min(760px, calc(100% - 40px));
  margin: clamp(48px, 8vw, 96px) auto;
}

.panel {
  min-height: 440px;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgb(57 81 108 / 95%);
  border-radius: 24px;
  background: rgb(7 17 31 / 76%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 25%);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 14px;
  color: #b8f23a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.08;
}

.lead {
  max-width: 620px;
  margin: 22px 0 30px;
  color: #a9bbce;
  font-size: 1.08rem;
  line-height: 1.65;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #39516c;
  border-radius: 14px;
  background: #0d1b2a;
}

.status-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #07111f;
  background: #b8f23a;
  font-weight: 900;
  box-shadow: 0 0 18px rgb(184 242 58 / 35%);
}

.status-card p {
  margin: 0;
  font-weight: 720;
}

.checking-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid #39516c;
  border-radius: 4px;
  background: #0d1b2a;
}

.checking-bar span {
  display: block;
  width: 38%;
  height: 100%;
  background: #b8f23a;
  box-shadow: 0 0 16px rgb(184 242 58 / 50%);
  animation: checking 1.2s ease-in-out infinite alternate;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #d7e0e8;
  font-size: 14px;
  font-weight: 760;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 12px 14px;
  font: inherit;
}

.field input:focus {
  border-color: #6f8aa5;
  box-shadow: 0 0 0 3px rgb(111 138 165 / 10%);
}

.field input[aria-invalid='true'] {
  border-color: #ff4f68;
}

.field-error,
.notice.error {
  color: #ff8393;
}

.field-error {
  font-size: 13px;
}

.challenge {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.challenge iframe {
  width: 100%;
  height: 76px;
  border: 1px solid #39516c;
  border-radius: 12px;
  background: #07111f;
}

.challenge span {
  color: #9cb0c2;
  font-size: 13px;
}

.notice {
  margin: 18px 0 0;
  line-height: 1.5;
}

.notice.success {
  padding: 13px 15px;
  border-radius: 10px;
  color: #07111f;
  background: #b8f23a;
  font-weight: 760;
}

button {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid #b8f23a;
  border-radius: 11px;
  color: #07111f;
  background: #b8f23a;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

[hidden] {
  display: none !important;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes checking {
  from {
    transform: translateX(-20%);
  }
  to {
    transform: translateX(185%);
  }
}

@media (max-width: 620px) {
  .topbar {
    width: calc(100% - 28px);
    min-height: 78px;
  }

  .topbar img {
    width: 168px;
  }

  .language > span {
    display: none;
  }

  .language select {
    width: 74px;
    padding-right: 8px;
  }

  main {
    width: calc(100% - 28px);
    margin: 34px auto;
  }

  .panel {
    min-height: 400px;
    padding: 28px 22px;
  }
}

#mobile-login:not([hidden]) {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 10px;
  background: #b8f23a;
  color: #07111f;
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .hud-background span,
  .checking-bar span {
    animation: none;
  }
}
