/* ─── Trading-themed auth layout ─────────────────────────────────────────── */
:root {
  --brand:       #16d99b;   /* Pioneer emerald */
  --brand-dark:  #0db584;
  --green:       #16d99b;
  --red:         #ff4d6d;
  --gold:        #f0c75e;   /* Pioneer gold accent */
  --dark-bg:     #070b14;   /* Midnight */
  --dark-panel:  #0a101c;
  --dark-card:   #0e1626;
  --border-dim:  rgba(132,148,180,.14);
  --text-light:  #f3f6fb;
  --muted-light: #8494b4;
  --radius:      14px;
}

/* Primary buttons in the Pioneer palette (dark surfaces) */
.btn-primary {
  --bs-btn-bg: #0db584;
  --bs-btn-border-color: #0db584;
  --bs-btn-color: #03140e;
  --bs-btn-hover-bg: #16d99b;
  --bs-btn-hover-border-color: #16d99b;
  --bs-btn-hover-color: #03140e;
  --bs-btn-active-bg: #0a9e73;
  --bs-btn-active-border-color: #0a9e73;
  --bs-btn-active-color: #03140e;
  --bs-btn-disabled-bg: #0db584;
  --bs-btn-disabled-border-color: #0db584;
  font-weight: 600;
}

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

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Sora', system-ui, sans-serif;
  background: var(--dark-bg);
  display: flex;
  align-items: stretch;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* LEFT PANEL — branding + chart animation */
.auth-left {
  flex: 0 0 46%;
  background: var(--dark-panel);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
}

/* Radial glow blob */
.auth-left::before {
  content: '';
  position: absolute;
  top: -120px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,200,150,.12) 0%, transparent 65%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(26,115,232,.10) 0%, transparent 65%);
  pointer-events: none;
}

/* Brand */
.auth-brand {
  position: relative;
  z-index: 2;
}
.auth-brand-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  text-decoration: none;
}
.auth-brand-name span { color: var(--green); }

/* Chart area */
.auth-chart-area {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.chart-svg {
  width: 100%;
  max-width: 420px;
  height: 220px;
  overflow: visible;
}

/* Animated chart line */
.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 2.2s ease-out .4s forwards;
}
.chart-area-fill {
  stroke: none;
  fill: url(#chartGrad);
  opacity: 0;
  animation: fadeInArea 1.8s ease-out 1.2s forwards;
}
.chart-dot {
  fill: var(--green);
  filter: drop-shadow(0 0 6px var(--green));
  opacity: 0;
  animation: popDot .4s ease-out 2.5s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeInArea {
  to { opacity: 1; }
}
@keyframes popDot {
  0%   { opacity:0; r:0; }
  70%  { r:8; }
  100% { opacity:1; r:5; }
}

/* Candlestick decoration bars */
.candle-group { opacity: .55; }
.candle-bar { rx: 2; }
.candle-wick { stroke-width: 1.5; stroke-linecap: round; }

/* Floating price badges */
.price-badge {
  position: absolute;
  background: var(--dark-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: .4rem .75rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-light);
  z-index: 3;
  backdrop-filter: blur(8px);
  animation: floatBadge 4s ease-in-out infinite;
}
.price-badge .sym { color: var(--muted-light); font-weight: 500; margin-right: .3em; }
.price-badge.up   { color: var(--green); }
.price-badge.dn   { color: var(--red); }
.price-badge:nth-child(1) { top: 18%; right: 6%; animation-delay:0s; }
.price-badge:nth-child(2) { top: 42%; left: 2%;  animation-delay:.8s; }
.price-badge:nth-child(3) { top: 68%; right: 8%; animation-delay:1.5s; }

@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Feature bullets */
.auth-features {
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .83rem;
  color: var(--muted-light);
}
.auth-features li::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Ticker strip */
.auth-ticker {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  overflow: hidden;
  border-top: 1px solid var(--border-dim);
  padding-top: .75rem;
}
.ticker-track {
  display: flex;
  gap: 2rem;
  animation: tickerScroll 22s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted-light);
}
.ticker-item .t-sym { color: #fff; margin-right: .3em; }
.ticker-item .t-up  { color: var(--green); }
.ticker-item .t-dn  { color: var(--red); }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RIGHT PANEL — form */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #fff;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  margin-bottom: 1.8rem;
  text-align: center;
}
.auth-logo a {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -.3px;
}
.auth-logo a span { color: var(--green); }

.auth-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0b1425;
  letter-spacing: -.4px;
  margin: 0 0 .2rem;
  text-align: center;
}
.auth-sub {
  text-align: center;
  color: #6b7280;
  font-size: .88rem;
  margin-bottom: 1.8rem;
}

/* Form fields */
.form-control, .form-select {
  border-radius: 9px;
  border: 1.5px solid #e5e7eb;
  font-size: .9rem;
  padding: .6rem .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(26,115,232,.12);
  outline: none;
}
.form-label { font-size: .83rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }

.btn-primary {
  background: var(--brand);
  border: none;
  font-weight: 700;
  padding: .65rem 1.2rem;
  border-radius: 9px;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: background .2s, transform .1s;
}
.btn-primary:hover  { background: var(--brand-dark); }
.btn-primary:active { transform: scale(.98); }

.btn-outline-secondary {
  border-radius: 9px;
  font-size: .88rem;
}

a { color: var(--brand); }
.text-sm { font-size: .84rem; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #9ca3af;
  font-size: .78rem;
  margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Simple centered-card layout (forgot-password, reset-password) ──────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--dark-bg);
}

.auth-wrapper .auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-split  { flex-direction: column; }
  .auth-left   { display: none; }
  .auth-right  { min-height: 100vh; padding: 2rem 1.25rem; background: #f8fafd; }
  .auth-card   { max-width: 100%; }
}
