:root {
  --access-void: #04070e;
  --access-abyss: #070d18;
  --access-panel: #0a1322;
  --access-line: #15263c;
  --access-ice: #dde9f6;
  --access-read: #b9cbdd;
  --access-mute: #7b93ac;
  --access-cyan: #2ab6ff;
  --access-beam: #8ce6ff;
  --access-ember: #ff8a2b;
  --access-mint: #3ee8a8;
}

body.auth-page-redesign {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--access-void);
  color: var(--access-ice);
  font-family: "Syne", system-ui, sans-serif;
}

.auth-page-redesign .auth-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(520px, 0.8fr);
  width: 100vw;
  max-width: none;
  margin: 0;
  min-height: 100svh;
  background: var(--access-void);
}

.auth-page-redesign .auth-access-left {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(26px, 3vw, 48px) clamp(24px, 3.7vw, 64px);
  overflow: hidden;
  border-right: 1px solid var(--access-line);
  background:
    radial-gradient(circle at 1px 1px, rgba(42, 182, 255, 0.13) 1px, transparent 1.4px) 0 0 / 34px 34px,
    linear-gradient(135deg, #06101d 0%, #04070e 74%);
}

.auth-page-redesign .auth-access-left::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 7, 14, 0.9) 0%, rgba(4, 7, 14, 0.62) 44%, rgba(4, 7, 14, 0.05) 84%);
}

.auth-access-figure {
  position: absolute;
  inset: 0 -5% 0 auto;
  z-index: 1;
  width: 64%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.auth-access-figure img {
  width: auto;
  max-width: none;
  height: 108%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.58;
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-composite: intersect;
  animation: authFigureIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-access-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 44%, rgba(140, 230, 255, 0.07) 50%, transparent 56%);
  animation: authScan 8s linear infinite;
}

@keyframes authFigureIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 0.58; transform: scale(1); }
}

@keyframes authScan {
  from { transform: translateY(-58%); }
  to { transform: translateY(58%); }
}

.auth-access-topbar,
.auth-page-redesign .auth-access-left-content,
.auth-page-redesign .auth-access-footer {
  position: relative;
  z-index: 5;
}

.auth-access-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-page-redesign .auth-access-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--access-ice);
  text-decoration: none;
}

.auth-page-redesign .auth-access-logo-mark {
  width: 42px;
  height: 42px;
}

.auth-page-redesign .auth-access-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-access-logo-copy {
  display: grid;
  gap: 3px;
}

.auth-access-logo-copy strong {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.auth-access-logo-copy strong::after {
  content: "TM";
  display: inline-block;
  margin-left: 3px;
  color: #8ce6ff;
  font: 600 0.42em/1 "DM Mono", monospace;
  letter-spacing: 0;
  vertical-align: super;
}

.auth-access-logo-copy small,
.auth-access-back {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--access-mute);
}

.auth-access-back {
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease;
}

.auth-access-back:hover,
.auth-access-back:focus-visible {
  color: var(--access-beam);
}

.auth-page-redesign .auth-access-left-content {
  width: min(680px, 52%);
  margin-top: auto;
  margin-bottom: auto;
  padding: clamp(44px, 8vh, 90px) 0 34px;
}

.auth-page-redesign .auth-access-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--access-cyan);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.auth-page-redesign .auth-access-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--access-ember);
}

.auth-page-redesign .auth-access-headline {
  margin: 18px 0 0;
  color: var(--access-ice);
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.auth-page-redesign .auth-access-headline em {
  background: linear-gradient(96deg, var(--access-ember), #ffc46b 40%, var(--access-beam) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.auth-page-redesign .auth-access-copy {
  max-width: 48ch;
  margin: 22px 0 0;
  color: var(--access-mute);
  font-size: 15px;
  line-height: 1.75;
}

.auth-page-redesign .auth-access-ticker-card {
  position: relative;
  max-width: 500px;
  margin-top: clamp(26px, 4vh, 40px);
  overflow: hidden;
  border: 1px solid rgba(42, 182, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.94), rgba(4, 7, 14, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.auth-page-redesign .auth-access-ticker-card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--access-ember);
  border-left: 1px solid var(--access-ember);
}

.auth-page-redesign .auth-access-ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--access-line);
  color: var(--access-mute);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.auth-page-redesign .auth-access-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--access-mint);
}

.auth-page-redesign .auth-access-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--access-mint);
  box-shadow: 0 0 10px var(--access-mint);
}

.auth-page-redesign .auth-access-ticker-price {
  padding: 18px 16px 14px;
  color: var(--access-ice);
  font-family: "DM Mono", monospace;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: 0.05em;
}

.auth-page-redesign .auth-access-ticker-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--access-line);
}

.auth-page-redesign .auth-access-meta-item {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--access-line);
}

.auth-page-redesign .auth-access-meta-item:last-child {
  border-right: 0;
}

