:root {
  --void: #030611;
  --void-soft: #060b1d;
  --panel: rgba(7, 13, 34, 0.86);
  --panel-solid: #080f25;
  --panel-line: rgba(116, 189, 255, 0.22);
  --panel-line-bright: rgba(101, 229, 255, 0.62);
  --cyan: #61e8ff;
  --cyan-soft: #73bfff;
  --blue: #3878ff;
  --violet: #9b67ff;
  --violet-soft: #c6a8ff;
  --gold: #e7c989;
  --text: #f3f8ff;
  --text-soft: #a8bad6;
  --text-dim: #7083a2;
  --danger: #ff6683;
  --success: #6bffd0;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --panel-height: 560px;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--void);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--void);
  color: var(--text);
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.galaxor-auth {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--void);
}

.scene,
.energy-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene {
  z-index: -3;
  overflow: hidden;
  background: #030611;
}

.energy-field {
  z-index: -1;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 1.2s ease;
}

.js .galaxor-auth[data-state]:not([data-state="boot"]) .energy-field {
  opacity: 0.7;
}

.scene__backdrop {
  position: absolute;
  inset: -3.5%;
  background-image: url("/portal-v2/ui/galaxor-corridor.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(1.12) brightness(0.7) contrast(1.06);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.055);
  animation: scene-breathe 16s ease-in-out infinite alternate;
  will-change: transform;
}

/* Galaxor production integration: real route links keep the supplied button styling. */
.galaxor-auth .panel-switch a,
.galaxor-auth .text-link,
.galaxor-auth .page-footer a {
  color: inherit;
  text-decoration: none;
}

.galaxor-auth .panel-switch a {
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.galaxor-auth .panel-switch a:hover,
.galaxor-auth .text-link:hover,
.galaxor-auth .page-footer a:hover {
  color: #fff;
}

.galaxor-auth .form-alert a {
  color: #fff;
  font-weight: 750;
}

.galaxor-auth .form-options {
  justify-content: flex-end;
}

.registration-complete {
  display: grid;
  padding: 10px 0 4px;
  justify-items: center;
  text-align: center;
}

.registration-complete__icon {
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(107, 255, 208, .45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 190, 158, .22), rgba(17, 48, 69, .35) 65%, transparent 66%);
  color: var(--success);
  font-size: 2.1rem;
  box-shadow: 0 0 36px rgba(58, 235, 191, .18), inset 0 0 25px rgba(61, 255, 207, .1);
  animation: registration-signal 2.8s ease-in-out infinite;
}

.registration-complete h3 {
  margin: 0 0 11px;
  color: #efffff;
  font-size: 1.3rem;
}

.registration-complete p {
  margin: 0 0 25px;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.65;
}

.registration-complete__button {
  display: flex;
  text-decoration: none;
}

@keyframes registration-signal {
  0%, 100% { box-shadow: 0 0 22px rgba(58, 235, 191, .12), inset 0 0 25px rgba(61, 255, 207, .08); transform: scale(.98); }
  50% { box-shadow: 0 0 42px rgba(58, 235, 191, .28), inset 0 0 30px rgba(61, 255, 207, .14); transform: scale(1.02); }
}

.scene__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 12%, rgba(3, 6, 17, 0.1) 29%, rgba(3, 6, 17, 0.58) 80%),
    linear-gradient(90deg, rgba(2, 5, 14, 0.22) 0%, rgba(2, 5, 14, 0.08) 43%, rgba(2, 5, 14, 0.72) 70%, rgba(2, 5, 14, 0.92) 100%),
    linear-gradient(180deg, rgba(3, 6, 17, 0.58), transparent 24%, transparent 72%, rgba(3, 6, 17, 0.8));
}

.scene__vignette {
  position: absolute;
  inset: -1px;
  box-shadow: inset 0 0 180px 45px rgba(0, 0, 0, 0.68);
}

.scene__scan {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(117, 201, 255, 0.09) 4px, transparent 5px);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.portal-light {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(55px);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.portal-light--one {
  background: conic-gradient(from 40deg, transparent, rgba(62, 165, 255, 0.75), transparent 36%, rgba(156, 85, 255, 0.68), transparent 68%);
  animation: portal-rotate 22s linear infinite;
}

.portal-light--two {
  width: 22vw;
  opacity: 0.18;
  background: radial-gradient(circle, rgba(104, 224, 255, 0.72), transparent 65%);
  animation: portal-pulse 4.8s ease-in-out infinite;
}

.portal-core {
  position: absolute;
  left: 50%;
  top: 48.5%;
  width: clamp(34px, 3.8vw, 76px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.62;
  filter: drop-shadow(0 0 12px rgba(100, 226, 255, 0.8));
}

.portal-core span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(112, 229, 255, 0.82);
  animation: portal-core 3.2s ease-out infinite;
}

.portal-core span:nth-child(2) {
  animation-delay: -1.05s;
}

.portal-core span:nth-child(3) {
  animation-delay: -2.1s;
}

.drone {
  position: absolute;
  left: -8vw;
  width: 26px;
  height: 5px;
  opacity: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(210, 243, 255, 0.9) 45%, var(--cyan));
  box-shadow: 0 0 7px var(--cyan), -22px 0 18px rgba(76, 185, 255, 0.52);
  transform: rotate(-8deg);
  animation: drone-patrol 12s linear infinite;
}

