/* OBDX_AUTH_LAYOUT_ONLY_V1 — shared theme lives in site.css */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(8,10,12,.86);
  backdrop-filter: blur(16px);
}
.auth-header nav { display: flex; align-items: center; gap: 24px; }
.network-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 700 9px/1 var(--mono); letter-spacing: .09em; }
.network-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.market-link { padding: 10px 14px; border: 1px solid var(--line); color: var(--ink); font: 700 10px/1 var(--mono); text-decoration: none; text-transform: uppercase; }
.market-link:hover { border-color: var(--acid); color: var(--acid); }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 520px); gap: clamp(40px, 7vw, 110px); align-items: center; width: min(1240px, calc(100% - 40px)); min-height: calc(100vh - 130px); margin: 0 auto; padding: 56px 0; }
.eyebrow { margin: 0 0 14px; color: var(--acid); font: 800 10px/1 var(--mono); letter-spacing: .14em; }
.auth-story h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 5.4vw, 78px); line-height: .98; letter-spacing: -.055em; }
.auth-story h1 span { color: var(--acid); }
.story-copy { max-width: 650px; margin: 28px 0 34px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; }
.market-preview { max-width: 650px; border: 1px solid var(--line); background: rgba(12,15,16,.72); }
.market-preview article { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 16px 20px; }
.market-preview article + article { border-top: 1px solid var(--line); }
.market-preview strong, .market-preview span { display: block; }
.market-preview strong { font: 800 14px/1.2 var(--mono); letter-spacing: .03em; }
.market-preview article div span { margin-top: 7px; color: var(--faint); font-size: 11px; }
.market-preview .market-badge { padding: 7px 9px; color: var(--cyan); border: 1px solid rgba(88,230,210,.3); background: rgba(88,230,210,.06); font: 800 9px/1 var(--mono); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 650px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.trust-row > div { min-width: 0; padding: 16px; background: rgba(12,15,16,.88); }
.trust-row > div > span { color: var(--acid); font: 800 9px/1 var(--mono); }
.trust-row p { margin: 10px 0 0; color: var(--faint); font-size: 10px; line-height: 1.5; }
.trust-row strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; }

