/* ===== 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.28), transparent),
    radial-gradient(ellipse 40% 35% at 100% 100%, rgba(225, 29, 46, 0.18), transparent),
    var(--bc-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* כתמי אור נעים ברקע */
.lp-body::after {
  content: '';
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 400px at 20% 25%, rgba(225, 29, 46, 0.22), transparent 70%),
    radial-gradient(circle 520px at 82% 75%, rgba(225, 29, 46, 0.15), transparent 70%);
  animation: bg-drift 14s ease-in-out infinite alternate;
}

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

.lp-nav::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0 42%, var(--bc-red-bright) 46%, #ffe9e9 50%, var(--bc-red-bright) 54%, transparent 58% 100%),
    linear-gradient(90deg, rgba(225, 29, 46, 0.2), rgba(225, 29, 46, 0.2));
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: led-flow 2.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 59, 59, 0.9));
}

.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 + order מפורש = מיקום קבוע וודאי בכל דפדפן, לא תלוי בניחוש RTL של ה-grid */
  direction: ltr;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 48px 40px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.lp-login-panel, .lp-hero { direction: rtl; }
.lp-hero { order: 1; }        /* עמודה 1 = שמאל */
.lp-login-panel { order: 2; } /* עמודה 2 = ימין */

@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;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.lp-status-row { animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards; }

.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;
  animation: lp-logo-breathe 3.4s ease-in-out infinite;
}

@keyframes lp-logo-breathe {
  0%, 100% { box-shadow: 0 0 40px rgba(225, 29, 46, 0.25); }
  50% { box-shadow: 0 0 64px rgba(225, 29, 46, 0.6); }
}

.lp-hero-brand h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(110deg, #fff 0%, #d8dae0 30%, #ff8f8f 45%, #ffffff 50%, #ff8f8f 55%, #d8dae0 70%, #fff 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  animation: h1-shine 4.5s linear infinite;
}

@keyframes h1-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

.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: linear-gradient(165deg, var(--bc-panel-2), var(--bc-panel));
  border: 1px solid var(--bc-border);
  border-radius: 14px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 118px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.lp-stat-grid .lp-stat-card:nth-child(1) { animation-delay: 0.12s; }
.lp-stat-grid .lp-stat-card:nth-child(2) { animation-delay: 0.18s; }
.lp-stat-grid .lp-stat-card:nth-child(3) { animation-delay: 0.24s; }
.lp-stat-grid .lp-stat-card:nth-child(4) { animation-delay: 0.3s; }

.lp-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.45);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(225, 29, 46, 0.15);
}

.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: 42px;
  height: 42px;
  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.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: lp-icon-breathe 3s ease-in-out infinite;
}

@keyframes lp-icon-breathe {
  0%, 100% { box-shadow: 0 0 14px rgba(225, 29, 46, 0.25); }
  50% { box-shadow: 0 0 24px rgba(225, 29, 46, 0.55); }
}

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

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

/* ===== גרף ===== */
.lp-chart-card {
  background: linear-gradient(180deg, var(--bc-panel-2), var(--bc-panel));
  border: 1px solid var(--bc-border);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.36s backwards;
}

.lp-chart-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0 42%, var(--bc-red-bright) 46%, #ffe9e9 50%, var(--bc-red-bright) 54%, transparent 58% 100%),
    linear-gradient(90deg, rgba(225, 29, 46, 0.18), rgba(225, 29, 46, 0.18));
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: led-flow 3.2s linear infinite;
  filter: drop-shadow(0 0 5px rgba(255, 59, 59, 0.85));
}

.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;
  filter: drop-shadow(0 0 8px rgba(225, 29, 46, 0.4));
}

.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: linear-gradient(180deg, var(--bc-panel-2), var(--bc-panel));
  border: 1px solid rgba(225, 29, 46, 0.18);
  border-radius: 20px;
  padding: 34px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 44px -16px rgba(225, 29, 46, 0.45);
  position: relative;
  overflow: hidden;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s backwards;
}

.lp-login-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0 42%, var(--bc-red-bright) 46%, #ffe9e9 50%, var(--bc-red-bright) 54%, transparent 58% 100%),
    linear-gradient(90deg, rgba(225, 29, 46, 0.25), rgba(225, 29, 46, 0.25));
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: led-flow 2.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 59, 59, 0.9));
}

.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-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 14px;
}

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

.lp-forgot {
  background: none;
  border: none;
  color: var(--bc-red-bright);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}

.lp-forgot:hover { text-decoration: underline; }

.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 10px 30px rgba(225, 29, 46, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

/* ברק שחולף על הכפתור כל כמה שניות */
.lp-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58% 100%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: lp-shine 3.4s ease-in-out infinite;
}

@keyframes lp-shine {
  0%, 55% { background-position: -60% 0; }
  90%, 100% { background-position: 160% 0; }
}

.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; }
}

/* ===== הפחתת תנועה (נגישות) ===== */
@media (prefers-reduced-motion: reduce) {
  .lp-body::after,
  .lp-nav::after,
  .lp-login-card,
  .lp-login-card::after,
  .lp-hero-logo,
  .lp-hero-brand,
  .lp-hero-brand h1,
  .lp-status-row,
  .lp-submit::after,
  .lp-stat-card,
  .lp-stat-icon,
  .lp-chart-card,
  .lp-chart-card::after {
    animation: none !important;
  }
}