.drone::before,
.drone::after {
  position: absolute;
  top: 1px;
  width: 12px;
  height: 1px;
  content: "";
  background: rgba(118, 228, 255, 0.75);
  box-shadow: 0 0 6px var(--cyan);
}

.drone::before {
  right: 18px;
  transform: rotate(28deg);
}

.drone::after {
  right: 18px;
  transform: rotate(-28deg);
}

.drone i {
  position: absolute;
  right: -44px;
  top: 2px;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.drone--one {
  top: 36%;
}

.drone--two {
  top: 58%;
  animation-delay: -4.6s;
  animation-duration: 15s;
  transform: scale(0.65) rotate(-4deg);
}

.drone--three {
  top: 24%;
  animation-delay: -8.2s;
  animation-duration: 18s;
  transform: scale(0.45) rotate(-10deg);
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: max(22px, env(safe-area-inset-top)) clamp(24px, 4.2vw, 72px) 18px;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  text-shadow: 0 0 22px rgba(92, 209, 255, 0.25);
}

.brand::after {
  position: absolute;
  right: -32px;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(105, 223, 255, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: brand-line 1.1s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid rgba(115, 219, 255, 0.7);
  background: rgba(7, 18, 45, 0.82);
  box-shadow: inset 0 0 12px rgba(67, 162, 255, 0.22), 0 0 17px rgba(73, 195, 255, 0.18);
  transform: rotate(45deg);
}

.brand__mark::before,
.brand__mark::after {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid rgba(151, 101, 255, 0.56);
}

.brand__mark::after {
  inset: -5px;
  border-color: rgba(116, 204, 255, 0.18);
  animation: brand-orbit 5s linear infinite;
}

.brand__core {
  width: 8px;
  height: 8px;
  background: #effcff;
  box-shadow: 0 0 9px var(--cyan), 0 0 18px var(--blue);
}

.brand__word {
  overflow: hidden;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1;
  background: linear-gradient(100deg, #fff 15%, #91ddff 45%, #fff 58%, #a98cff 82%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-shimmer 6.5s ease-in-out infinite;
}

.alpha-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(104, 213, 255, 0.19);
  background: rgba(4, 10, 27, 0.58);
  box-shadow: inset 0 0 16px rgba(54, 123, 224, 0.08);
  backdrop-filter: blur(8px);
  color: #9db6d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.alpha-badge__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(107, 255, 208, 0.55), 0 0 9px rgba(107, 255, 208, 0.9);
  animation: status-pulse 2.3s ease-out infinite;
}

.mission-copy {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: clamp(30px, 6.4vw, 110px);
  width: min(41vw, 650px);
  transform: translateY(-44%);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.6);
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  opacity: 0;
  animation: copy-in 0.75s 0.65s ease forwards;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 8px rgba(97, 232, 255, 0.55);
}

.mission-copy h1 {
  margin: 0;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.84;
  opacity: 0;
  animation: copy-in 0.9s 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mission-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), #8b9dff 54%, var(--violet-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(76, 175, 255, 0.2));
}

.mission-copy__text {
  max-width: 540px;
  margin: 25px 0 0;
  color: #adbeda;
  font-size: clamp(0.9rem, 1.08vw, 1.05rem);
  line-height: 1.75;
  opacity: 0;
  animation: copy-in 0.85s 0.95s ease forwards;
}

.universe-readout {
  display: flex;
  gap: clamp(20px, 3.2vw, 52px);
  margin-top: 39px;
  opacity: 0;
  animation: copy-in 0.85s 1.1s ease forwards;
}

.universe-readout > div {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
}

.universe-readout > div:not(:last-child)::after {
  position: absolute;
  top: 3px;
  right: calc(clamp(20px, 3.2vw, 52px) / -2);
  width: 1px;
  height: 31px;
  content: "";
  background: linear-gradient(transparent, rgba(101, 219, 255, 0.5), transparent);
}

.universe-readout strong {
  color: #eefaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(76, 192, 255, 0.44);
}

