/* ============================================================
   Kirish sahifasi — insightx maketi: chapda qorong'i brend paneli
   (illyustratsiya + statistika chiplari), o'ngda forma.
   ============================================================ */
:root {
  --lp-bg: radial-gradient(circle at 30% 20%, #142a5e 0%, #0a1230 55%, #070c1f 100%);
  --lp-glow-a: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
  --lp-glow-b: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  --lp-text: #f8fafc;
  --lp-text-muted: rgba(226, 232, 240, 0.62);
  --lp-text-dim: rgba(255, 255, 255, 0.42);
  --lp-hairline: rgba(255, 255, 255, 0.08);
  --lp-window: rgba(15, 23, 42, 0.78);
  --lp-window-bar: rgba(30, 41, 59, 0.9);
  --lp-card-a: rgba(30, 41, 59, 0.95);
  --lp-card-b: rgba(15, 23, 42, 0.95);
  --lp-card-stroke: rgba(148, 163, 184, 0.18);
  --lp-line: rgba(148, 163, 184, 0.28);
  --lp-line-strong: rgba(226, 232, 240, 0.75);
  --lp-chart: #60a5fa;
  --lp-area-a: rgba(96, 165, 250, 0.38);
  --lp-area-b: rgba(96, 165, 250, 0);
  --lp-ok: #34d399;
  --lp-ok-soft: rgba(52, 211, 153, 0.18);
  --lp-dot-r: #f87171;
  --lp-dot-y: #fbbf24;
  --lp-dot-g: #34d399;
  --lp-right-bg: var(--slate-50);
  --lp-input-bg: var(--slate-100);
  --lp-submit: #14205a;
  --lp-submit-hover: #1a2a70;
  --lp-submit-active: #0e1740;
}
:root[data-theme="dark"] {
  --lp-right-bg: #0e1626;
  --lp-input-bg: #0b1220;
  --lp-submit: var(--blue-600);
  --lp-submit-hover: var(--blue-500);
  --lp-submit-active: var(--blue-700);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lp-right-bg: #0e1626;
    --lp-input-bg: #0b1220;
    --lp-submit: var(--blue-600);
    --lp-submit-hover: var(--blue-500);
    --lp-submit-active: var(--blue-700);
  }
}

.lp-body { display: flex; flex-direction: column; min-height: 100dvh; background: var(--navy-950); }
.lp-bg { position: fixed; inset: 0; z-index: -1; background: var(--lp-bg); }

/* ---------- Chap panel ---------- */
.lp-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-4);
  color: var(--lp-text);
  overflow: hidden;
}
.lp-left::before, .lp-left::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.lp-left::before { width: 500px; height: 500px; top: -100px; right: -150px; background: var(--lp-glow-a); }
.lp-left::after { width: 320px; height: 320px; bottom: 60px; left: -80px; background: var(--lp-glow-b); }
.lp-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lp-brand, .lp-content, .lp-stats { position: relative; z-index: 1; }
.lp-brand { display: flex; align-items: center; gap: var(--sp-3); }
.lp-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-sm);
  color: var(--white);
  background: var(--accent-gradient);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lp-brand-name { font-size: var(--fs-lg); font-weight: var(--fw-extrabold); letter-spacing: -0.01em; }
.lp-brand-name span { color: var(--nav-accent-bright); }

