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

:root {
  --orange: #ff4d00;
  --dark: #080808;
  --surface: #111111;
  --surface2: #181818;
  --text: #f0ece4;
  --muted: rgba(240,236,228,0.42);
  --border: rgba(255,255,255,0.07);
}

html, body {
  width: 100%; height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow: hidden;
}

/* ═══════════ INTRO ═══════════ */
#intro {
  position: fixed; inset: 0; z-index: 999;
  background: #050505;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
}

#intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro-logo {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transform: scale(0.88);
  animation: pop-in 0.7s 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes pop-in { to { opacity:1; transform:scale(1); } }

.intro-logo-box {
  width: 68px; height: 68px; background: var(--orange);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 24px; color: #fff;
  box-shadow: 0 0 60px rgba(255,77,0,0.5);
  animation: glow-pulse 2.5s 1.4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 40px rgba(255,77,0,0.3); }
  50%      { box-shadow: 0 0 90px rgba(255,77,0,0.7); }
}

.intro-logo-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 24px; letter-spacing: 3px; text-transform: uppercase; color: var(--text);
}
.intro-logo-name span { color: var(--orange); }

.intro-tag {
  position: relative; z-index: 2;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(240,236,228,0.3);
  opacity: 0; animation: pop-in 0.5s 1.1s ease forwards;
}

.intro-bar-wrap {
  position: relative; z-index: 2;
  width: 220px; height: 1px; background: rgba(255,255,255,0.07);
  opacity: 0; animation: pop-in 0.5s 1.3s ease forwards; overflow: visible;
}

.intro-bar {
  height: 1px; background: var(--orange); width: 0%;
  animation: bar-fill 1.8s 1.5s cubic-bezier(0.4,0,0.2,1) forwards;
  box-shadow: 0 0 10px var(--orange); position: relative;
}
.intro-bar::after {
  content: ''; position: absolute; right: -3px; top: -3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 14px var(--orange);
}
@keyframes bar-fill { to { width: 100%; } }

#intro.exit { animation: intro-out 0.9s cubic-bezier(0.76,0,0.24,1) forwards; }
@keyframes intro-out { to { opacity:0; transform:scale(1.05); pointer-events:none; } }

/* ═══════════ MAIN ═══════════ */
#main { opacity: 0; transition: opacity 0.7s ease; width: 100%; height: 100vh; }
#main.visible { opacity: 1; }

/* CRITICAL: true 50/50 side-by-side split */
.page {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
}

/* ── LEFT ── */
.left {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 52px 44px;
}

#wave-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.07; pointer-events: none;
}

.glow-blob {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,0,0.15) 0%, transparent 65%);
  bottom: -100px; right: -60px; pointer-events: none;
  animation: blob 6s ease-in-out infinite;
}
@keyframes blob { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.017) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}

.left-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px;
}

.logo-box {
  width: 36px; height: 36px; background: var(--orange); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 12px; color: #fff;
  flex-shrink: 0;
}

.logo-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text);
}
.logo-name span { color: var(--orange); }

/* Hero block — vertically centered in remaining space */
.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 16px 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 22px;
}
.eyebrow-dot {
  width: 5px; height: 5px; background: var(--orange); border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 5.5vw, 88px);
  line-height: 0.88; letter-spacing: 2px; color: var(--text); margin-bottom: 22px;
}
.hero-title .acc { color: var(--orange); }

.hero-desc {
  font-size: 14px; font-weight: 300; line-height: 1.75;
  color: var(--muted); max-width: 380px; margin-bottom: 28px;
}

.tags-row { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.5px;
  padding: 4px 11px;
  border: 1px solid rgba(255,77,0,0.22);
  color: rgba(255,77,0,0.7); background: rgba(255,77,0,0.05);
  clip-path: polygon(5px 0%,100% 0%,calc(100% - 5px) 100%,0% 100%);
}