.universe-readout span {
  color: #69809f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.auth-zone {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48%;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: auto;
  padding: 110px clamp(24px, 4vw, 70px) 70px;
  overflow: visible;
  scrollbar-width: none;
}

.auth-zone::-webkit-scrollbar {
  display: none;
}

.auth-card {
  position: relative;
  width: min(100%, 440px);
  margin-top: 42px;
  padding: 79px 34px 24px;
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(37, 89, 155, 0.09), transparent 25%),
    linear-gradient(315deg, rgba(142, 82, 255, 0.07), transparent 28%),
    var(--panel);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 0 50px rgba(40, 92, 180, 0.06),
    0 0 46px rgba(49, 118, 255, 0.06);
  backdrop-filter: blur(19px) saturate(1.2);
  opacity: 0;
  transform: translateY(20px) perspective(1000px) rotateX(2deg);
  animation: card-in 0.85s 0.35s cubic-bezier(0.16, 0.85, 0.28, 1) forwards;
}

.auth-card::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--cyan), transparent 18%) top left / 42% 1px no-repeat,
    linear-gradient(270deg, var(--violet), transparent 18%) top right / 42% 1px no-repeat,
    linear-gradient(90deg, rgba(97, 232, 255, 0.5), transparent 22%) bottom left / 36% 1px no-repeat,
    linear-gradient(270deg, rgba(155, 103, 255, 0.5), transparent 22%) bottom right / 36% 1px no-repeat;
  filter: drop-shadow(0 0 5px rgba(88, 216, 255, 0.32));
}

.auth-card::after {
  position: absolute;
  z-index: -2;
  top: -30px;
  right: 12%;
  left: 12%;
  height: 80px;
  content: "";
  border-radius: 50%;
  background: rgba(71, 171, 255, 0.2);
  filter: blur(42px);
  opacity: 0.56;
}

.corner {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  pointer-events: none;
  border-color: rgba(113, 225, 255, 0.72);
}

.corner--tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner--tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner--br {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.auth-card__scanner {
  position: absolute;
  z-index: 3;
  right: 1px;
  left: 1px;
  top: 0;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--violet), transparent);
  box-shadow: 0 0 8px rgba(97, 232, 255, 0.78), 0 0 18px rgba(77, 149, 255, 0.46);
}

.galaxor-auth[data-state="submitting"] .auth-card__scanner {
  opacity: 0.8;
  animation: card-scan 1.35s linear infinite;
}

.galaxor-auth[data-state="error"] .auth-card {
  animation: card-shake 0.34s ease both;
}

.gateway {
  position: absolute;
  z-index: 8;
  top: calc(50% - 358px);
  left: 50%;
  display: grid;
  width: 124px;
  aspect-ratio: 1;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.78);
  animation: gateway-in 0.8s 0.75s cubic-bezier(0.16, 0.9, 0.3, 1.15) forwards, gateway-float 5s 1.6s ease-in-out infinite;
}

.gateway img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 13px rgba(79, 204, 255, 0.5)) drop-shadow(0 0 24px rgba(142, 82, 255, 0.24));
}

.gateway__halo {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: rgba(76, 214, 255, 0.42);
  box-shadow: 0 0 32px 13px rgba(59, 144, 255, 0.35), 0 0 58px 20px rgba(147, 76, 255, 0.18);
  filter: blur(9px);
  animation: gateway-halo 2.9s ease-in-out infinite;
}

.gateway__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(104, 219, 255, 0.35);
  box-shadow: inset 0 0 8px rgba(77, 171, 255, 0.14), 0 0 9px rgba(77, 171, 255, 0.14);
}

.gateway__orbit::before,
.gateway__orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--cyan), 0 0 15px var(--blue);
}

.gateway__orbit::after {
  right: -3px;
  left: auto;
  background: #e9dcff;
  box-shadow: 0 0 8px var(--violet), 0 0 15px var(--violet);
}

.gateway__orbit--outer {
  inset: -9px;
  border-right-color: transparent;
  border-left-color: transparent;
  animation: orbit 10s linear infinite;
}

.gateway__orbit--inner {
  inset: 3px;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: orbit 7s linear infinite reverse;
}

.connection-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.connection-line i {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(109, 181, 255, 0.15);
}

.connection-line i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
  animation: connection-flow 2.6s ease-in-out infinite;
}

.connection-line b {
  color: rgba(107, 255, 208, 0.72);
  font-weight: 700;
}

.panel-stack {
  position: relative;
  height: var(--panel-height);
  transition: height 0.42s cubic-bezier(0.2, 0.78, 0.24, 1);
}

.auth-panel {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.38s;
}

.auth-panel.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s, 0.1s, 0s;
}

.auth-panel.is-leaving {
  visibility: visible;
  opacity: 0;
  transform: translateX(-22px);
  transition-delay: 0s;
}