.auth-page-redesign .auth-access-meta-label,
.auth-page-redesign .auth-access-meta-value {
  overflow: hidden;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-page-redesign .auth-access-meta-label { color: var(--access-mute); }
.auth-page-redesign .auth-access-meta-value { color: var(--access-read); }
.auth-page-redesign .auth-access-meta-value.is-bullish { color: var(--access-mint); }
.auth-page-redesign .auth-access-meta-value.is-gold { color: #ffc46b; }

.auth-page-redesign .auth-access-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 22px;
}

.auth-page-redesign .auth-access-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--access-mute);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.auth-page-redesign .auth-access-trust-dash {
  width: 14px;
  height: 1px;
  background: var(--access-cyan);
}

.auth-page-redesign .auth-access-footer {
  display: flex;
  gap: 22px;
  margin-top: auto;
  padding-top: 18px;
}

.auth-page-redesign .auth-access-footer a {
  color: var(--access-mute);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.auth-page-redesign .auth-access-right {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(28px, 3.2vw, 64px);
  background:
    radial-gradient(circle at 1px 1px, rgba(42, 182, 255, 0.08) 1px, transparent 1.4px) 0 0 / 34px 34px,
    linear-gradient(145deg, #07101c, #04070e 72%);
}

.auth-page-redesign .auth-access-form-wrap {
  width: min(560px, 100%);
  border: 1px solid var(--access-line);
  background: rgba(7, 13, 24, 0.92);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.auth-page-redesign .auth-access-tab-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--access-line);
}

.auth-page-redesign .auth-access-tab {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--access-line);
  background: transparent;
  color: var(--access-mute);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-page-redesign .auth-access-tab:last-child { border-right: 0; }
.auth-page-redesign .auth-access-tab.active {
  color: var(--access-ice);
  background: rgba(42, 182, 255, 0.06);
  box-shadow: inset 0 -2px var(--access-cyan);
}

.auth-page-redesign .access-panel {
  padding: clamp(28px, 4vw, 48px);
}

.auth-page-redesign .access-panel[hidden] { display: none !important; }

.auth-page-redesign .auth-access-form-eyebrow {
  margin: 0 0 12px;
  color: var(--access-cyan);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.auth-page-redesign .auth-access-form-title {
  margin: 0;
  color: var(--access-ice);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
}

.auth-page-redesign .auth-access-form-copy {
  margin: 14px 0 24px;
  color: var(--access-mute);
  font-size: 14px;
  line-height: 1.65;
}

.auth-page-redesign .auth-access-google-btn,
.auth-page-redesign .auth-access-submit {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--access-line);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-page-redesign .auth-access-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0a1322;
  color: var(--access-ice);
}

.auth-page-redesign .auth-access-google-icon { width: 18px; height: 18px; }

.auth-page-redesign .auth-access-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--access-mute);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.auth-page-redesign .auth-access-or::before,
.auth-page-redesign .auth-access-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--access-line);
}

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

.auth-page-redesign .auth-access-field { display: grid; gap: 8px; }
.auth-page-redesign .auth-access-label {
  color: var(--access-read);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-page-redesign .auth-access-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--access-line);
  border-radius: 0;
  outline: 0;
  background: #07101c;
  color: var(--access-ice);
  padding: 0 14px;
  font: inherit;
}

.auth-page-redesign .auth-access-input:focus {
  border-color: var(--access-cyan);
  box-shadow: 0 0 0 3px rgba(42, 182, 255, 0.08);
}

.auth-page-redesign .password-input-wrap { position: relative; }
.auth-page-redesign .password-input-wrap .auth-access-input { padding-right: 70px; }
.auth-page-redesign .password-toggle-button {
  position: absolute;
  top: 50%;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--access-beam);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-page-redesign .auth-access-submit {
  margin-top: 4px;
  border-color: var(--access-cyan);
  background: linear-gradient(96deg, #1aa3e8, #60d4ff);
  color: #03101a;
  font-weight: 700;
}

.auth-page-redesign .auth-access-link {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--access-beam);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.auth-page-redesign .auth-access-error,
.auth-page-redesign .auth-access-status {
  min-height: 18px;
  color: #ff8692;
  font-size: 12px;
}

.auth-page-redesign .auth-access-benefits {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--access-line);
}

.auth-page-redesign .auth-access-benefit-item {
  display: flex;
  gap: 10px;
  color: var(--access-mute);
  font-size: 11px;
  line-height: 1.5;
}

.auth-page-redesign .auth-access-benefit-dash { color: var(--access-cyan); }

@media (max-width: 1180px) {
  .auth-page-redesign .auth-access-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(480px, 0.85fr);
  }

  .auth-page-redesign .auth-access-left-content {
    width: min(590px, 62%);
  }

  .auth-access-figure {
    right: -10%;
    width: 70%;
  }
}

