/* ============================================================
   Nova Markets — auth pages
   A standalone split-screen editorial layout. Loaded only by
   login.html and signup.html, after brand.css.
   ============================================================ */

:root {
  --nv-ink: #ffffff;
  --nv-text: #e6e6e6;
  --nv-dim: #9b9b9b;
  --nv-muted: #6b6b6b;
  --nv-line: rgba(255, 255, 255, 0.14);
  --nv-line-soft: rgba(255, 255, 255, 0.07);
  --nv-font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nv-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html { background: #000; }

body {
  min-height: 100vh;
  background: #000;
  color: var(--nv-text);
  font-family: var(--nv-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 30% 0%, #000 20%, transparent 78%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ---------------- Header ---------------- */
.nv-auth-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
  padding: 0 40px;
  border-bottom: 1px solid var(--nv-line-soft);
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nv-auth-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nv-auth-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 20px;
  border-left: 1px solid var(--nv-line-soft);
  color: var(--nv-dim);
  font-family: var(--nv-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 140ms ease, background 140ms ease;
}

.nv-auth-nav a:last-child { border-right: 1px solid var(--nv-line-soft); }
.nv-auth-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nv-auth-nav a span { color: var(--nv-muted); }

/* ---------------- Layout ---------------- */
.nv-auth-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 480px);
  min-height: calc(100vh - 76px);
}

.nv-auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 72px 72px 48px 40px;
  border-right: 1px solid var(--nv-line-soft);
}

.nv-auth-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nv-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nv-dim);
}

.nv-auth-kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--nv-ink);
}

.nv-auth-title {
  margin: 30px 0 24px;
  font-family: var(--nv-font);
  font-size: clamp(3.1rem, 6vw, 6.1rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--nv-ink);
}

.nv-auth-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}

.nv-auth-lead {
  max-width: 430px;
  color: var(--nv-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}

.nv-auth-facts {
  width: 100%;
  max-width: 520px;
  margin-top: 46px;
  border-top: 1px solid var(--nv-line);
}

.nv-auth-fact {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--nv-line-soft);
}

.nv-auth-fact b {
  font-family: var(--nv-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--nv-muted);
}

.nv-auth-fact span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nv-text);
}

.nv-auth-fact i {
  font-family: var(--nv-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--nv-muted);
  text-align: right;
}

.nv-auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--nv-mono);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--nv-muted);
}

.nv-auth-foot b { font-weight: 400; color: var(--nv-dim); }

/* ---------------- Form panel ---------------- */
.nv-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.nv-auth-card {
  width: 100%;
  max-width: 420px;
  border-top: 1px solid var(--nv-ink);
  padding-top: 26px;
}

.nv-auth-card::before {
  content: "SECURE SESSION / 256-BIT";
  display: block;
  margin-bottom: 30px;
  font-family: var(--nv-mono);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--nv-muted);
}

.nv-auth-card .card-header { margin-bottom: 34px; }

.nv-auth-card .card-title {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--nv-ink);
}

.nv-auth-card .card-subtitle {
  margin-top: 8px;
  font-size: 0.83rem;
  color: var(--nv-dim);
}

.nv-auth-card .form-group { margin-bottom: 26px; }

.nv-auth-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-family: var(--nv-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nv-muted);
}

.nv-auth-card input {
  width: 100%;
  padding: 13px 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--nv-line);
  color: var(--nv-ink);
  font-size: 1.02rem;
  transition: border-color 140ms ease;
}

.nv-auth-card input::placeholder { color: #4d4d4d; }
.nv-auth-card input:focus { outline: none; border-bottom-color: var(--nv-ink); }

.nv-auth-card .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-top: 6px;
  border: 1px solid var(--nv-ink);
  background: var(--nv-ink);
  color: #000;
  font-family: var(--nv-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.nv-auth-card .btn:hover { background: transparent; color: var(--nv-ink); }
.nv-auth-card .btn:disabled { opacity: 0.55; cursor: wait; }

.nv-auth-terms {
  margin-top: 14px;
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--nv-muted);
}

.nv-auth-terms a { color: var(--nv-dim); border-bottom: 1px solid var(--nv-line); }
.nv-auth-terms a:hover { color: #fff; border-color: #fff; }

.nv-auth-card .footer-link {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--nv-line-soft);
  font-family: var(--nv-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nv-muted);
  text-align: left;
}

.nv-auth-card .footer-link a {
  color: var(--nv-ink);
  border-bottom: 1px solid var(--nv-line);
}

.nv-auth-card .footer-link a:hover { border-color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .nv-auth-main { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); }
  .nv-auth-aside { padding: 56px 48px 40px 32px; }
  .nv-auth-title { font-size: clamp(2.8rem, 5.4vw, 4.6rem); }
  .nv-auth-panel { padding: 40px 32px; }
}

@media (max-width: 900px) {
  .nv-auth-header { height: 66px; padding: 0 20px; }
  .nv-auth-nav a { padding: 0 14px; font-size: 8px; }
  .nv-auth-main { grid-template-columns: 1fr; min-height: 0; }
  .nv-auth-aside {
    border-right: 0;
    border-bottom: 1px solid var(--nv-line-soft);
    padding: 42px 24px 34px;
    gap: 26px;
  }
  .nv-auth-title { margin: 22px 0 18px; font-size: clamp(2.6rem, 10vw, 4rem); }
  .nv-auth-lead { max-width: 560px; }
  .nv-auth-facts { display: none; }
  .nv-auth-foot { display: none; }
  .nv-auth-panel { padding: 34px 24px 64px; }
  .nv-auth-card { max-width: 520px; }
}

@media (max-width: 480px) {
  .nv-auth-header { padding: 0 16px; gap: 12px; }
  .nv-auth-nav a { padding: 0 10px; letter-spacing: 0.12em; }
  .nv-auth-nav a:first-child { display: none; }
  .nv-auth-aside { padding: 34px 20px 28px; }
  .nv-auth-kicker { font-size: 8px; letter-spacing: 0.22em; }
  .nv-auth-title { font-size: 2.75rem; letter-spacing: -0.045em; }
  .nv-auth-lead { font-size: 0.86rem; }
  .nv-auth-panel { padding: 28px 20px 56px; }
  .nv-auth-card::before { margin-bottom: 22px; }
  .nv-auth-card .card-title { font-size: 1.2rem; }
}