.auth-card { position: relative; overflow: hidden; min-height: 620px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.card-accent { position: absolute; top: 0; left: 0; width: 84px; height: 3px; background: var(--acid); box-shadow: 0 0 20px rgba(216,255,62,.55); }
.auth-card h2 { margin: 0; font-size: 31px; letter-spacing: -.035em; }
.card-intro { margin: 12px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 27px; padding: 1px; background: var(--line); }
.mode-switch a { display: grid; min-height: 43px; place-items: center; color: var(--muted); background: var(--surface-2); font: 800 10px/1 var(--mono); text-decoration: none; }
.mode-switch a.active { color: var(--base); background: var(--acid); }
form > label, .label-row label { display: block; margin: 18px 0 8px; color: var(--muted); font: 800 10px/1 var(--mono); text-transform: uppercase; }
.label-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.label-row button, .back-button { padding: 0; color: var(--acid); border: 0; background: transparent; font: 700 10px/1 var(--mono); }
.label-row button { margin-bottom: 8px; }
input { width: 100%; min-height: 50px; padding: 13px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: #0c0f10; font: 13px/1 var(--mono); }
input:focus { border-color: var(--acid); box-shadow: 0 0 0 2px rgba(216,255,62,.07); }
input::placeholder { color: #4f5653; }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.reveal-button { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 58px; color: var(--faint); border: 0; border-left: 1px solid var(--line); background: #101314; font: 800 8px/1 var(--mono); }
.agreement { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 10px; line-height: 1.45; cursor: pointer; }
.agreement input { flex: 0 0 auto; width: 15px; min-height: 15px; margin: 0; accent-color: var(--acid); }
.agreement a { color: var(--acid); text-decoration: underline; text-underline-offset: 2px; }
.agreement a:hover { color: var(--ink); }
.primary-button, .secondary-button { width: 100%; min-height: 48px; margin-top: 22px; border: 0; font: 800 11px/1 var(--mono); letter-spacing: .035em; }
.primary-button { color: var(--base); background: var(--acid); }
.primary-button:hover { background: #e3ff70; }
.primary-button:disabled { color: var(--faint); background: #1b2021; cursor: wait; }
.secondary-button { margin-top: 10px; color: var(--ink); border: 1px solid var(--line); background: transparent; }
.form-note { margin: 12px 0 0; color: var(--faint); font-size: 10px; line-height: 1.5; }
.back-button { margin-bottom: 28px; }
.code-input { text-align: center; font-size: 20px; letter-spacing: .32em; }
.status-message { margin-top: 18px; padding: 12px 14px; color: var(--cyan); border: 1px solid rgba(88,230,210,.28); background: rgba(88,230,210,.06); font-size: 11px; line-height: 1.45; }
.status-message.error { color: var(--red); border-color: rgba(255,107,99,.3); background: rgba(255,107,99,.06); }
.security-footer { position: absolute; right: clamp(28px,4vw,48px); bottom: 25px; left: clamp(28px,4vw,48px); margin: 0; padding-top: 17px; color: var(--faint); border-top: 1px solid var(--line); font-size: 9px; line-height: 1.4; }
.security-footer span { margin-right: 7px; color: var(--acid); }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(20px,4vw,68px); color: var(--faint); border-top: 1px solid var(--line); font: 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; width: min(720px, calc(100% - 32px)); }
  .auth-story h1 { font-size: clamp(40px, 9vw, 68px); }
  .auth-card { min-height: 600px; }
}
@media (max-width: 620px) {
  .auth-header { min-height: 68px; padding: 0 16px; }
  .network-state { display: none; }
  .market-link { padding: 9px; }
  .auth-shell { width: calc(100% - 24px); padding: 35px 0; }
  .auth-story h1 { font-size: 42px; }
  .story-copy { margin: 20px 0 25px; }
  .trust-row { grid-template-columns: 1fr; }
  .auth-card { min-height: 640px; padding: 30px 22px 92px; }
  .security-footer { right: 22px; bottom: 24px; left: 22px; }
  .auth-footer { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* OBDX_DYNAMIC_HOME_MARKETS_V1 */

.obdx-market-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.obdx-market-asset-logo {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: contain;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .obdx-market-title {
    gap: 8px;
  }

  .obdx-market-asset-logo {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

/* OBDX_HOME_MARKET_POLISH_V1 */

[data-obdx-market-card].obdx-market-card {
  min-height: 76px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  transition: background-color 140ms ease, border-color 140ms ease;
}

[data-obdx-market-card].obdx-market-card:hover {
  background-color: rgba(255, 255, 255, 0.018);
}

[data-obdx-market-card] .obdx-market-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 38px;
  color: #f4f7fa !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

[data-obdx-market-card] .obdx-market-asset-logo {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-obdx-market-card] .obdx-market-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

[data-obdx-market-card] .obdx-market-pair-base {
  color: #a9b4bf;
  font-size: 15px;
  font-weight: 600;
}

[data-obdx-market-card] .obdx-market-pair-divider {
  color: #536170;
  font-size: 14px;
  font-weight: 500;
}

[data-obdx-market-card] .obdx-market-pair-quote {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

[data-obdx-market-card] [data-obdx-market-description] {
  display: block !important;
  margin-top: 3px !important;
  margin-left: 52px !important;
  color: #758392 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

[data-obdx-market-card] .obdx-market-open {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 58px !important;
  min-height: 28px !important;
  padding: 6px 11px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.045em !important;
}

[data-obdx-market-card] .obdx-market-open.paused {
  color: var(--amber) !important;
  border-color: rgba(255, 193, 90, 0.30) !important;
  background: rgba(255, 193, 90, 0.07) !important;
}

@media (max-width: 640px) {
  [data-obdx-market-card].obdx-market-card {
    min-height: 70px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  [data-obdx-market-card] .obdx-market-title {
    gap: 11px !important;
    min-height: 34px;
  }

  [data-obdx-market-card] .obdx-market-asset-logo {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  [data-obdx-market-card] .obdx-market-pair {
    gap: 6px;
  }

  [data-obdx-market-card] .obdx-market-pair-base {
    font-size: 14px;
  }

  [data-obdx-market-card] .obdx-market-pair-quote {
    font-size: 16px;
  }

  [data-obdx-market-card] [data-obdx-market-description] {
    margin-left: 45px !important;
    font-size: 11px !important;
  }

  [data-obdx-market-card] .obdx-market-open {
    min-width: 52px !important;
    min-height: 26px !important;
    padding: 5px 9px !important;
    font-size: 9px !important;
  }
}
