:root {
  --bg: #040a12;
  --panel: #07121f;
  --panel-deep: #030912;
  --gold: #ddb56d;
  --gold-soft: rgba(221,181,109,.34);
  --cyan: #75b9d8;
  --cyan-soft: rgba(117,185,216,.28);
  --text: #edf3f7;
  --muted: #7f95a8;
  --line: rgba(125,173,199,.16);
  --danger: #e3a2a2;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.auth-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 17% 14%, rgba(49,101,136,.15), transparent 31%),
    radial-gradient(circle at 86% 75%, rgba(18,77,111,.13), transparent 34%),
    linear-gradient(145deg, #050c15 0%, #07121f 45%, #030812 100%);
}

.space-background,
.space-background > * { position: absolute; inset: 0; pointer-events: none; }
.space-background { z-index: -2; overflow: hidden; }
.space-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(113,169,199,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113,169,199,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.nebula { filter: blur(3px); opacity: .7; }
.nebula-a { background: radial-gradient(ellipse at 11% 70%, rgba(31,102,145,.16), transparent 42%); }
.nebula-b { background: radial-gradient(ellipse at 82% 18%, rgba(178,135,69,.075), transparent 38%); }
.star-field {
  opacity: .6;
  background-image: radial-gradient(circle, rgba(218,236,247,.86) 0 1px, transparent 1.3px);
  background-size: 92px 92px;
  background-position: 16px 32px;
  animation: star-drift 48s linear infinite;
}
.stars-near { opacity: .23; background-size: 151px 151px; background-position: 72px 12px; animation-duration: 72s; }
.planet-glow {
  width: 46vw;
  height: 46vw;
  min-width: 480px;
  min-height: 480px;
  left: auto;
  right: -20vw;
  top: 17vh;
  border-radius: 50%;
  border: 1px solid rgba(107,169,199,.1);
  background:
    radial-gradient(circle at 30% 30%, rgba(84,148,181,.12), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6,21,35,.12) 0 58%, rgba(58,126,165,.07) 59%, transparent 61%);
  box-shadow: 0 0 90px rgba(52,124,165,.07), inset 18px -15px 60px rgba(0,0,0,.35);
}
.horizon-grid {
  top: auto;
  height: 34vh;
  bottom: -17vh;
  transform: perspective(520px) rotateX(68deg) scaleX(1.3);
  transform-origin: center top;
  background:
    linear-gradient(rgba(109,177,211,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,177,211,.07) 1px, transparent 1px);
  background-size: 46px 34px;
  opacity: .38;
}

.auth-nav {
  position: relative;
  z-index: 4;
  width: min(1320px, calc(100% - 72px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(116,173,202,.12);
}
.auth-nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.antara-brand { display: inline-flex; align-items: center; gap: 12px; }
.antara-brand svg { width: 35px; height: 35px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.antara-brand .brand-dot { fill: var(--gold); stroke: none; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy b { font-family: Georgia, "Times New Roman", serif; font-size: 16px; letter-spacing: .22em; font-weight: 500; }
.brand-copy small { color: var(--muted); font-size: 7px; letter-spacing: .28em; }
.nav-status { display: flex; align-items: center; gap: 9px; color: #8297a8; font-size: 8px; letter-spacing: .18em; }
.nav-status b { color: #bcd7e4; font-weight: 600; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px rgba(117,185,216,.65); animation: status-pulse 2.5s ease-in-out infinite; }

.registration-layout {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 72px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: clamp(52px, 7vh, 92px) 0 clamp(42px, 6vh, 76px);
  display: grid;
  grid-template-columns: minmax(300px, .83fr) minmax(520px, 1.17fr);
  gap: clamp(54px, 7vw, 108px);
  align-items: center;
}

.mission-brief { position: relative; max-width: 490px; padding: 24px 0 32px; }
.brief-index { margin-bottom: 32px; color: #667d90; font-size: 8px; letter-spacing: .24em; }
.brief-index span { color: var(--gold); }
.eyebrow { margin: 0 0 15px; color: var(--gold); font-size: 9px; letter-spacing: .36em; }
.mission-brief h1 {
  margin: 0;
  max-width: 490px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 61px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.brief-copy { max-width: 440px; margin: 22px 0 0; color: #8da0af; font-size: 13px; line-height: 1.8; letter-spacing: .015em; }

.orbit-display { position: relative; width: 190px; height: 90px; margin: 38px 0 28px; }
.orbit-core { position: absolute; left: 0; top: 50%; width: 70px; height: 70px; transform: translateY(-50%); display: grid; place-items: center; }
.orbit-core::before { content: ""; position: absolute; inset: 9px; clip-path: polygon(50% 0,88% 12%,100% 50%,88% 88%,50% 100%,12% 88%,0 50%,12% 12%); border: 1px solid rgba(221,181,109,.22); }
.orbit-core svg { width: 52px; fill: none; stroke: rgba(221,181,109,.78); stroke-width: 1.15; overflow: visible; animation: orbit-breathe 5s ease-in-out infinite alternate; }
.orbit-line { position: absolute; left: 62px; height: 1px; transform-origin: left; }
.orbit-line-a { top: 35px; width: 110px; background: linear-gradient(90deg, rgba(221,181,109,.7), rgba(117,185,216,.25), transparent); }
.orbit-line-b { top: 54px; width: 83px; background: linear-gradient(90deg, rgba(117,185,216,.5), transparent); }
.orbit-node { position: absolute; width: 4px; height: 4px; transform: rotate(45deg); border: 1px solid var(--gold); }
.node-a { left: 103px; top: 32px; }
.node-b { left: 140px; top: 51px; border-color: var(--cyan); }

.brief-data { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(122,177,204,.13); padding-top: 16px; gap: 12px; }
.brief-data div { min-width: 0; }
.brief-data small { display: block; margin-bottom: 5px; color: #5e7587; font-size: 7px; letter-spacing: .2em; }
.brief-data strong { color: #b9c8d2; font-size: 8px; letter-spacing: .1em; font-weight: 600; white-space: nowrap; }
.brief-data .ready { color: var(--gold); }

.registration-console {
  position: relative;
  width: 100%;
  max-width: 650px;
  justify-self: end;
  padding: 32px 34px 24px;
  background:
    linear-gradient(180deg, rgba(9,23,36,.86), rgba(4,12,21,.9)),
    linear-gradient(90deg, rgba(221,181,109,.025), transparent 35%, rgba(117,185,216,.025));
  border-top: 1px solid rgba(221,181,109,.37);
  border-bottom: 1px solid rgba(117,185,216,.25);
  box-shadow: 0 24px 80px rgba(0,0,0,.33), inset 0 0 0 1px rgba(113,168,197,.075);
  clip-path: polygon(18px 0, calc(100% - 46px) 0, 100% 35px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 40px 100%, 0 calc(100% - 40px), 0 18px);
  isolation: isolate;
}
.registration-console::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(117,185,216,.22), transparent 24%) top left / 34% 1px no-repeat,
    linear-gradient(270deg, rgba(221,181,109,.18), transparent 38%) bottom right / 42% 1px no-repeat;
}
.console-corner { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.corner-tl { top: 9px; left: 9px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner-tr { top: 9px; right: 9px; border-top: 1px solid rgba(117,185,216,.7); border-right: 1px solid rgba(117,185,216,.7); }
.corner-bl { bottom: 9px; left: 9px; border-bottom: 1px solid rgba(117,185,216,.55); border-left: 1px solid rgba(117,185,216,.55); }
.corner-br { bottom: 9px; right: 9px; border-bottom: 1px solid rgba(221,181,109,.6); border-right: 1px solid rgba(221,181,109,.6); }
.console-scan { position: absolute; left: 4%; right: 4%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(117,185,216,.58), transparent); opacity: .38; animation: console-scan 6.5s ease-in-out infinite; }

.console-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(123,177,204,.11); }
.console-head p { margin: 0 0 7px; color: #6d8496; font-size: 7px; letter-spacing: .26em; }
.console-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 2vw, 30px); font-weight: 400; letter-spacing: .015em; }
.console-code { display: flex; align-items: center; gap: 7px; padding-top: 4px; color: #7691a4; font-size: 8px; letter-spacing: .18em; white-space: nowrap; }
.console-code span { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 7px rgba(221,181,109,.42); }

.registration-form { display: grid; gap: 16px; padding-top: 22px; }
.field-row { display: grid; gap: 16px; }
.field-row-two { grid-template-columns: 1fr 1fr; }
.field-group { display: grid; gap: 7px; min-width: 0; }
.field-label { display: flex; align-items: center; justify-content: space-between; color: #8ca1b2; font-size: 7px; letter-spacing: .17em; }
.field-label b { font-weight: 600; }
.field-label i { color: #50697c; font-style: normal; font-size: 7px; }
.input-frame {
  position: relative;
  display: flex;
  align-items: center;
  height: 45px;
  background: rgba(2,8,14,.34);
  border-top: 1px solid rgba(112,172,202,.23);
  border-bottom: 1px solid rgba(112,172,202,.12);
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
  transition: border-color .2s ease, background .2s ease;
}
.input-frame::before,
.input-frame::after { content: ""; position: absolute; pointer-events: none; }
.input-frame::before { left: 0; top: 0; width: 24px; height: 1px; background: var(--gold); opacity: .55; }
.input-frame::after { right: 0; bottom: 0; width: 20px; height: 1px; background: var(--cyan); opacity: .45; }
.input-frame:focus-within { border-top-color: rgba(221,181,109,.48); background: rgba(4,14,23,.52); }
.input-frame input { width: 100%; height: 100%; min-width: 0; padding: 0 14px; color: #edf3f7; background: transparent; border: 0; outline: 0; font-size: 12px; letter-spacing: .02em; }
.input-frame input::placeholder { color: #4f6678; }
.field-node { position: absolute; right: 10px; top: 50%; width: 4px; height: 4px; transform: translateY(-50%) rotate(45deg); border: 1px solid rgba(117,185,216,.42); }
.password-frame input { padding-right: 62px; }
.password-toggle { position: absolute; right: 12px; border: 0; padding: 5px 0; color: #70899b; background: transparent; cursor: pointer; font-size: 7px; letter-spacing: .16em; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--gold); outline: 0; }
.field-error { min-height: 10px; color: var(--danger); font-size: 8px; line-height: 1.25; letter-spacing: .025em; }
.field-group.is-invalid .input-frame { border-top-color: rgba(227,162,162,.52); border-bottom-color: rgba(227,162,162,.24); }

.consent-row { display: grid; grid-template-columns: 15px 1fr; gap: 10px; align-items: start; color: #71899a; font-size: 9px; line-height: 1.55; cursor: pointer; }
.consent-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-ui { position: relative; width: 14px; height: 14px; margin-top: 1px; border: 1px solid rgba(117,185,216,.36); background: rgba(2,8,14,.28); }
.consent-row input:checked + .check-ui::after { content: ""; position: absolute; left: 3px; top: 1px; width: 5px; height: 8px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(42deg); }
.terms-error { margin-top: -10px; }

.register-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  margin-top: 2px;
  padding: 0 17px 0 15px;
  color: #09111a;
  border: 0;
  background: linear-gradient(90deg, #d4a95f, #e7c782 48%, #d6aa61);
  clip-path: polygon(10px 0, calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: filter .2s ease, transform .2s ease;
}
.register-button::before { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 1px; background: rgba(255,255,255,.36); }
.register-button:hover { filter: brightness(1.06); }
.register-button:active { transform: translateY(1px); }
.button-leading { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.button-leading i { width: 5px; height: 5px; background: #13212b; transform: rotate(45deg); }
.register-button svg { width: 19px; height: 19px; fill: none; stroke: #101b24; stroke-width: 1.6; }
.form-note { margin: -2px 0 0; color: #526a7c; font-size: 8px; line-height: 1.55; letter-spacing: .025em; }
.form-note.is-success { color: #9cc6d7; }

.console-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 21px; padding-top: 14px; border-top: 1px solid rgba(123,177,204,.1); color: #5e7789; font-size: 7px; letter-spacing: .15em; }
.console-footer a { color: #8299a9; transition: color .2s ease; }
.console-footer a:hover { color: var(--gold); }
.console-footer a span { margin-right: 4px; }

@keyframes star-drift { to { background-position: 16px 124px; } }
@keyframes status-pulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@keyframes orbit-breathe { from { transform: rotate(-1deg); opacity:.72; } to { transform: rotate(4deg); opacity:1; } }
@keyframes console-scan { 0%,100% { transform: translateY(18px); opacity:.08; } 50% { transform: translateY(470px); opacity:.36; } }

@media (max-width: 980px) {
  .auth-nav { width: min(100% - 40px, 900px); height: 76px; }
  .registration-layout { width: min(100% - 40px, 760px); grid-template-columns: 1fr; gap: 34px; padding-top: 42px; }
  .mission-brief { max-width: 650px; padding-bottom: 0; }
  .mission-brief h1 { max-width: 650px; font-size: clamp(38px, 7vw, 56px); }
  .brief-copy { max-width: 570px; }
  .orbit-display { display: none; }
  .brief-data { max-width: 620px; margin-top: 26px; }
  .registration-console { max-width: 760px; justify-self: stretch; }
  .planet-glow { right: -38vw; top: 10vh; opacity: .7; }
}

@media (max-width: 620px) {
  .auth-nav { width: calc(100% - 28px); height: 68px; }
  .brand-copy b { font-size: 14px; }
  .brand-copy small { font-size: 6px; }
  .nav-status span:not(.status-dot) { display: none; }
  .registration-layout { width: calc(100% - 28px); gap: 26px; padding: 30px 0 34px; }
  .mission-brief { padding-top: 10px; }
  .brief-index { margin-bottom: 20px; }
  .eyebrow { font-size: 8px; }
  .mission-brief h1 { font-size: clamp(34px, 11vw, 46px); line-height: 1.02; }
  .brief-copy { margin-top: 17px; font-size: 12px; line-height: 1.7; }
  .brief-data { grid-template-columns: 1fr 1fr; gap: 13px; }
  .brief-data div:nth-child(3) { display: none; }
  .registration-console { padding: 27px 18px 20px; clip-path: polygon(13px 0,calc(100% - 28px) 0,100% 24px,100% calc(100% - 13px),calc(100% - 13px) 100%,27px 100%,0 calc(100% - 28px),0 13px); }
  .console-head h2 { font-size: 24px; }
  .console-code { display: none; }
  .field-row-two { grid-template-columns: 1fr; }
  .registration-form { gap: 14px; }
  .input-frame { height: 46px; }
  .console-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .planet-glow { display: none; }
}

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

/* ANTARA account backend integration */
.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 4px;
  border: 1px solid rgba(117,185,216,.14);
  background: rgba(2,8,14,.38);
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}
.auth-mode-button {
  min-height: 36px;
  border: 1px solid transparent;
  color: #71899a;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.auth-mode-button:hover { color: #c8d8e2; }
.auth-mode-button.is-active {
  color: #edd39b;
  border-color: rgba(221,181,109,.3);
  background: linear-gradient(90deg, rgba(221,181,109,.09), rgba(117,185,216,.05));
  box-shadow: inset 0 0 18px rgba(221,181,109,.035);
}
.registration-form[hidden], .account-session[hidden] { display: none !important; }
.registration-form.is-submitting { opacity: .72; pointer-events: none; }
.registration-form.is-submitting .register-button { cursor: wait; }
.form-note.is-error { color: var(--danger); }
.account-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(117,185,216,.16);
  background: rgba(4,13,22,.58);
}
.account-session div { display: grid; gap: 4px; }
.account-session small { color: #5e7789; font-size: 7px; letter-spacing: .16em; }
.account-session strong { color: #dfeaf0; font-size: 11px; letter-spacing: .08em; }
.account-session button {
  min-width: 76px;
  height: 32px;
  border: 1px solid rgba(221,181,109,.25);
  color: #d6b979;
  background: rgba(221,181,109,.05);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
}
.account-session span { color: #688397; font-size: 8px; letter-spacing: .04em; word-break: break-word; }
.auth-mode-switch[hidden] { display: none !important; }


/* ANTARA OFFICIAL LOGO OVERRIDE 2026-10-03 */
.antara-brand {
  width: clamp(58px, 5vw, 76px);
  line-height: 0;
}
.antara-brand .antara-logo-auth {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 700px) {
  .antara-brand { width: 54px; }
}