/* Stats bar at bottom of left */
.stats-row {
  position: relative; z-index: 2;
  display: flex; gap: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--orange); line-height: 1;
}
.stat-lbl {
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.v-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ── RIGHT ── */
.right {
  width: 420px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 44px;
  position: relative;
  overflow: hidden;
}

/* subtle top glow */
.right::before {
  content: ''; position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%); width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ─ Login header ─ */
.login-header { margin-bottom: 28px; }

.login-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.login-eyebrow-dot {
  width: 4px; height: 4px; background: var(--orange); border-radius: 50%;
  animation: blink 1.6s 0.5s ease-in-out infinite;
}

.login-title {
  font-family: 'Syne', sans-serif;
  font-size: 21px; font-weight: 800; color: var(--text);
  line-height: 1.2; margin-bottom: 7px;
}

.login-sub {
  font-size: 13px; font-weight: 300;
  color: var(--muted); line-height: 1.6;
}

/* waveform mini */
.wf-row {
  display: flex; align-items: center; gap: 3px;
  height: 20px; margin-bottom: 26px;
}
.wb {
  width: 2px; background: rgba(255,77,0,0.5); border-radius: 2px;
  animation: wdance 1.1s ease-in-out infinite;
}
@keyframes wdance { 0%,100%{transform:scaleY(0.2)} 50%{transform:scaleY(1)} }

/* ─ Form ─ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}

.form-input {
  width: 100%; padding: 12px 15px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 14px; outline: none; border-radius: 0;
  clip-path: polygon(7px 0%,100% 0%,calc(100% - 7px) 100%,0% 100%);
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(240,236,228,0.18); }
.form-input:focus { border-color: var(--orange); background: rgba(255,77,0,0.04); }

.pw-wrap { position: relative; }
.pw-eye {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  line-height: 0; padding: 0; transition: color 0.2s;
}
.pw-eye:hover { color: var(--orange); }

.forgot-row {
  display: flex; justify-content: flex-end;
  margin-top: 5px; margin-bottom: 20px;
}
.forgot {
  font-size: 11px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.forgot:hover { color: var(--orange); }

/* Login CTA */
.btn-enter {
  width: 100%; padding: 14px 20px;
  background: var(--orange); color: #fff;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: none; cursor: pointer;
  clip-path: polygon(9px 0%,100% 0%,calc(100% - 9px) 100%,0% 100%);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 0.2s, transform 0.15s;
  position: relative; overflow: hidden;
}
.btn-enter::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.12),transparent);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn-enter:hover::after { transform: translateX(100%); }
.btn-enter:hover { opacity: 0.87; transform: translateY(-1px); }
.btn-enter.loading .btn-txt { opacity: 0; }
.btn-enter.loading .spinner { display: block; }

.spinner {
  display: none; position: absolute;
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.err {
  display: none; margin-top: 9px;
  padding: 9px 13px;
  background: rgba(255,50,50,0.07);
  border: 1px solid rgba(255,50,50,0.2);
  font-size: 11px; color: #ff7070; text-align: center;
}
.err.show { display: block; }

/* divider + note */
.or-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.or-line { flex: 1; height: 1px; background: var(--border); }
.or-txt { font-size: 10px; color: rgba(240,236,228,0.16); letter-spacing: 1px; text-transform: uppercase; }

.access-note {
  text-align: center; font-size: 11px;
  color: rgba(240,236,228,0.18); line-height: 1.7;
}
.access-note strong { color: rgba(255,77,0,0.5); font-weight: 500; }

/* footer */
.right-foot {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
}
.right-foot span { font-size: 10px; color: rgba(240,236,228,0.1); }

/* ═══════════ RESPONSIVE ═══════════ */
/* ── Tablet landscape (≤1024px) ── */
@media (max-width: 1024px) {
  .left  { padding: 36px 40px 40px; }
  .right { width: 380px; padding: 0 36px; }

  .hero-title { font-size: clamp(44px, 5vw, 72px); }
}

/* ── Tablet portrait (≤820px) — stack vertically ── */
@media (max-width: 820px) {
  html, body { overflow: auto; }

  #main { height: auto; }

  .page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  /* Left hero becomes top banner */
  .left {
    padding: 36px 28px 40px;
    min-height: auto;
    border-bottom: 1px solid var(--border);
  }

  .hero-title { font-size: clamp(42px, 8vw, 68px); }
  .hero-desc  { max-width: 100%; font-size: 13px; }

  .stats-row { gap: 20px; }
  .stat-num  { font-size: 24px; }

  /* Right form becomes bottom section */
  .right {
    width: 100%;
    padding: 44px 28px 56px;
    border-left: none;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }

  .right::before { display: none; }
}

/* ── Mobile (≤540px) ── */
@media (max-width: 540px) {
  .left { padding: 28px 20px 32px; }

  .hero-title  { font-size: clamp(36px, 11vw, 56px); letter-spacing: 1px; }
  .hero-desc   { font-size: 12px; margin-bottom: 20px; }
  .eyebrow     { font-size: 9px; margin-bottom: 16px; }

  .tags-row { gap: 5px; }
  .tag      { font-size: 9px; padding: 3px 9px; }

  .stats-row { gap: 14px; padding-top: 18px; flex-wrap: wrap; }
  .stat-num  { font-size: 22px; }
  .stat-lbl  { font-size: 9px; }
  .v-divider { display: none; }

  /* Form panel */
  .right { padding: 36px 20px 48px; }

  .login-title   { font-size: 18px; }
  .login-sub     { font-size: 12px; }
  .login-header  { margin-bottom: 22px; }

  .form-input    { padding: 11px 13px; font-size: 13px; }
  .btn-enter     { padding: 13px 20px; font-size: 12px; }

  .wf-row        { margin-bottom: 20px; }
  .or-row        { margin: 14px 0; }

  .right-foot    { position: relative; bottom: auto; margin-top: 28px; }
}

/* ── Small mobile (≤375px) ── */
@media (max-width: 375px) {
  .left  { padding: 24px 16px 28px; }
  .right { padding: 28px 16px 40px; }

  .hero-title  { font-size: 34px; }
  .logo-name   { font-size: 14px; }
  .logo-box    { width: 30px; height: 30px; font-size: 10px; }

  .login-title { font-size: 16px; }
  .form-input  { padding: 10px 12px; }
  .btn-enter   { padding: 12px 16px; }
}