/* ══════════════════════════════════════════════════════════════════
   NIGHT AUCTION COMMAND DECK — sign-in stage (scoped to .auth-stage)
   Deep petrol base · amber→ember headlight signature · 3D depth
   ══════════════════════════════════════════════════════════════════ */
.auth-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.5rem, 4vw, 4.5rem);
  color: #EDF1F5;
  background:
    radial-gradient(120% 80% at 78% 8%, #17222e 0%, transparent 55%),
    radial-gradient(90% 90% at 10% 100%, #14100c 0%, transparent 55%),
    linear-gradient(160deg, #090c11 0%, #0b1017 55%, #0a0d12 100%);
  font-family: 'Inter', system-ui, sans-serif;
}
.auth-stage * { box-sizing: border-box; }

/* ── Cinematic background ── */
.stage-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage-bg__mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 40% at 72% 18%, rgba(255,176,32,0.16), transparent 60%),
    radial-gradient(46% 46% at 20% 82%, rgba(255,90,31,0.13), transparent 62%),
    radial-gradient(30% 34% at 50% 50%, rgba(61,133,214,0.10), transparent 60%);
  filter: blur(6px);
  animation: meshDrift 22s ease-in-out infinite alternate;
}
@keyframes meshDrift { 0% { transform: translate3d(-3%,-2%,0) scale(1); } 100% { transform: translate3d(3%,2%,0) scale(1.08); } }
.stage-bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,150,180,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,180,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 80%);
}
.stage-bg__beam {
  position: absolute; top: -30%; right: -10%; width: 60%; height: 160%;
  background: conic-gradient(from 210deg at 100% 0%, rgba(255,176,32,0.10), transparent 22%);
  transform-origin: top right;
  animation: beamSweep 9s ease-in-out infinite alternate;
}
@keyframes beamSweep { 0% { transform: rotate(-6deg); opacity: .5; } 100% { transform: rotate(4deg); opacity: .9; } }
.stage-bg__car {
  position: absolute; bottom: 4%; left: 50%; width: min(760px, 82vw);
  transform: translateX(-50%); opacity: 0.30;
}
.stage-bg__lamp { animation: lampPulse 3.2s ease-in-out infinite; }
@keyframes lampPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ── Live lot feed (3D tilted marquee) ── */
.lot-feed {
  position: absolute; z-index: 1; top: 0; right: -2%; height: 100%; width: 380px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.lot-rail {
  display: flex; flex-direction: column; gap: 14px;
  transform: rotateX(14deg) rotateY(-22deg) rotateZ(4deg);
  animation: railScroll 34s linear infinite;
}
@keyframes railScroll {
  from { transform: rotateX(14deg) rotateY(-22deg) rotateZ(4deg) translateY(0); }
  to   { transform: rotateX(14deg) rotateY(-22deg) rotateZ(4deg) translateY(-50%); }
}
.lot-chip {
  display: flex; align-items: center; gap: 12px; width: 320px;
  padding: 10px; border-radius: 16px;
  background: rgba(20,27,36,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}
.lot-chip__thumb {
  position: relative; width: 82px; height: 58px; border-radius: 10px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.lot-chip__src {
  position: absolute; top: 5px; left: 5px; font-size: 8px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 5px; border-radius: 5px; background: rgba(0,0,0,0.5); color: #FFC96B;
}
.lot-chip__meta { flex: 1; min-width: 0; }
.lot-chip__name { font-size: 12.5px; font-weight: 600; color: #E9EEF4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-chip__lot { font-family: var(--font-mono); font-size: 10px; color: #7F8EA0; margin-top: 3px; letter-spacing: .02em; }
.lot-chip__bid { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: #FFB020; flex: none; }

/* ── Hero copy ── */
.auth-hero { position: relative; z-index: 2; max-width: 560px; }
.brand-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(1.5rem, 5vh, 3rem); }
.brand-badge__mark {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 15px; letter-spacing: .02em;
  color: #0a0d12; background: linear-gradient(135deg, #FFC24B, #FF5A1F);
  padding: 5px 9px; border-radius: 8px; box-shadow: 0 6px 20px -6px rgba(255,120,30,0.6);
}
.brand-badge__line { width: 26px; height: 1px; background: linear-gradient(90deg, #FFB020, transparent); }
.brand-badge__tag { font-size: 11px; font-weight: 600; letter-spacing: .22em; color: #7F8EA0; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: clamp(10px, 1.4vw, 12px); font-weight: 500;
  letter-spacing: .2em; color: #93A2B4; margin-bottom: 1.1rem;
}
.hero-eyebrow span { color: #FF5A1F; }
.hero-title {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.025em;
  color: #F4F8FC; text-wrap: balance;
}
.hero-title__accent {
  background: linear-gradient(100deg, #FFC24B 0%, #FF8A2B 40%, #FF5A1F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 1.4rem; max-width: 46ch; font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  line-height: 1.65; color: #9CAABB;
}
.hero-stats { display: flex; gap: clamp(1rem, 3vw, 2.4rem); margin-top: clamp(1.6rem, 5vh, 2.6rem); }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.9rem); color: #FFB020; line-height: 1; }
.hero-stat span { font-size: 11.5px; color: #8593A3; letter-spacing: .02em; }

/* ── Auth dock (glass card) ── */
.auth-dock { position: relative; z-index: 3; display: flex; justify-content: center; }
.auth-glass {
  position: relative; width: 100%; max-width: 400px; padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(165deg, rgba(28,37,49,0.86), rgba(15,20,27,0.9));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
}
.auth-glass__glow {
  position: absolute; top: -40%; right: -30%; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(255,150,40,0.22), transparent 70%);
  pointer-events: none;
}
/* Content stacks above the glow — but must NOT re-position the glow itself,
   or it drops into flow and pushes everything down (leaving an empty top). */
.auth-glass > *:not(.auth-glass__glow) { position: relative; }
.auth-glass__glow { position: absolute; }
.auth-glass__title { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: #F4F8FC; margin-top: 1.1rem; }
.auth-glass__sub { font-size: 0.85rem; color: #93A2B4; margin-top: 0.25rem; margin-bottom: 1.3rem; }
.auth-glass__err { margin-top: 1rem; font-size: 0.82rem; color: #FF7A6B; }
.auth-glass__foot { margin-top: 1.3rem; font-size: 11px; text-align: center; color: #6C7A8B; }

/* Scoped dark form controls + toggle */
.auth-stage .field-label { color: #93A2B4; font-weight: 500; }
.auth-stage .field-input {
  background: rgba(9,13,18,0.6); border-color: rgba(255,255,255,0.12); color: #EDF1F5;
}
.auth-stage .field-input::placeholder { color: #5D6B7C; }
.auth-stage .field-input:focus {
  border-color: #FFB020; box-shadow: 0 0 0 3px rgba(255,176,32,0.18); background: rgba(9,13,18,0.85);
}
.auth-stage .auth-toggle { background: rgba(9,13,18,0.55); border: 1px solid rgba(255,255,255,0.08); }
.auth-stage .auth-toggle button { color: #93A2B4; }
.auth-stage .auth-toggle button.is-active { background: rgba(255,255,255,0.08); color: #F4F8FC; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

/* Ignite button (amber→ember) */
.btn-ignite {
  background: linear-gradient(100deg, #FFC24B, #FF7A2B 55%, #FF5A1F);
  color: #1a0f04; font-weight: 700; border: none;
  box-shadow: 0 12px 30px -10px rgba(255,110,30,0.65);
}
.btn-ignite:hover { filter: brightness(1.06); box-shadow: 0 16px 38px -10px rgba(255,110,30,0.8); }

/* Responsive */
@media (max-width: 960px) {
  .auth-stage { grid-template-columns: 1fr; align-content: center; gap: 2rem; }
  .lot-feed { display: none; }
  .stage-bg__car { opacity: 0.16; }
  .auth-hero { text-align: center; margin: 0 auto; }
  .brand-badge, .hero-stats { justify-content: center; }
  .auth-dock { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-bg__mesh, .stage-bg__beam, .stage-bg__lamp, .lot-rail { animation: none !important; }
}
