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

:root {
  --bg:       #0C0C18;
  --bg2:      #0F0F1C;
  --card:     #13131F;
  --input:    #17172A;
  --border:   #1E1E30;
  --text:     #EEEEF8;
  --text2:    #D0D0E8;
  --text3:    #44445E;
  --amber:    #F59E0B;
  --blue:     #60A5FA;
  --green:    #22C55E;
  --purple:   #A78BFA;
  --red:      #EF4444;
  --radius:   10px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

.login-wrapper {
  display: flex;
  height: 100vh;
}

/* ── HERO ─────────────────────────────────────────── */
.login-hero {
  flex: 1 1 52%;
  background: linear-gradient(135deg, #0C0C18 0%, #12102A 50%, #1A1030 100%);
  display: flex;
  align-items: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.login-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}
.login-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(96,165,250,0.06) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 520px; }

.hero-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 40px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--amber);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #000;
}
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }

.hero-title {
  font-size: 40px; font-weight: 800;
  line-height: 1.15; letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-title .accent { color: var(--amber); }

.hero-desc {
  font-size: 15px; color: var(--text2);
  line-height: 1.6; margin-bottom: 32px;
}

.hero-features {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.feature-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text2);
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.pill-dot.green  { background: var(--green); }
.pill-dot.blue   { background: var(--blue); }
.pill-dot.amber  { background: var(--amber); }
.pill-dot.purple { background: var(--purple); }

.demos-label { font-size: 12px; color: var(--text3); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.demo-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.demo-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.demo-btn:hover { border-color: var(--amber); color: var(--text); background: rgba(245,158,11,0.08); }

.demo-avatar {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #000;
}

/* ── PANEL ─────────────────────────────────────────── */
.login-panel {
  flex: 0 0 440px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.panel-inner { width: 100%; max-width: 360px; }

.panel-tabs {
  display: flex;
  background: var(--input);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 32px;
}
.tab-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 14px; font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.tab-btn.active { background: var(--card); color: var(--text); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.form-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.form-sub   { font-size: 14px; color: var(--text3); margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 7px; }
.field input,
.field select {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus { border-color: var(--amber); }
.field input::placeholder { color: var(--text3); }
.field select { appearance: none; cursor: pointer; }

.input-eye { position: relative; }
.input-eye input { padding-right: 42px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text3);
  padding: 0; display: flex;
}
.eye-btn svg { width: 18px; height: 18px; }

.btn-primary {
  width: 100%;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
}
.btn-primary:hover:not(:disabled) { background: #FBBF24; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert.error   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #FCA5A5; }
.alert.success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86EFAC; }
.alert.hidden  { display: none; }

.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