@media (max-width: 980px) {
  .auth-page-redesign .auth-access-layout { grid-template-columns: 1fr; }
  .auth-page-redesign .auth-access-left { min-height: auto; border-right: 0; border-bottom: 1px solid var(--access-line); }
  .auth-page-redesign .auth-access-left-content { margin: 0; padding: 70px 0 34px; }
  .auth-page-redesign .auth-access-right { min-height: auto; padding-block: 54px; }
  .auth-access-figure { width: 65%; opacity: 0.55; }
}

@media (max-width: 620px) {
  .auth-page-redesign .auth-access-left { padding: 22px 20px; }
  .auth-access-back { display: none; }
  .auth-page-redesign .auth-access-logo-mark { width: 36px; height: 36px; }
  .auth-access-logo-copy strong { font-size: 15px; }
  .auth-page-redesign .auth-access-left-content { width: 100%; padding-top: 56px; }
  .auth-page-redesign .auth-access-headline { font-size: clamp(42px, 15vw, 62px); }
  .auth-page-redesign .auth-access-ticker-meta { grid-template-columns: repeat(2, 1fr); }
  .auth-page-redesign .auth-access-meta-item:nth-child(2) { border-right: 0; }
  .auth-page-redesign .auth-access-meta-item:nth-child(-n + 2) { border-bottom: 1px solid var(--access-line); }
  .auth-page-redesign .auth-access-trust-list { display: grid; }
  .auth-page-redesign .auth-access-right { padding: 30px 16px 48px; }
  .auth-page-redesign .access-panel { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-access-figure img,
  .auth-access-scan { animation: none; }
}

/* Ground the access form in a continuous right-hand surface. */
body.auth-page.auth-page-redesign .auth-access-right {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 100svh;
  padding: 0;
  overflow-y: auto;
  border-left: 1px solid rgba(42, 182, 255, 0.14);
  background:
    radial-gradient(circle at 1px 1px, rgba(42, 182, 255, 0.075) 1px, transparent 1.4px) 0 0 / 34px 34px,
    linear-gradient(155deg, #081321 0%, #050a13 58%, #04070e 100%);
}

body.auth-page.auth-page-redesign .auth-access-form-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(7, 15, 27, 0.96), rgba(4, 8, 16, 0.98));
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.24);
}

body.auth-page.auth-page-redesign .auth-access-tab-row {
  align-self: start;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--access-line);
  background: rgba(7, 14, 25, 0.92);
}

body.auth-page.auth-page-redesign .auth-access-tab {
  min-height: 66px;
}

body.auth-page.auth-page-redesign .access-panel {
  align-self: center;
  width: min(440px, calc(100% - 72px));
  margin: auto;
  padding: 52px 0;
}

@media (max-width: 980px) {
  body.auth-page.auth-page-redesign .auth-access-right {
    min-height: 100svh;
  }

  body.auth-page.auth-page-redesign .auth-access-form-wrap {
    min-height: 100svh;
  }
}

@media (max-width: 620px) {
  body.auth-page.auth-page-redesign .access-panel {
    width: min(440px, calc(100% - 40px));
    padding: 38px 0;
  }
}

/* Preserve the original robot composition; move only the access controls beside it. */
@media (min-width: 981px) {
  body.auth-page.auth-page-redesign .auth-access-right {
    align-items: stretch;
    justify-content: flex-start;
    border-left: 0;
    background: var(--access-void);
  }

  body.auth-page.auth-page-redesign .auth-access-form-wrap {
    width: min(500px, 100%);
    max-width: 500px;
    min-height: 100svh;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

body.auth-page.auth-page-redesign .auth-access-tab-row {
  background: transparent;
}

body.auth-page.auth-page-redesign .access-panel {
  width: min(440px, 100%);
}

@media (max-width: 980px) {
  body.auth-page.auth-page-redesign .auth-access-form-wrap {
    width: min(480px, calc(100% - 40px));
    margin-inline: auto;
  }
}

/* Let the access controls sit directly on the page surface—no pasted-on outer card. */
body.auth-page.auth-page-redesign .auth-access-form-wrap {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the mode switch attached to the form heading instead of the viewport top. */
body.auth-page.auth-page-redesign .auth-access-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(24px, 5vh, 56px);
}

body.auth-page.auth-page-redesign .auth-access-tab-row {
  align-self: center;
  width: min(440px, 100%);
  margin: 0 auto 18px;
  flex: 0 0 auto;
}

body.auth-page.auth-page-redesign .access-panel {
  align-self: auto;
  margin: 0 auto;
  padding: 0 0 28px;
}

body.auth-page.auth-page-redesign[data-auth-mode="signup"] .auth-access-form-wrap {
  justify-content: flex-start;
}

body.auth-page.auth-page-redesign .auth-access-tab {
  background: transparent;
  color: var(--access-mute);
}

body.auth-page.auth-page-redesign .auth-access-tab.is-active {
  color: #050608;
  background: #c9a84c;
}

body.auth-page.auth-page-redesign .auth-access-tab:not(.is-active):hover {
  color: var(--access-ice);
  background: rgba(42, 182, 255, 0.05);
}
