@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

:root {
  /* Core palette aligned with /static/style.css — shared across the game,
     admin, viewer, and landing. Login-specific extensions (panel-strong,
     border-strong, bg3) layered on top for the portal chrome. */
  --bg: #02040a;
  --bg2: #060c18;
  --bg3: #081225;
  --panel: rgba(6, 18, 40, 0.88);
  --panel-strong: rgba(5, 14, 31, 0.94);
  --border: rgba(0, 180, 255, 0.18);
  --border-strong: rgba(0, 200, 255, 0.34);
  --accent: #00c8ff;
  --accent2: #ff6b35;
  --success: #7fff7f;
  --warn: #ffc75a;
  --text: #a8d4f0;
  --text-bright: #d0eaff;
  --text-dim: #3a5a7a;
  --danger: #ff4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 170, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 107, 53, 0.12), transparent 24%),
    linear-gradient(180deg, #040912 0%, #02040a 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
}

#login-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.portal-frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 18px;
}

.portal-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 480px);
  gap: 20px;
  min-height: calc(100vh - 36px);
}

.portal-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(110, 166, 214, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 24%),
    linear-gradient(180deg, rgba(3, 8, 19, 0.48), rgba(3, 8, 19, 0.28));
  box-shadow: var(--shadow);
  pointer-events: none;
}

.portal-story,
.portal-auth {
  position: relative;
  min-width: 0;
}

.story-shell,
.auth-shell {
  position: relative;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(5, 12, 27, 0.78), rgba(5, 10, 23, 0.62));
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.story-shell::before,
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%);
  pointer-events: none;
}

.story-shell::after,
.auth-shell::after {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(0, 200, 255, 0.08);
  pointer-events: none;
}

.story-shell {
  padding: 22px 28px 24px 32px;
}

.auth-shell {
  padding: 22px 24px;
  background:
    radial-gradient(circle at top, rgba(0, 188, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.94), rgba(4, 9, 20, 0.98));
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.portal-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.2));
}

.portal-brand-copy {
  min-width: 0;
}

.portal-brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-bright);
}

.portal-brand-copy span {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-link,
.solid-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
}

.ghost-link,
.solid-link {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.ghost-link {
  border: 1px solid rgba(120, 164, 202, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-link:hover {
  border-color: var(--border-strong);
  color: var(--text-bright);
}

.solid-link {
  border: 1px solid rgba(0, 200, 255, 0.42);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.16), rgba(0, 102, 255, 0.04));
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.08) inset;
}

.solid-link:hover {
  color: var(--text-bright);
  box-shadow: 0 0 22px rgba(0, 200, 255, 0.22);
}

.inline-link {
  color: var(--accent);
  letter-spacing: 0.2em;
}

.inline-link:hover {
  color: var(--text-bright);
}

.story-hero {
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 199, 90, 0.2);
  background: rgba(255, 199, 90, 0.06);
  color: var(--warn);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255, 199, 90, 0.45);
}

.hero-copy h1 {
  margin: 0 0 14px;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-shadow: 0 0 24px rgba(0, 200, 255, 0.08);
}

.hero-copy h1 span {
  display: block;
  color: var(--accent);
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-subnote {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.live-card {
  position: relative;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(10, 19, 40, 0.96), rgba(6, 13, 29, 0.9));
  border: 1px solid rgba(0, 200, 255, 0.12);
  min-height: 88px;
}

.live-card::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.45), transparent);
}

.live-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.live-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}

.live-caption {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-card {
  position: relative;
  padding: 14px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(7, 15, 32, 0.94), rgba(5, 12, 26, 0.82));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.signal-card.is-active,
.signal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 200, 255, 0.28);
  box-shadow: 0 14px 30px rgba(0, 12, 30, 0.4);
}

.signal-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.signal-role small {
  color: var(--accent2);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.signal-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.signal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signal-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.story-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.intel-card,
.screenshot-card {
  position: relative;
  min-height: 100%;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(8, 17, 36, 0.95), rgba(5, 11, 24, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.intel-card h2,
.screenshot-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.intel-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.briefing-foot {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.screenshot-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0, 200, 255, 0.12);
}

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

.screenshot-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.screenshot-meta span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}

.auth-shell-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-header-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--warn);
  text-transform: uppercase;
}

.auth-header-copy span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(127, 255, 127, 0.16);
  background: rgba(127, 255, 127, 0.06);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--success);
  text-transform: uppercase;
}

