/* ===== Black Cartel — דף כניסה ===== */
:root {
  --bc-red: #e11d2e;
  --bc-red-bright: #ff3b3b;
  --bc-red-soft: rgba(225, 29, 46, 0.14);
  --bc-bg: #08090c;
  --bc-panel: #111318;
  --bc-panel-2: #15171d;
  --bc-border: #24262e;
}

.lp-body {
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgba(225, 29, 46, 0.16), transparent),
    radial-gradient(ellipse 40% 35% at 100% 100%, rgba(225, 29, 46, 0.10), transparent),
    var(--bc-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== ניווט עליון ===== */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--bc-border);
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.lp-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(225, 29, 46, 0.35);
}

.lp-nav-links { display: flex; gap: 22px; }

.lp-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.15s;
}

.lp-nav-link svg { width: 16px; height: 16px; stroke: currentColor; }
.lp-nav-link:hover { color: var(--bc-red-bright); }

/* ===== גוף ===== */
.lp-main {
  flex: 1;
  display: grid;
  /* direction:ltr נותן סדר עמודות עקבי בכל דפדפן — עמודה 1 (טופס הכניסה) תמיד בצד שמאל */
  direction: ltr;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  padding: 48px 40px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.lp-login-panel, .lp-hero { direction: rtl; }

@media (max-width: 980px) {
  .lp-main { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
}

/* ===== הירו ===== */
.lp-hero-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.lp-hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(225, 29, 46, 0.3);
  box-shadow: 0 0 40px rgba(225, 29, 46, 0.25);
  flex-shrink: 0;
}

.lp-hero-brand h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff, #d8dae0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.lp-tagline {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.lp-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.lp-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 transparent;
}

.lp-status-dot.online {
  background: var(--success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  animation: lp-pulse 2s infinite;
}

.lp-status-dot.offline { background: var(--danger); }

@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 0 14px rgba(52, 211, 153, 0.9); }
}

/* ===== כרטיסי סטטיסטיקה ===== */
.lp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 700px) {
  .lp-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.lp-stat-card {
  background: var(--bc-panel);
  border: 1px solid var(--bc-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
}

.lp-stat-card.skeleton {
  background: linear-gradient(90deg, var(--bc-panel) 25%, var(--bc-panel-2) 50%, var(--bc-panel) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.lp-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bc-red-soft);
  border: 1px solid rgba(225, 29, 46, 0.35);
  box-shadow: 0 0 14px rgba(225, 29, 46, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-stat-icon svg { width: 19px; height: 19px; stroke: var(--bc-red-bright); }

.lp-stat-num { font-size: 19px; font-weight: 800; line-height: 1.15; }
.lp-stat-label { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ===== גרף ===== */
.lp-chart-card {
  background: var(--bc-panel);
  border: 1px solid var(--bc-border);
  border-radius: 16px;
  padding: 20px 22px;
}

.lp-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.lp-chart-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bc-red-bright); }

.lp-chart-wrap { position: relative; }

.lp-chart { width: 100%; height: 170px; display: block; }

.lp-chart-empty {
  display: none;
  position: absolute;
  inset: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 30px;
  pointer-events: none;
}

.lp-chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
  padding: 0 2px;
}

/* ===== כרטיס כניסה ===== */
.lp-login-panel { display: flex; justify-content: center; }

.lp-login-card {
  background: var(--bc-panel);
  border: 1px solid var(--bc-border);
  border-radius: 20px;
  padding: 34px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lp-login-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bc-red-soft);
  border: 1px solid rgba(225, 29, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lp-login-icon svg { width: 26px; height: 26px; stroke: var(--bc-red-bright); }

.lp-login-card h2 {
  margin: 0;
  font-size: 19px;
  text-align: center;
  font-weight: 800;
}

.lp-login-sub {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin: 5px 0 22px;
}

.lp-field { margin-bottom: 15px; }

.lp-field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 6px;
}

.lp-input-wrap { position: relative; }

.lp-input-wrap input {
  width: 100%;
  background: #0c0e12;
  border: 1px solid var(--bc-border);
  color: var(--text);
  padding: 11px 40px 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lp-input-wrap input:focus {
  border-color: var(--bc-red);
  box-shadow: 0 0 0 3px var(--bc-red-soft);
}

.lp-input-wrap svg {
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  pointer-events: none;
}

.lp-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
  margin: 2px 0 14px;
}

.lp-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--bc-red);
  cursor: pointer;
}

.lp-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--bc-red-bright), var(--bc-red));
  color: white;
  border: none;
  padding: 13px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font);
  margin-top: 6px;
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.35);
  transition: opacity 0.15s, transform 0.1s;
}

.lp-submit svg { width: 17px; height: 17px; stroke: currentColor; }
.lp-submit:hover { opacity: 0.92; }
.lp-submit:active { transform: scale(0.985); }
.lp-submit:disabled { opacity: 0.55; cursor: default; }

.lp-error {
  color: var(--danger);
  font-size: 12.5px;
  text-align: center;
  min-height: 16px;
  margin: 10px 0 0;
}

.lp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.lp-divider::before, .lp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bc-border);
}

.lp-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #1a1c22;
  border: 1px solid var(--bc-border);
  color: var(--text);
  padding: 12px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.lp-discord-btn svg { width: 18px; height: 18px; }
.lp-discord-btn:hover { border-color: #5865f2; background: rgba(88, 101, 242, 0.1); }

/* ===== פוטר ===== */
.lp-footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--bc-border);
}

@media (max-width: 500px) {
  .lp-hero-brand h1 { font-size: 30px; }
  .lp-hero-logo { width: 64px; height: 64px; }
  .lp-hero-logo svg { width: 34px; height: 34px; }
  .lp-nav { padding: 14px 18px; }
  .lp-nav-links { gap: 14px; }
}
