:root {
  --ink: #050505;
  --ink-soft: #0d0d0d;
  --paper: #f2f2f0;
  --white: #ffffff;
  --line-dark: rgba(255, 255, 255, 0.15);
  --line-light: rgba(0, 0, 0, 0.14);
  --muted-dark: #8a8a86;
  --muted-light: #6f6f6b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family:
    var(--font-geist-sans),
    'SF Pro Display',
    'PingFang SC',
    'Noto Sans CJK SC',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.login-shell {
  --access-panel-width: max(430px, 33.5vw);
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.topbar {
  height: 76px;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--access-panel-width);
  align-items: center;
  padding: 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.wordmark {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: clamp(24px, 3.2vw, 58px);
  text-decoration: none;
}

.brand-logo {
  width: 41px;
  height: 41px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: #000;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wordmark-copy {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.wordmark-copy strong {
  color: #fff;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.2em;
}

.wordmark-copy span {
  color: #858581;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.topbar-actions {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 clamp(18px, 2.4vw, 36px);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--paper);
  color: #111;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.version-label {
  color: #858581;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.theme-toggle {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #bdbdb8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-toggle button {
  min-width: 52px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f5f5b;
  cursor: pointer;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.theme-toggle button b {
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.06em;
}

.theme-toggle button.is-active {
  background: #080808;
  color: #fff;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.24);
}

.theme-toggle button:not(.is-active):hover {
  background: #ececea;
  color: #080808;
  transform: translateY(-1px);
}

.theme-swatch {
  width: 9px;
  height: 9px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.theme-swatch--light {
  border: 1px solid currentColor;
  background: #fff;
}

.theme-swatch--dark {
  border: 1px solid currentColor;
  background: #050505;
}

.status-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent);
}

.language-toggle {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #bdbdb8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.language-toggle button {
  min-width: 46px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f5f5b;
  cursor: pointer;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.language-toggle button.is-active {
  background: #080808;
  color: #fff;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.24);
}

.language-toggle button:not(.is-active):hover {
  background: #ececea;
  color: #080808;
  transform: translateY(-1px);
}

.experience-grid {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--access-panel-width);
}

.brand-stage {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line-dark);
  background: #000;
}

.orbital-network {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #02070f;
  transition: background-color 0.55s ease;
}

.orbital-network::after {
  content: '';
  position: absolute;
  z-index: 3;
  top: -25%;
  bottom: -25%;
  left: -42%;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(121, 220, 255, 0.07),
    rgba(255, 255, 255, 0.12),
    rgba(121, 220, 255, 0.05),
    transparent
  );
  filter: blur(10px);
  transform: skewX(-11deg);
  animation: orbitalScan 8.5s ease-in-out infinite;
}

.earth-source {
  position: absolute;
  z-index: 0;
  inset: -1.5%;
  background-position: center 47%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.055);
  animation: earthOrbit 19s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.8, 0.27, 1),
    filter 0.7s ease;
  will-change: opacity, transform;
}

.earth-source--day {
  background-image: url('login-assets-v80/earth.jpg');
  filter: saturate(1.08) contrast(1.06) brightness(0.9);
  opacity: 1;
}

.earth-source--night {
  background-image: url('login-assets-v80/earth.jpg');
  filter: grayscale(1) contrast(1.22) brightness(0.5);
  opacity: 0;
}

.earth-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 8, 24, 0.46) 0%,
      rgba(0, 8, 22, 0.025) 43%,
      rgba(0, 8, 22, 0.08) 74%,
      rgba(0, 8, 22, 0.43) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 5, 18, 0.47) 0%,
      rgba(0, 6, 18, 0.08) 20%,
      transparent 46%,
      rgba(0, 6, 18, 0.08) 69%,
      rgba(0, 6, 18, 0.88) 100%
    );
  transition: background 0.7s ease;
}