.auth-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(127, 255, 127, 0.42);
}

.login-card {
  position: relative;
  flex: 1;
  padding: 20px 22px;
  border: 1px solid rgba(0, 200, 255, 0.12);
  background: linear-gradient(180deg, rgba(7, 16, 36, 0.94), rgba(4, 10, 22, 0.98));
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(0, 200, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%);
  pointer-events: none;
}

.logo-wrap {
  position: relative;
  margin-bottom: 10px;
  text-align: center;
}

.logo-glow-ring {
  position: absolute;
  inset: auto 50% 10px auto;
  width: 220px;
  height: 72px;
  transform: translateX(50%);
  background: radial-gradient(circle, rgba(0, 200, 255, 0.16), transparent 70%);
  filter: blur(12px);
}

.login-logo {
  width: min(200px, 66%);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 26px rgba(0, 200, 255, 0.2));
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tagline span {
  color: rgba(0, 200, 255, 0.54);
}

.server-banner {
  margin: 12px 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 199, 90, 0.18);
  background: rgba(255, 199, 90, 0.06);
  color: var(--warn);
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.auth-summary {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.12);
}

.tab-btn {
  position: relative;
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--text-bright);
}

.tab-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0), rgba(0, 200, 255, 1), rgba(0, 200, 255, 0));
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.4);
  transition: left 0.28s ease, width 0.28s ease;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.field-wrap {
  position: relative;
  margin-bottom: 12px;
}

.field-wrap label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition:
    top 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease,
    font-size 0.2s ease,
    background 0.2s ease;
  pointer-events: none;
}

.field-wrap input:focus + label,
.field-wrap input:not(:placeholder-shown) + label,
.field-wrap.has-value label {
  top: 0;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(4, 10, 22, 0.98), rgba(7, 16, 36, 0.98));
  color: var(--accent);
  font-size: 10px;
}

.field-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 12px 44px 12px 14px;
  border: 1px solid rgba(110, 166, 214, 0.16);
  background: rgba(2, 8, 18, 0.84);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-wrap input::placeholder {
  color: transparent;
}

.field-wrap input:focus {
  border-color: rgba(0, 200, 255, 0.64);
  background: rgba(4, 12, 24, 0.98);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.16), 0 0 18px rgba(0, 200, 255, 0.12);
}

.field-wrap::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.field-wrap:focus-within::after {
  transform: scaleX(1);
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--accent);
}

.icon-eye,
.icon-eye-off {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.remember-row,
.auth-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.remember-row label,
.auth-foot-row label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  appearance: none;
  border: 1px solid rgba(110, 166, 214, 0.22);
  background: rgba(5, 13, 27, 0.9);
  position: relative;
}

.remember-row input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: rgba(0, 200, 255, 0.18);
}

.remember-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.btn-submit {
  position: relative;
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 200, 255, 0.38);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18), rgba(0, 105, 255, 0.05));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 46%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.btn-submit:hover {
  color: var(--text-bright);
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.2);
}

.btn-submit:hover::before {
  transform: translateX(120%);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 1.5px solid rgba(0, 200, 255, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

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

.auth-alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  margin-top: 10px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.6;
}

.auth-alert.visible {
  display: flex;
}

.auth-alert.error {
  border-color: rgba(255, 68, 68, 0.24);
  background: rgba(255, 68, 68, 0.08);
  color: #ff8a8a;
}

.auth-alert.success {
  border-color: rgba(127, 255, 127, 0.2);
  background: rgba(127, 255, 127, 0.08);
  color: #b5ffb5;
}

.alert-icon {
  flex-shrink: 0;
}

.auth-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 200, 255, 0.08);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dim);
}

.auth-note strong {
  color: var(--text-bright);
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
  flex-wrap: wrap;
}

.auth-footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-footer-links a {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: var(--accent);
}

.ship-bg {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  filter: brightness(0.5) saturate(0.7);
}

.ship-bg-colossus {
  right: -8%;
  bottom: -10%;
  width: min(44vw, 700px);
  transform: rotate(-7deg);
  animation: shipDrift 24s ease-in-out infinite;
}

.ship-bg-harbinger {
  left: -6%;
  top: 8%;
  width: min(18vw, 300px);
  transform: rotate(10deg) scaleX(-1);
  animation: shipDriftAlt 18s ease-in-out infinite;
}

@keyframes shipDrift {
  0%,
  100% {
    transform: rotate(-7deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-16px);
  }
}