.auth-panel[data-panel="register"],
.auth-panel[data-panel="reset"] {
  transform: translateX(24px);
}

.panel-heading {
  margin-bottom: 26px;
}

.panel-heading h2 {
  margin: 7px 0 7px;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(1.74rem, 2.3vw, 2.08rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.panel-heading > p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.55;
}

.panel-heading--reset {
  text-align: center;
}

.reset-symbol {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 3px auto 22px;
  place-items: center;
  border: 1px solid rgba(104, 219, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 120, 255, 0.18), rgba(5, 12, 31, 0.7));
  box-shadow: 0 0 25px rgba(66, 157, 255, 0.13), inset 0 0 18px rgba(82, 181, 255, 0.1);
  color: var(--cyan);
}

.reset-symbol svg {
  width: 37px;
  stroke-width: 1.35;
  animation: reset-spin 8s linear infinite;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin: 0 0 7px 2px;
  color: #b9c9df;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(119, 166, 224, 0.2);
  background: rgba(2, 8, 24, 0.7);
  box-shadow: inset 0 0 18px rgba(51, 112, 210, 0.04);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.field__control > svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-left: 16px;
  color: #657a9c;
  transition: color 0.2s ease, filter 0.2s ease;
}

.field__control input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 45px 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--cyan);
  font-size: 0.91rem;
}

.field__control input::placeholder {
  color: #4e627f;
  opacity: 1;
}

.field__control:focus-within {
  border-color: rgba(97, 232, 255, 0.68);
  background: rgba(5, 14, 37, 0.86);
  box-shadow: inset 0 0 22px rgba(67, 161, 255, 0.07), 0 0 0 1px rgba(97, 232, 255, 0.08), 0 0 18px rgba(57, 156, 255, 0.1);
  transform: translateY(-1px);
}

.field__control:focus-within > svg {
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(97, 232, 255, 0.55));
}

.field__energy {
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  box-shadow: 0 0 8px rgba(97, 232, 255, 0.56);
  transition: right 0.3s ease, left 0.3s ease;
}

.field__control:focus-within .field__energy {
  right: 0;
  left: 0;
}