.lp-content { display: none; flex: 1; flex-direction: column; justify-content: center; align-self: center; width: 100%; max-width: 720px; gap: var(--sp-4); }
.lp-kicker { display: inline-flex; align-items: center; gap: var(--sp-2); align-self: flex-start; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); background: rgba(96, 165, 250, 0.12); border: 1px solid rgba(96, 165, 250, 0.25); color: var(--blue-200); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.lp-title { color: var(--lp-text); font-size: var(--fs-3xl); font-weight: var(--fw-extrabold); line-height: 1.15; letter-spacing: -0.02em; }
.lp-title span { background: linear-gradient(90deg, var(--nav-accent-bright), var(--violet-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { color: var(--lp-text-muted); font-size: var(--fs-md); max-width: 560px; }
.lp-hero { width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45)); }

/* SVG ranglari (tokenlardan) */
.lp-stop-card-a { stop-color: var(--lp-card-a); }
.lp-stop-card-b { stop-color: var(--lp-card-b); }
.lp-stop-area-a { stop-color: var(--lp-area-a); }
.lp-stop-area-b { stop-color: var(--lp-area-b); }
.lp-stop-accent-a { stop-color: var(--blue-500); }
.lp-stop-accent-b { stop-color: var(--violet-500); }
.lp-window { fill: var(--lp-window); stroke: var(--lp-card-stroke); }
.lp-window-bar { fill: var(--lp-window-bar); }
.lp-card-stroke { stroke: var(--lp-card-stroke); }
.lp-dot-r { fill: var(--lp-dot-r); }
.lp-dot-y { fill: var(--lp-dot-y); }
.lp-dot-g { fill: var(--lp-dot-g); }
.lp-line { fill: var(--lp-line); }
.lp-line-strong { fill: var(--lp-line-strong); }
.lp-line-accent { fill: var(--nav-accent-bright); }
.lp-pill { fill: var(--lp-ok-soft); }
.lp-chart-line { fill: none; stroke: var(--lp-chart); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.lp-chart-dot { fill: var(--white); stroke: var(--lp-chart); stroke-width: 3; }
.lp-axis { stroke: var(--lp-line); stroke-width: 1; }
.lp-dash { stroke: var(--lp-line); stroke-dasharray: 4 4; }
.lp-barcode rect { fill: var(--lp-line-strong); }
.lp-bag { fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
.lp-ok-bg { fill: var(--lp-ok-soft); }
.lp-ok { fill: none; stroke: var(--lp-ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Suzuvchi animatsiya — faqat transform */
.lp-float { animation: lp-float 6s ease-in-out infinite; transform-box: fill-box; }
.lp-float-2 { animation-delay: -1.5s; }
.lp-float-3 { animation-delay: -3s; }
.lp-float-4 { animation-delay: -4.5s; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.lp-stats { display: none; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); margin: 0; padding: var(--sp-6) 0 0; list-style: none; border-top: 1px solid var(--lp-hairline); }
.lp-stat { display: flex; align-items: center; gap: var(--sp-3); }
.lp-stat > span:last-child { display: flex; flex-direction: column; }
.lp-stat-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--stat-soft); color: var(--stat-color); box-shadow: inset 0 0 0 1px var(--stat-ring); }
.lp-stat-val { font-family: var(--font-mono); font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--white); line-height: 1.2; }
.lp-stat-lbl { font-size: var(--fs-2xs); color: var(--lp-text-dim); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.lp-stat-catalog { --stat-color: #60a5fa; --stat-soft: rgba(96, 165, 250, 0.16); --stat-ring: rgba(96, 165, 250, 0.35); }
.lp-stat-pos { --stat-color: #34d399; --stat-soft: rgba(52, 211, 153, 0.16); --stat-ring: rgba(52, 211, 153, 0.35); }
.lp-stat-stock { --stat-color: #fbbf24; --stat-soft: rgba(251, 191, 36, 0.16); --stat-ring: rgba(251, 191, 36, 0.35); }
.lp-stat-online { --stat-color: #a78bfa; --stat-soft: rgba(167, 139, 250, 0.16); --stat-ring: rgba(167, 139, 250, 0.35); }
.lp-stat-report { --stat-color: #38bdf8; --stat-soft: rgba(56, 189, 248, 0.16); --stat-ring: rgba(56, 189, 248, 0.35); }

/* ---------- O'ng panel: forma ---------- */
.lp-right {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--sp-8) var(--sp-4) var(--sp-12);
  background: var(--lp-right-bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.lp-theme {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lp-theme:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.lp-theme:active { transform: scale(0.95); }
.lp-form-wrap { width: 100%; max-width: 380px; }
.lp-form-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-4);
  border-radius: 22px;
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  background: var(--accent-gradient);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.lp-form-title { text-align: center; font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); color: var(--text-strong); }
.lp-form-sub { text-align: center; margin: var(--sp-2) 0 var(--sp-8); font-size: var(--fs-sm); color: var(--text-muted); }
.lp-error { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); background: var(--danger-soft); color: var(--danger-text); border: 1px solid var(--danger); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.lp-field { margin-bottom: var(--sp-4); }
.lp-label { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-body); }
.lp-input-wrap { position: relative; }
.lp-input-wrap > [data-lucide] { position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.lp-input {
  width: 100%;
  min-height: 46px;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--lp-input-bg);
  color: var(--text-strong);
  font-family: inherit;
  font-size: var(--fs-md);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.lp-input:hover { border-color: var(--border-default); }
.lp-input:focus { outline: none; border-color: var(--accent); background: var(--surface-card); box-shadow: var(--shadow-focus); }
.lp-input[aria-invalid="true"] { border-color: var(--danger); }
.lp-input::placeholder { color: var(--text-muted); }
.lp-input.has-toggle { padding-right: 48px; }
.lp-pwd-toggle {
  position: absolute;
  right: var(--sp-2);
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lp-pwd-toggle:hover { background: var(--surface-hover); color: var(--text-strong); }
.lp-pwd-toggle:focus-visible { box-shadow: var(--shadow-focus); }
.lp-eye-hide { display: none; }
.lp-pwd-toggle[aria-pressed="true"] .lp-eye-hide { display: inline-flex; }
.lp-pwd-toggle[aria-pressed="true"] .lp-eye-show { display: none; }
.lp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.lp-remember { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-body); cursor: pointer; }
.lp-remember input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.lp-secure { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); color: var(--success-text); font-weight: var(--fw-semibold); }
.lp-submit {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--lp-submit);
  color: var(--white);
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(20, 32, 90, 0.8);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.lp-submit:hover { background: var(--lp-submit-hover); transform: translateY(-1px); }
.lp-submit:active { background: var(--lp-submit-active); transform: scale(0.99); }
.lp-submit:focus-visible { box-shadow: var(--shadow-focus); }
.lp-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.lp-submit-text { display: inline-flex; align-items: center; gap: var(--sp-2); }
.lp-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: var(--white); animation: lp-spin 0.7s linear infinite; }
.lp-submit.loading .lp-spinner { display: block; }
.lp-submit.loading .lp-submit-text { display: none; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-foot { margin-top: var(--sp-6); text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .lp-float, .lp-spinner { animation: none; }
  .lp-particles { display: none; }
}

@media (min-width: 768px) {
  .lp-left { padding: var(--sp-8) var(--sp-8); }
  .lp-content { display: flex; }
  .lp-stats { display: flex; }
  .lp-right { padding: var(--sp-12) var(--sp-8); }
}

@media (min-width: 1024px) {
  .lp-body { flex-direction: row; }
  .lp-left { width: 62%; height: 100dvh; padding: var(--sp-8) var(--sp-12); overflow-y: auto; }
  .lp-right { width: 38%; align-items: center; border-radius: 0; }
}

@media (min-width: 1280px) {
  .lp-left { width: 65%; }
  .lp-right { width: 35%; }
}