.earth-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.orbital-label {
  min-height: 34px;
  position: absolute;
  z-index: 8;
  top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #cfcfcb;
  backdrop-filter: blur(12px);
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.orbital-label--left {
  left: clamp(26px, 3.6vw, 56px);
}
.orbital-label--right {
  right: clamp(26px, 3.6vw, 56px);
  color: #9a9a96;
}

.earth-metrics {
  position: absolute;
  z-index: 9;
  top: 78px;
  right: clamp(26px, 3.6vw, 56px);
  display: grid;
  gap: 9px;
  justify-items: end;
  color: rgba(203, 220, 232, 0.58);
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.22em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.earth-metrics b {
  margin-left: 8px;
  color: rgba(230, 241, 248, 0.82);
  font-weight: 500;
}

.route-map {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.orbit-line,
.route-thread {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.orbit-line {
  stroke: rgba(158, 224, 249, 0.25);
  stroke-width: 0.8;
  stroke-dasharray: 3 10;
  animation: orbitTrace 28s linear infinite;
}

.orbit-line--two {
  stroke-dasharray: 1 7;
  opacity: 0.78;
  animation-duration: 23s;
  animation-direction: reverse;
}
.orbit-line--three {
  opacity: 0.58;
  animation-duration: 31s;
}
.orbit-line--four {
  opacity: 0.42;
  stroke-dasharray: 2 13;
  animation-duration: 36s;
  animation-direction: reverse;
}

.route-thread {
  stroke: url(#routeSignal);
  stroke-width: 1.05;
  stroke-dasharray: 4 7;
  opacity: 0.86;
  filter: url(#routeGlow);
  animation: threadFlow 3.8s linear infinite;
}

.route-thread--major {
  stroke-width: 1.35;
  stroke-dasharray: 6 7;
  opacity: 0.98;
}
.route-group:nth-of-type(even) .route-thread {
  animation-direction: reverse;
}

.signal-particle {
  fill: #c8f4ff;
  opacity: 1;
}

.signal-particle--ghost {
  fill: #9ce9ff;
  opacity: 0.68;
}
.signal-particle--micro {
  fill: #fff;
  opacity: 0.5;
}

.message-packet {
  fill: #f8fdff;
  stroke: rgba(139, 229, 255, 0.8);
  stroke-width: 0.7;
}

.orbit-satellite {
  filter: url(#nodeGlow);
  opacity: 0.9;
}
.orbit-satellite--small {
  opacity: 0.62;
}
.satellite-panel {
  fill: rgba(218, 244, 255, 0.72);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 0.6;
}
.satellite-body {
  fill: #fff;
  stroke: rgba(105, 203, 242, 0.9);
  stroke-width: 0.8;
}

.origin-wave {
  fill: none;
  stroke: rgba(164, 235, 255, 0.7);
  stroke-width: 0.8;
  transform-origin: center;
  animation: originWave 2.7s ease-out infinite;
}

.origin-wave--two {
  animation-delay: -0.9s;
}
.origin-wave--three {
  animation-delay: -1.8s;
}
.origin-ring {
  fill: rgba(0, 10, 25, 0.68);
  stroke: #b9f1ff;
  stroke-width: 1.2;
}
.origin-core {
  fill: #fff;
  animation: originPulse 1.15s ease-in-out infinite alternate;
}

.origin-node text,
.region-node text {
  fill: #fff;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 8px;
  font-weight: 520;
  letter-spacing: 0.08em;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.88);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.origin-node text {
  font-size: 8.5px;
  font-weight: 650;
}
.origin-node__status {
  fill: #87daf3 !important;
  font-size: 6px !important;
  letter-spacing: 0.14em !important;
}

.region-node__ring {
  fill: rgba(0, 0, 0, 0.36);
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.region-node__core {
  fill: #d6f7ff;
  filter: url(#nodeGlow);
  animation: nodeBlink 1.9s ease-in-out infinite alternate;
}
.region-node:nth-of-type(2n) .region-node__core {
  animation-delay: -0.7s;
}

.region-node__index {
  fill: #858581 !important;
  font-size: 6px !important;
  font-weight: 450 !important;
}

.earth-copy {
  position: absolute;
  z-index: 8;
  left: clamp(28px, 3.7vw, 58px);
  bottom: 154px;
}

.earth-copy p {
  margin: 0 0 13px;
  color: #b2b2ae;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.earth-copy p::before {
  content: '';
  width: 24px;
  height: 1px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  background: #fff;
}

.earth-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 3.8vw, 62px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.88);
}

.route-summary {
  width: min(320px, 31%);
  min-height: 66px;
  position: absolute;
  z-index: 8;
  right: clamp(28px, 3.7vw, 58px);
  bottom: 160px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(14px);
}

.route-summary__pulse {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.route-summary__pulse i {
  width: 2px;
  height: 8px;
  background: #fff;
  animation: signalWave 1.25s ease-in-out infinite alternate;
}

.route-summary__pulse i:nth-child(2) {
  height: 18px;
  animation-delay: -0.7s;
}
.route-summary__pulse i:nth-child(3) {
  height: 24px;
  animation-delay: -0.35s;
}
.route-summary__pulse i:nth-child(4) {
  height: 12px;
  animation-delay: -0.9s;
}

.route-summary span,
.route-summary strong {
  display: block;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.09em;
}

.route-summary span {
  color: #888884;
  font-size: 7px;
}
.route-summary strong {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 8px;
  font-weight: 520;
}
.route-summary strong b {
  min-width: 0;
  overflow: hidden;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-summary strong i {
  color: #91e7ff;
  font-size: 10px;
  font-style: normal;
}
.route-summary strong b:last-child {
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.route-summary strong b.is-changing {
  opacity: 0.2;
  transform: translateY(3px);
}

.earth-footer {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.destination-strip {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(28px, 3.7vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
}

.destination-strip > span {
  flex: 0 0 auto;
  color: #a8a8a4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.destination-strip > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.destination-strip b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f1f1ee;
  font-size: clamp(9px, 0.52vw, 10px);
  font-weight: 680;
  letter-spacing: 0.045em;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
}

.destination-strip b::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
}

.earth-telemetry {
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 clamp(28px, 3.7vw, 58px);
}

.earth-telemetry > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
}

.earth-telemetry > div + div {
  padding-left: 24px;
}
.earth-telemetry > div:last-child {
  border-right: 0;
}
.earth-telemetry span {
  color: #656561;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.earth-telemetry strong {
  color: #d4d4d0;
  font-size: 8px;
  font-weight: 520;
  letter-spacing: 0.09em;
}
.earth-telemetry .status-dot {
  margin-right: 8px;
}

.access-panel {
  min-height: 760px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.026) 1px, transparent 1px), var(--paper);
  background-size: 52px 52px;
  color: #0a0a0a;
  transition:
    background-color 0.28s ease,
    color 0.28s ease;
}

.panel-topline {
  position: absolute;
  top: 28px;
  right: clamp(30px, 3vw, 54px);
  left: clamp(30px, 3vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #92928e;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.panel-content {
  width: min(100%, 520px);
  margin: auto;
  padding: 78px clamp(34px, 3.8vw, 64px) 84px;
}

.panel-heading {
  margin-bottom: 30px;
}
.panel-heading--center {
  text-align: center;
}

.panel-kicker {
  margin: 0 0 19px;
  color: #777773;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.panel-kicker::after {
  content: '';
  width: 36px;
  height: 1px;
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  background: #c9c9c5;
}

.panel-heading--center .panel-kicker::after,
.completion .panel-kicker::after {
  display: none;
}

.panel-heading h2,
.completion h2 {
  margin: 0 0 12px;
  color: #080808;
  font-size: clamp(38px, 3vw, 48px);
  font-weight: 540;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.panel-heading > p:last-child,
.completion > p {
  margin: 0;
  color: #747470;
  font-size: 12px;
  line-height: 1.7;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: #4f4f4b;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
}

.field-label:not(:first-child) {
  margin-top: 18px;
}

.field-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  border: 1px solid #c8c8c4;
  background: rgba(255, 255, 255, 0.72);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.field-wrap:focus-within {
  border-color: #111;
  background: #fff;
}

.field-wrap input {
  min-width: 0;
  height: 54px;
  flex: 1;
  padding: 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.field-wrap input::placeholder {
  color: #777773;
  opacity: 1;
}

.field-wrap > span {
  min-width: 78px;
  padding: 0 15px;
  color: #50504c;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-align: right;
}

.login-options {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #555551;
  cursor: pointer;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.remember-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.remember-option > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1.5px solid #8d8d88;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.045);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.remember-option:hover > span {
  border-color: #050505;
  transform: translateY(-1px);
}

.remember-option b {
  font-weight: 650;
}

.remember-option input:checked + span {
  border-color: #080808;
  background: #080808;
}

.remember-option input:checked + span::after {
  content: '✓';
  color: #fff;
  font-size: 9px;
}

.forgot-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c5c5c0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #343430;
  cursor: pointer;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.07em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.045);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.forgot-button:hover {
  border-color: #050505;
  background: #050505;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.13);
}

.form-error {
  margin: 15px 0 -8px;
  color: #8a1d16;
  font-size: 10px;
  line-height: 1.45;
}

.primary-button {
  width: 100%;
  min-height: 68px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 23px;
  border: 2px solid #050505;
  border-radius: 10px;
  background: linear-gradient(135deg, #050505 0%, #171717 100%);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.13em;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.primary-button::before {
  content: '';
  width: 30%;
  position: absolute;
  z-index: 0;
  top: -60%;
  bottom: -60%;
  left: -44%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.22, 0.8, 0.27, 1);
}

.primary-button > span {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 760;
}

.primary-button:hover {
  transform: translateY(-3px);
  border-color: #202020;
  background: linear-gradient(135deg, #111 0%, #242424 100%);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.primary-button:hover::before {
  left: 118%;
}
.primary-button:active {
  transform: translateY(0) scale(0.995);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.primary-button > i {
  width: 42px;
  height: 42px;
  display: grid;
  position: relative;
  z-index: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  font-style: normal;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.primary-button:hover > i {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.17);
}

.primary-button.is-loading > i {
  animation: loadingBlink 0.7s ease-in-out infinite alternate;
}

.back-button {
  margin-bottom: 28px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #c5c5c0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #4c4c48;
  cursor: pointer;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.045);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.back-button:hover {
  border-color: #050505;
  background: #050505;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.13);
}

.confirm-mark {
  width: 94px;
  height: 94px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 31px;
  border: 1px solid #aaa9a5;
  border-radius: 50%;
}

.confirm-mark::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid #d0d0cc;
  border-radius: 50%;
}

.confirm-mark span {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #080808;
  color: #fff;
  font-family: var(--font-geist-mono), monospace;
  font-size: 12px;
}

.confirm-mark i {
  width: 5px;
  height: 5px;
  position: absolute;
  top: 12px;
  right: 22px;
  border-radius: 50%;
  background: #090909;
}

.confirm-mark i:last-child {
  top: auto;
  right: auto;
  bottom: 13px;
  left: 20px;
}

.device-card {
  min-height: 67px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid #c5c5c1;
  background: rgba(255, 255, 255, 0.62);
}

.device-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #b9b9b5;
  color: #111;
  font-size: 15px;
}

.device-card small,
.device-card strong {
  display: block;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
}
.device-card small {
  color: #858581;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.device-card strong {
  margin-top: 6px;
  color: #111;
  font-size: 8px;
  font-weight: 520;
  letter-spacing: 0.04em;
}

.simple-note {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 13px;
  border-left: 1px solid #aaa9a5;
}

.simple-note strong,
.simple-note span {
  display: block;
  font-size: 8px;
  line-height: 1.5;
}
.simple-note strong {
  flex: 0 0 auto;
  color: #111;
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: 0.08em;
}
.simple-note span {
  color: #777773;
}

.completion {
  text-align: center;
}

.completion-mark {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
  border: 1px solid #bdbdb9;
  border-radius: 50%;
}

.completion-mark span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #080808;
  color: #fff;
  font-size: 17px;
}

.completion-session {
  min-height: 70px;
  margin-top: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  text-align: left;
  border: 1px solid #000;
  background: #080808;
  color: #fff;
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
}

.completion-session span,
.completion-session strong {
  display: block;
}
.completion-session span {
  color: #777773;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.completion-session strong {
  margin-top: 7px;
  font-size: 9px;
  font-weight: 520;
  letter-spacing: 0.09em;
}
.completion-session b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 7px;
  font-weight: 520;
  letter-spacing: 0.1em;
}

.panel-footer {
  height: 54px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #989894;
  background: rgba(255, 255, 255, 0.24);
  font-family: var(--font-geist-mono), 'SFMono-Regular', Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.panel-footer span + span::before {
  content: '·';
  margin-right: 18px;
  color: #b5b5b1;
}

.stage-enter {
  animation: stageEnter 0.42s cubic-bezier(0.22, 0.8, 0.27, 1) both;
}

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

@keyframes earthOrbit {
  0% {
    transform: scale(1.055) translate3d(-1.1%, 0.7%, 0);
  }
  45% {
    transform: scale(1.09) translate3d(0.2%, -0.5%, 0);
  }
  100% {
    transform: scale(1.075) translate3d(1.2%, -0.9%, 0);
  }
}

@keyframes orbitalScan {
  0%,
  14% {
    transform: translateX(0) skewX(-11deg);
    opacity: 0;
  }
  26% {
    opacity: 0.75;
  }
  72% {
    opacity: 0.42;
  }
  86%,
  100% {
    transform: translateX(520%) skewX(-11deg);
    opacity: 0;
  }
}

@keyframes threadFlow {
  to {
    stroke-dashoffset: -54;
  }
}
@keyframes orbitTrace {
  to {
    stroke-dashoffset: -260;
  }
}
@keyframes originWave {
  from {
    opacity: 0.82;
    transform: scale(0.5);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}
@keyframes originPulse {
  from {
    opacity: 0.62;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.25);
  }
}
@keyframes nodeBlink {
  from {
    opacity: 0.48;
  }
  to {
    opacity: 1;
  }
}

@keyframes signalWave {
  from {
    transform: scaleY(0.52);
    opacity: 0.45;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes loadingBlink {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .login-shell {
    --access-panel-width: max(430px, 39vw);
  }
  .wordmark-copy span,
  .version-label {
    display: none;
  }
  .route-summary {
    width: 300px;
  }
  .earth-copy h1 {
    font-size: 50px;
  }
  .destination-strip b:nth-child(n + 6) {
    display: none;
  }
}

@media (max-width: 920px) {
  .topbar {
    height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    background: #050505;
  }
  .wordmark {
    padding-left: 22px;
  }
  .topbar-actions {
    gap: 10px;
    padding: 0 22px;
    border-left: 0;
    background: transparent;
  }
  .topbar-actions {
    color: #fff;
  }
  .system-status {
    display: none;
  }
  .language-toggle {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
  }
  .language-toggle button {
    color: #999995;
  }
  .language-toggle button.is-active {
    background: #fff;
    color: #050505;
  }
  .theme-toggle {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
  }
  .theme-toggle button {
    color: #aaa;
  }
  .theme-toggle button.is-active {
    background: #fff;
    color: #050505;
  }
  .experience-grid {
    min-height: calc(100svh - 72px);
    display: block;
  }
  .brand-stage {
    min-height: 550px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .route-summary {
    display: none;
  }
  .earth-copy {
    bottom: 150px;
  }
  .access-panel {
    min-height: 720px;
  }
  .panel-content {
    padding-top: 82px;
  }
}

@media (max-width: 560px) {
  .wordmark {
    padding-left: 16px;
  }
  .topbar-actions {
    gap: 7px;
    padding-right: 16px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .wordmark {
    gap: 11px;
  }
  .wordmark-copy strong {
    font-size: 10px;
    letter-spacing: 0.15em;
  }
  .language-toggle button {
    min-width: 37px;
    height: 30px;
    padding: 0 8px;
  }
  .theme-toggle button {
    min-width: 38px;
    height: 30px;
    gap: 4px;
    padding: 0 7px;
  }
  .brand-stage {
    min-height: 440px;
  }
  .earth-source {
    background-position: 52% 48%;
  }
  .earth-source--day {
    filter: saturate(1.05) contrast(1.07) brightness(0.86);
  }
  .earth-source--night {
    filter: grayscale(1) contrast(1.23) brightness(0.46);
  }
  .earth-grid {
    background-size: 48px 48px;
  }
  .orbital-label {
    top: 18px;
    min-height: 30px;
    padding: 0 11px;
    font-size: 7px;
  }
  .orbital-label--left {
    left: 18px;
  }
  .orbital-label--right {
    display: none;
  }
  .route-map {
    width: 128%;
    left: -14%;
  }
  .region-node text {
    font-size: 7px;
  }
  .earth-copy {
    left: 20px;
    bottom: 145px;
  }
  .earth-copy p {
    margin-bottom: 9px;
    font-size: 6px;
  }
  .earth-copy h1 {
    font-size: 34px;
  }
  .destination-strip {
    min-height: 44px;
    gap: 12px;
    padding: 0 20px;
  }
  .destination-strip > div {
    gap: 10px;
  }
  .destination-strip b:nth-child(n + 5) {
    display: none;
  }
  .earth-telemetry {
    min-height: 57px;
    padding: 0 20px;
  }
  .earth-telemetry > div {
    padding-right: 10px;
  }
  .earth-telemetry > div + div {
    padding-left: 10px;
  }
  .access-panel {
    min-height: 700px;
  }
  .panel-topline {
    top: 24px;
    right: 24px;
    left: 24px;
  }
  .panel-content {
    padding: 72px 24px 79px;
  }
  .panel-heading h2,
  .completion h2 {
    font-size: 38px;
  }
  .simple-note {
    flex-direction: column;
    gap: 4px;
  }
  .panel-footer {
    gap: 10px;
  }
  .panel-footer span + span::before {
    margin-right: 10px;
  }
  .panel-footer span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 420px) {
  .wordmark-copy strong {
    display: none;
  }
  .theme-toggle button {
    min-width: 31px;
    padding: 0 7px;
  }
  .theme-toggle button b {
    display: none;
  }
}

html[data-theme='dark'] {
  background: #050505;
  color-scheme: dark;
}

html[data-theme='dark'] .orbital-network {
  background: #010101;
}
html[data-theme='dark'] .route-map {
  filter: grayscale(1);
}

html[data-theme='dark'] .earth-source--day {
  opacity: 0;
}
html[data-theme='dark'] .earth-source--night {
  opacity: 1;
}

html[data-theme='dark'] .earth-shade {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.08) 44%,
      rgba(0, 0, 0, 0.2) 74%,
      rgba(0, 0, 0, 0.56) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.24) 19%,
      transparent 39%,
      rgba(0, 0, 0, 0.18) 66%,
      rgba(0, 0, 0, 0.92) 100%
    );
}

html[data-theme='dark'] .topbar-actions {
  border-left-color: rgba(255, 255, 255, 0.14);
  background: #050505;
  color: #f4f4f1;
}

html[data-theme='dark'] .language-toggle,
html[data-theme='dark'] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .language-toggle button,
html[data-theme='dark'] .theme-toggle button {
  color: #999995;
}

html[data-theme='dark'] .language-toggle button.is-active,
html[data-theme='dark'] .theme-toggle button.is-active {
  background: #f4f4f1;
  color: #050505;
  box-shadow: 0 4px 13px rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .language-toggle button:not(.is-active):hover,
html[data-theme='dark'] .theme-toggle button:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

html[data-theme='dark'] .access-panel {
  background:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px), #070707;
  background-size: 52px 52px;
  color: #f5f5f2;
}

html[data-theme='dark'] .panel-kicker,
html[data-theme='dark'] .panel-heading > p:last-child,
html[data-theme='dark'] .completion > p,
html[data-theme='dark'] .field-label,
html[data-theme='dark'] .remember-option,
html[data-theme='dark'] .forgot-button,
html[data-theme='dark'] .back-button {
  color: #9b9b97;
}

html[data-theme='dark'] .panel-kicker::after {
  background: #454541;
}

html[data-theme='dark'] .panel-heading h2,
html[data-theme='dark'] .completion h2 {
  color: #f7f7f4;
}

html[data-theme='dark'] .field-wrap {
  border-color: #383834;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .field-wrap:focus-within {
  border-color: #f2f2ef;
  background: #0d0d0d;
}

html[data-theme='dark'] .field-wrap input {
  color: #f7f7f4;
  caret-color: #fff;
}

html[data-theme='dark'] .field-wrap input::placeholder,
html[data-theme='dark'] .field-wrap > span {
  color: #b8b8b4;
}

html[data-theme='dark'] .remember-option > span {
  border-color: #72726d;
  background: rgba(255, 255, 255, 0.055);
}

html[data-theme='dark'] .remember-option input:checked + span {
  border-color: #f4f4f1;
  background: #f4f4f1;
}

html[data-theme='dark'] .remember-option input:checked + span::after {
  color: #050505;
}

html[data-theme='dark'] .forgot-button:hover,
html[data-theme='dark'] .back-button:hover {
  border-color: #f4f4f1;
  background: #f4f4f1;
  color: #050505;
}

html[data-theme='dark'] .forgot-button,
html[data-theme='dark'] .back-button {
  border-color: #4c4c47;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .form-error {
  color: #ff8e86;
}

html[data-theme='dark'] .primary-button {
  border-color: #f5f5f2;
  background: linear-gradient(135deg, #f7f7f4 0%, #dededa 100%);
  color: #050505;
  box-shadow:
    0 16px 34px rgba(255, 255, 255, 0.11),
    inset 0 1px 0 #fff;
}

html[data-theme='dark'] .primary-button::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

html[data-theme='dark'] .primary-button:hover {
  border-color: #fff;
  background: linear-gradient(135deg, #fff 0%, #eeeeea 100%);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.16);
}

html[data-theme='dark'] .primary-button > span {
  color: #050505 !important;
  -webkit-text-fill-color: #050505;
}

html[data-theme='dark'] .primary-button > i {
  border-color: rgba(0, 0, 0, 0.36);
  background: rgba(0, 0, 0, 0.08);
  color: #050505;
}

html[data-theme='dark'] .confirm-mark {
  border-color: #51514d;
}

html[data-theme='dark'] .confirm-mark::before {
  border-color: #2d2d2a;
}

html[data-theme='dark'] .confirm-mark span {
  background: #f4f4f1;
  color: #050505;
}

html[data-theme='dark'] .confirm-mark i {
  background: #f4f4f1;
}

html[data-theme='dark'] .device-card {
  border-color: #373733;
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme='dark'] .device-icon {
  border-color: #4d4d49;
  color: #f4f4f1;
}

html[data-theme='dark'] .device-card small {
  color: #797975;
}
html[data-theme='dark'] .device-card strong {
  color: #f4f4f1;
}

html[data-theme='dark'] .completion-mark {
  border-color: #4f4f4b;
}

html[data-theme='dark'] .completion-mark span {
  background: #f4f4f1;
  color: #050505;
}

html[data-theme='dark'] .completion-session {
  border-color: #f4f4f1;
  background: #f4f4f1;
  color: #050505;
}

html[data-theme='dark'] .completion-session span {
  color: #72726e;
}

html[data-theme='dark'] .panel-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: #7e7e7a;
}

html[data-theme='dark'] .panel-footer span + span::before {
  color: #494945;
}

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