@keyframes shipDriftAlt {
  0%,
  100% {
    transform: rotate(10deg) scaleX(-1) translateY(0);
  }
  50% {
    transform: rotate(12deg) scaleX(-1) translateY(12px);
  }
}

@media (max-width: 1180px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .story-shell {
    padding-bottom: 28px;
  }

  .auth-shell {
    max-width: 720px;
    margin: 0 auto;
  }

  .live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid,
  .story-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-frame {
    padding: 14px;
  }

  .story-shell,
  .auth-shell {
    padding: 22px 18px;
  }

  .portal-nav {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .portal-brand-copy strong {
    font-size: 15px;
    letter-spacing: 0.3em;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 14vw, 56px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .live-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ship-bg {
    display: none;
  }
}

@media (max-width: 560px) {
  .live-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-row,
  .remember-row,
  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-subnote,
  .auth-footer-copy {
    letter-spacing: 0.12em;
  }
}

/* ── Portal Visual Magnet Pass ─────────────────────────── */
body {
  background:
    linear-gradient(115deg, transparent 0%, rgba(0, 200, 255, 0.045) 28%, transparent 48%),
    linear-gradient(245deg, transparent 10%, rgba(255, 107, 53, 0.04) 38%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #040912 0%, #02040a 100%);
}

.portal-grid::before {
  border-color: rgba(120, 218, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.026), transparent 24%),
    linear-gradient(180deg, rgba(3, 8, 19, 0.54), rgba(3, 8, 19, 0.30));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.54),
    0 0 52px rgba(0, 200, 255, 0.055);
}

.story-shell,
.auth-shell {
  border-color: rgba(120, 218, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 0 32px rgba(0, 200, 255, 0.035);
}

.story-shell::after,
.auth-shell::after {
  border-color: rgba(0, 200, 255, 0.12);
}

.portal-brand img,
.login-logo {
  filter:
    drop-shadow(0 0 16px rgba(0, 200, 255, 0.24))
    drop-shadow(0 0 28px rgba(255, 107, 53, 0.08));
}

.hero-copy h1,
.auth-header-copy strong,
.portal-brand-copy strong {
  text-shadow:
    0 0 18px rgba(0, 200, 255, 0.18),
    0 0 42px rgba(255, 107, 53, 0.08);
}

.ghost-link,
.solid-link,
.tab-btn,
.btn-submit,
.pw-toggle {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ghost-link:hover,
.solid-link:hover,
.tab-btn:hover,
.btn-submit:hover,
.pw-toggle:hover {
  transform: translateY(-1px);
}

.live-card,
.signal-card,
.intel-card,
.screenshot-card,
.login-card,
.server-banner,
.auth-note,
.field-wrap input {
  border-color: rgba(120, 218, 255, 0.16);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.035);
}

.live-card,
.signal-card,
.intel-card,
.screenshot-card {
  background:
    linear-gradient(126deg, rgba(0, 200, 255, 0.07), transparent 35%),
    linear-gradient(305deg, rgba(255, 107, 53, 0.045), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.010) 42%, rgba(255,255,255,0) 100%),
    rgba(5, 14, 31, 0.86);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.live-card:hover,
.signal-card:hover,
.intel-card:hover,
.screenshot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 218, 255, 0.30);
  box-shadow:
    0 26px 56px rgba(0,0,0,0.30),
    0 0 34px rgba(0, 200, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.live-value {
  text-shadow: 0 0 18px rgba(0, 200, 255, 0.20);
}

.signal-card.is-active {
  box-shadow:
    0 24px 56px rgba(0,0,0,0.32),
    0 0 32px rgba(255, 107, 53, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.screenshot-card img {
  filter: saturate(1.08) contrast(1.05);
}

.field-wrap input:focus {
  border-color: rgba(0, 200, 255, 0.58);
  box-shadow:
    0 0 0 2px rgba(0, 200, 255, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.045);
}

.btn-submit {
  box-shadow:
    0 16px 30px rgba(0, 200, 255, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.auth-status,
.eyebrow,
.server-banner,
.signal-tags span,
.briefing-foot {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 0 14px rgba(0, 200, 255, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .ghost-link,
  .solid-link,
  .tab-btn,
  .btn-submit,
  .pw-toggle,
  .live-card,
  .signal-card,
  .intel-card,
  .screenshot-card {
    transition: none !important;
  }
}