.field__error {
  display: block;
  min-height: 0;
  margin: 0 2px;
  overflow: hidden;
  color: var(--danger);
  font-size: 0.68rem;
  line-height: 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: min-height 0.2s ease, margin-top 0.2s ease, line-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.field.has-error .field__control {
  border-color: rgba(255, 102, 131, 0.62);
  background: rgba(49, 7, 22, 0.28);
  box-shadow: 0 0 15px rgba(255, 74, 112, 0.08);
}

.field.has-error .field__error {
  min-height: 14px;
  margin-top: 5px;
  line-height: 1.3;
  opacity: 1;
  transform: translateY(0);
}

.field--compact .field__control {
  min-height: 47px;
}

.field--compact .field__control input {
  height: 45px;
}

.server-picker {
  position: relative;
  z-index: 9;
  min-width: 0;
}

.server-picker.is-open {
  z-index: 24;
}

.server-picker__label {
  display: block;
  margin: 0 0 7px 2px;
  color: #b9c9df;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-picker__trigger {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 7px 13px 7px 14px;
  overflow: hidden;
  border: 1px solid rgba(119, 166, 224, 0.2);
  background:
    linear-gradient(90deg, rgba(22, 72, 135, 0.1), transparent 38%),
    rgba(2, 8, 24, 0.74);
  box-shadow: inset 0 0 18px rgba(51, 112, 210, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.server-picker__trigger:hover,
.server-picker__trigger:focus-visible,
.server-picker.is-open .server-picker__trigger {
  border-color: rgba(97, 232, 255, 0.68);
  background:
    linear-gradient(90deg, rgba(22, 92, 164, 0.17), transparent 46%),
    rgba(5, 14, 37, 0.9);
  box-shadow: inset 0 0 22px rgba(67, 161, 255, 0.07), 0 0 0 1px rgba(97, 232, 255, 0.08), 0 0 18px rgba(57, 156, 255, 0.1);
}

.server-picker.has-error .server-picker__trigger {
  border-color: rgba(255, 102, 131, 0.62);
  background: rgba(49, 7, 22, 0.3);
  box-shadow: 0 0 15px rgba(255, 74, 112, 0.08);
}

.server-picker__trigger:hover,
.server-picker.is-open .server-picker__trigger {
  transform: translateY(-1px);
}

.server-picker__trigger:focus-visible {
  outline: 2px solid rgba(190, 243, 255, 0.92);
  outline-offset: 3px;
}

.server-picker__trigger:hover .field__energy,
.server-picker__trigger:focus-visible .field__energy,
.server-picker.is-open .field__energy {
  right: 0;
  left: 0;
}

.server-picker__signal {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(101, 219, 255, 0.3);
  background: rgba(11, 35, 68, 0.72);
  box-shadow: inset 0 0 10px rgba(73, 181, 255, 0.1);
  transform: rotate(45deg);
}

.server-picker__signal::before {
  position: absolute;
  inset: 5px;
  content: "";
  border: 1px solid rgba(142, 101, 255, 0.34);
}

.server-picker__signal i {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 7px rgba(107, 255, 208, 0.9), 0 0 13px rgba(64, 214, 255, 0.62);
  animation: server-signal 2.2s ease-out infinite;
}

.server-picker__selection {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.server-picker__selection strong {
  overflow: hidden;
  color: #dcecff;
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-picker__selection small {
  overflow: hidden;
  color: #667d9d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-picker__latency {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #5c7393;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.49rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.server-picker__latency b {
  color: #8fe8d1;
  font-size: 0.62rem;
  font-weight: 700;
}

.server-picker__chevron {
  width: 18px;
  height: 18px;
  color: #7793b6;
  transition: color 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.server-picker.is-open .server-picker__chevron {
  color: var(--cyan);
  transform: rotate(180deg);
}

.server-picker__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  visibility: hidden;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(104, 207, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(43, 101, 171, 0.12), transparent 36%),
    #050b1d;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.58), inset 0 0 30px rgba(50, 113, 201, 0.07), 0 0 28px rgba(44, 144, 255, 0.09);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.3s;
}

.server-picker__menu::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -35%;
  width: 30%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #fff, var(--cyan), transparent);
  box-shadow: 0 0 8px rgba(97, 232, 255, 0.72);
}

.server-picker.is-open .server-picker__menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.server-picker.is-open .server-picker__menu::before {
  animation: server-menu-scan 1.1s 0.06s ease-out both;
}

.server-picker__menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 8px;
  color: #566e90;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.server-picker__option {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 55px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.server-picker__option + .server-picker__option {
  margin-top: 4px;
}

.server-picker__option:hover:not(:disabled),
.server-picker__option:focus-visible {
  border-color: rgba(99, 199, 255, 0.25);
  outline: 0;
  background: rgba(32, 88, 156, 0.13);
  transform: translateX(2px);
}

.server-picker__option[aria-selected="true"] {
  border-color: rgba(97, 232, 255, 0.28);
  background: linear-gradient(90deg, rgba(31, 104, 176, 0.2), rgba(103, 69, 180, 0.08));
  box-shadow: inset 2px 0 0 var(--cyan), inset 0 0 20px rgba(54, 142, 230, 0.05);
}

.server-picker__option:disabled {
  cursor: not-allowed;
  opacity: 0.43;
}

.server-picker__option-signal {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(112, 183, 233, 0.2);
  border-radius: 50%;
  background: rgba(5, 18, 39, 0.8);
}

.server-picker__option-signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.server-picker__option-signal.is-online i {
  background: var(--success);
  box-shadow: 0 0 7px rgba(107, 255, 208, 0.85);
}

.server-picker__option-signal.is-locked i {
  border: 1px solid #788398;
  background: transparent;
}

.server-picker__option-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.server-picker__option-copy strong {
  overflow: hidden;
  color: #cddcf0;
  font-size: 0.75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-picker__option[aria-selected="true"] .server-picker__option-copy strong {
  color: #ddf9ff;
}

.server-picker__option-copy small {
  overflow: hidden;
  color: #627895;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-picker__population {
  display: grid;
  gap: 5px;
}

.server-picker__population > span {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(112, 150, 198, 0.15);
}

.server-picker__population > span i {
  display: block;
  width: var(--server-load);
  height: 100%;
  background: linear-gradient(90deg, #47b8ff, var(--cyan));
  box-shadow: 0 0 7px rgba(97, 232, 255, 0.5);
  transform: scaleX(0);
  transform-origin: left;
}

.server-picker.is-open .server-picker__population > span i {
  animation: server-load-in 0.65s 0.12s ease-out forwards;
}

.server-picker__population b {
  color: #6f88a8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
}

.server-picker__population--locked b {
  color: #7e7184;
}

.galaxor-auth[data-state="submitting"] .server-picker,
.galaxor-auth[data-state="success"] .server-picker {
  pointer-events: none;
  opacity: 0.74;
}

.password-toggle {
  position: absolute;
  right: 4px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #657a9c;
  cursor: pointer;
  transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--cyan);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 24px;
}

.check-control {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: #8fa4c0;
  font-size: 0.74rem;
  line-height: 1.45;
  cursor: pointer;
}

.check-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.check-control__box {
  display: grid;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid rgba(126, 174, 230, 0.35);
  background: rgba(2, 8, 22, 0.75);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.check-control__box svg {
  width: 13px;
  opacity: 0;
  color: #03101b;
  stroke-width: 2.6;
  transform: scale(0.45);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.check-control input:checked + .check-control__box {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(97, 232, 255, 0.34);
}

.check-control input:checked + .check-control__box svg {
  opacity: 1;
  transform: scale(1);
}

.check-control input:focus-visible + .check-control__box {
  outline: 2px solid rgba(147, 201, 255, 0.92);
  outline-offset: 3px;
}

.check-control--terms {
  margin: -1px 0 1px;
}

.check-control a {
  color: #8fdcff;
  text-underline-offset: 2px;
}

.text-link,
.panel-switch button,
.back-button {
  padding: 0;
  border: 0;
  background: none;
  color: #8fdcff;
  cursor: pointer;
}

.text-link {
  font-size: 0.74rem;
}

.text-link:hover,
.panel-switch button:hover,
.back-button:hover {
  color: #d8f7ff;
  text-shadow: 0 0 10px rgba(97, 232, 255, 0.3);
}

.text-link:focus-visible,
.panel-switch button:focus-visible,
.back-button:focus-visible,
.password-toggle:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.form-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 102, 131, 0.3);
  background: rgba(102, 14, 39, 0.2);
  color: #ff9bae;
  font-size: 0.73rem;
  line-height: 1.45;
}

.form-alert[hidden] {
  display: none;
}

.form-alert svg {
  width: 19px;
  height: 19px;
}

.primary-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid rgba(109, 226, 255, 0.76);
  background:
    linear-gradient(90deg, rgba(14, 73, 143, 0.72), rgba(35, 91, 167, 0.86) 48%, rgba(73, 59, 158, 0.8)),
    #11274e;
  box-shadow: inset 0 0 19px rgba(103, 224, 255, 0.12), 0 0 20px rgba(40, 130, 255, 0.12);
  color: #f5fdff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease, filter 0.2s ease;
}

.primary-button::before {
  position: absolute;
  inset: -2px;
  content: "";
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22) 42%, rgba(125, 233, 255, 0.4) 50%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.primary-button::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(106, 231, 255, 0.65), transparent);
  opacity: 0.6;
}

.primary-button:hover:not(:disabled) {
  border-color: #a9f4ff;
  box-shadow: inset 0 0 24px rgba(103, 224, 255, 0.18), 0 0 26px rgba(44, 148, 255, 0.26);
  transform: translateY(-2px);
}

.primary-button:hover:not(:disabled)::before {
  transform: translateX(120%);
}

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

.primary-button:focus-visible {
  outline: 2px solid #d9faff;
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
}

.primary-button > span,
.primary-button > svg {
  position: relative;
  z-index: 1;
}

.primary-button > svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.primary-button:hover:not(:disabled) > svg {
  transform: translateX(3px);
}

.primary-button__busy,
.primary-button__success,
.primary-button__loader {
  display: none;
}

.galaxor-auth[data-state="submitting"] .auth-panel.is-active .primary-button__idle,
.galaxor-auth[data-state="submitting"] .auth-panel.is-active .primary-button__success,
.galaxor-auth[data-state="submitting"] .auth-panel.is-active .primary-button > svg {
  display: none;
}

.galaxor-auth[data-state="submitting"] .auth-panel.is-active .primary-button__busy,
.galaxor-auth[data-state="submitting"] .auth-panel.is-active .primary-button__loader {
  display: block;
}

.galaxor-auth[data-state="submitting"] .auth-panel.is-active .primary-button::before {
  transform: translateX(120%);
  transition-duration: 1.2s;
  transition-timing-function: linear;
}

.primary-button__loader {
  position: relative;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.galaxor-auth[data-state="success"] .auth-panel.is-active .primary-button {
  border-color: rgba(107, 255, 208, 0.82);
  background: linear-gradient(90deg, rgba(15, 112, 101, 0.88), rgba(38, 130, 125, 0.9));
  box-shadow: 0 0 28px rgba(107, 255, 208, 0.2);
}

.galaxor-auth[data-state="success"] .auth-panel.is-active .primary-button__idle,
.galaxor-auth[data-state="success"] .auth-panel.is-active .primary-button__busy,
.galaxor-auth[data-state="success"] .auth-panel.is-active .primary-button > svg {
  display: none;
}

.galaxor-auth[data-state="success"] .auth-panel.is-active .primary-button__success {
  display: block;
}

.panel-switch {
  margin: 21px 0 0;
  color: #8297b5;
  font-size: 0.77rem;
  text-align: center;
}

.panel-switch button {
  font-weight: 700;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 20px;
  color: #8196b3;
  font-size: 0.72rem;
}

.back-button svg {
  width: 17px;
  height: 17px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px -12px -8px;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(107, 168, 231, 0.1);
  color: #566b88;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.card-footer span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 7px rgba(107, 255, 208, 0.75);
}

.page-footer {
  position: fixed;
  z-index: 5;
  right: clamp(22px, 4vw, 70px);
  bottom: max(18px, env(safe-area-inset-bottom));
  left: clamp(22px, 4vw, 70px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
  color: rgba(121, 143, 174, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.jump-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: rgba(2, 5, 17, 0.1);
}

.jump-overlay__ring {
  position: absolute;
  width: 18vmin;
  height: 18vmin;
  border: 2px solid rgba(125, 230, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(83, 196, 255, 0.6), inset 0 0 18px rgba(83, 196, 255, 0.36);
  opacity: 0;
}

.jump-overlay__ring--two {
  border-color: rgba(166, 116, 255, 0.72);
}

.jump-overlay__ring--three {
  border-width: 1px;
}

.jump-overlay__flash {
  position: absolute;
  inset: 0;
  background: #dffaff;
  opacity: 0;
}

.jump-overlay p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.68rem, 1.2vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.34em;
  opacity: 0;
  text-shadow: 0 0 14px var(--cyan);
}

.galaxor-auth[data-state="success"][data-success-kind="login"] .jump-overlay {
  visibility: visible;
  opacity: 1;
}

.galaxor-auth[data-state="success"][data-success-kind="login"] .jump-overlay__ring--one {
  animation: jump-ring 1.25s 0.25s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

.galaxor-auth[data-state="success"][data-success-kind="login"] .jump-overlay__ring--two {
  animation: jump-ring 1.25s 0.38s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

.galaxor-auth[data-state="success"][data-success-kind="login"] .jump-overlay__ring--three {
  animation: jump-ring 1.25s 0.5s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

.galaxor-auth[data-state="success"][data-success-kind="login"] .jump-overlay__flash {
  animation: jump-flash 0.55s 1.06s ease-out forwards;
}

.galaxor-auth[data-state="success"][data-success-kind="login"] .jump-overlay p {
  animation: jump-copy 1.15s 0.24s ease forwards;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 17px;
  border: 1px solid rgba(107, 255, 208, 0.38);
  background: rgba(4, 22, 28, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(107, 255, 208, 0.08);
  color: #c9fff1;
  font-size: 0.78rem;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only,
.screen-reader-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.noscript-message {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 15px;
  border: 1px solid rgba(255, 196, 107, 0.45);
  background: #13101d;
  color: #ffe0aa;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card {
    background: rgba(7, 13, 34, 0.97);
  }

  .alpha-badge {
    background: rgba(4, 10, 27, 0.94);
  }
}

@keyframes scene-breathe {
  0% { transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.055); }
  100% { transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.085); }
}

@keyframes portal-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes portal-pulse {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes portal-core {
  0% { opacity: 0; transform: scale(0.35); }
  25% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(2.6); }
}

@keyframes drone-patrol {
  0%, 12% { left: -8vw; opacity: 0; }
  18% { opacity: 0.8; }
  52% { opacity: 0.8; }
  62%, 100% { left: 72vw; opacity: 0; }
}

@keyframes brand-line {
  to { transform: scaleX(1); }
}

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

@keyframes logo-shimmer {
  0%, 38% { background-position: 100% 50%; }
  62%, 100% { background-position: 0 50%; }
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 255, 208, 0.5), 0 0 9px rgba(107, 255, 208, 0.9); }
  65%, 100% { box-shadow: 0 0 0 7px rgba(107, 255, 208, 0), 0 0 9px rgba(107, 255, 208, 0.9); }
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  to { opacity: 1; transform: translateY(0) perspective(1000px) rotateX(0); }
}

@keyframes gateway-in {
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes gateway-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -6px; }
}

@keyframes gateway-halo {
  0%, 100% { opacity: 0.42; transform: scale(0.88); }
  50% { opacity: 0.78; transform: scale(1.1); }
}

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

@keyframes connection-flow {
  0%, 10% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}

@keyframes card-scan {
  from { top: 0; }
  to { top: 100%; }
}

@keyframes card-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@keyframes reset-spin {
  to { transform: rotate(360deg); }
}

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

@keyframes server-signal {
  0% { box-shadow: 0 0 0 0 rgba(107, 255, 208, 0.36), 0 0 7px rgba(107, 255, 208, 0.9), 0 0 13px rgba(64, 214, 255, 0.62); }
  65%, 100% { box-shadow: 0 0 0 7px rgba(107, 255, 208, 0), 0 0 7px rgba(107, 255, 208, 0.9), 0 0 13px rgba(64, 214, 255, 0.62); }
}

@keyframes server-menu-scan {
  from { left: -35%; }
  to { left: 108%; }
}

@keyframes server-load-in {
  to { transform: scaleX(1); }
}

@keyframes jump-ring {
  0% { opacity: 0; transform: scale(0.35); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(12); }
}

@keyframes jump-flash {
  0% { opacity: 0; }
  30% { opacity: 0.96; }
  100% { opacity: 0; }
}

@keyframes jump-copy {
  0%, 100% { opacity: 0; transform: scale(0.92); }
  20%, 72% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1180px) {
  .mission-copy {
    left: 4vw;
    width: 42vw;
  }

  .universe-readout {
    gap: 22px;
  }

  .universe-readout > div:not(:last-child)::after {
    right: -11px;
  }

  .auth-zone {
    width: 51%;
  }
}

@media (max-width: 930px) {
  body {
    overflow: auto;
  }

  .galaxor-auth {
    min-height: 100dvh;
    overflow: hidden;
  }

  .mission-copy {
    display: none;
  }

  .scene__shade {
    background:
      radial-gradient(circle at 50% 44%, rgba(3, 6, 17, 0.08), rgba(3, 6, 17, 0.72) 65%, rgba(3, 6, 17, 0.94)),
      linear-gradient(180deg, rgba(3, 6, 17, 0.5), transparent 22%, rgba(3, 6, 17, 0.5) 82%, rgba(3, 6, 17, 0.9));
  }

  .scene__backdrop {
    filter: saturate(1.12) brightness(0.58) contrast(1.08);
  }

  .auth-zone {
    width: 100%;
    min-height: 100dvh;
    padding-top: 112px;
    padding-bottom: 76px;
  }

  .auth-card {
    margin-top: 54px;
  }

  .gateway {
    top: calc(50% - 358px);
  }

  .page-footer span:last-child {
    display: none;
  }

  .page-footer {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: max(18px, env(safe-area-inset-top)) 18px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
  }

  .brand__word {
    font-size: 1.13rem;
    letter-spacing: 0.22em;
  }

  .alpha-badge {
    padding: 7px 9px;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .alpha-badge span:last-child {
    font-size: 0;
  }

  .alpha-badge span:last-child::after {
    content: "ALPHA";
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .auth-zone {
    align-items: flex-start;
    padding: 96px 13px 68px;
  }

  .auth-card {
    margin-top: 64px;
    padding: 68px 21px 21px;
    background: rgba(7, 13, 34, 0.91);
  }

  .gateway {
    top: 112px;
    width: 112px;
  }

  .connection-line {
    margin-bottom: 22px;
  }

  .panel-heading {
    margin-bottom: 22px;
  }

  .panel-heading h2 {
    font-size: 1.7rem;
  }

  .form-options {
    align-items: flex-start;
  }

  .check-control,
  .text-link {
    font-size: 0.71rem;
  }

  .primary-button {
    min-height: 55px;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .server-picker__trigger {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 9px;
    padding-right: 10px;
  }

  .server-picker__signal {
    width: 28px;
    height: 28px;
  }

  .server-picker__option {
    grid-template-columns: 24px minmax(0, 1fr) 70px;
    gap: 8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .server-picker__menu {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(8px) scale(0.985);
    transform-origin: bottom;
  }

  .server-picker.is-open .server-picker__menu {
    transform: translateY(0) scale(1);
  }

  .page-footer {
    bottom: max(14px, env(safe-area-inset-bottom));
    font-size: 0.49rem;
  }

  .toast {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
  }

  .drone--two,
  .drone--three {
    display: none;
  }
}

@media (max-height: 790px) and (min-width: 931px) {
  .topbar {
    padding-top: 17px;
  }

  .auth-zone {
    align-items: flex-start;
    padding-top: 70px;
    padding-bottom: 50px;
  }

  .auth-card {
    margin-top: 58px;
  }

  .gateway {
    top: 78px;
    width: 108px;
  }

  .page-footer {
    display: none;
  }
}

@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;
    transition-delay: 0ms !important;
  }

  .energy-field,
  .drone,
  .portal-light,
  .portal-core,
  .scene__scan,
  .gateway__orbit {
    display: none;
  }

  .scene__backdrop {
    inset: 0;
    transform: none;
  }

  .auth-card,
  .gateway,
  .mission-copy > * {
    opacity: 1;
    transform: none;
  }

  .jump-overlay {
    display: none;
  }
}

@media (forced-colors: active) {
  .scene,
  .energy-field,
  .gateway,
  .mission-copy {
    display: none;
  }

  .auth-zone {
    width: 100%;
  }

  .auth-card,
  .field__control,
  .primary-button {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}
