/* ============================================================
   PARQUE AUTO PEÇAS — Sistema de Relatórios Gerenciais
   Tema: Preto + Verde Neon (espelha as planilhas)
   ============================================================ */

:root {
  --green: #3CDB7F;
  --green-bright: #4FE88C;
  --green-dim: #2ba85e;
  --green-glow: rgba(60, 219, 127, 0.35);

  --bg: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --bg-4: #232323;
  --line: #262626;
  --line-2: #333;

  --text: #f5f5f5;
  --text-2: #c4c4c4;
  --text-3: #888;
  --text-4: #555;

  --red: #ff4d5e;
  --blue: #4dabff;
  --yellow: #fde047;
  --purple: #a78bfa;

  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;

  --pad: 20px;
  --gap: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-display: 'Inter', sans-serif;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px var(--green-glow);
}

/* Tema CLARO */
.theme-light {
  --bg: #f7f8f7;
  --bg-1: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #fafafa;
  --bg-4: #f0f1f0;
  --line: #e5e7e5;
  --line-2: #d4d6d4;

  --text: #0a0a0a;
  --text-2: #404040;
  --text-3: #737373;
  --text-4: #a3a3a3;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.08);
}
.theme-light .sidebar { background: #ffffff !important; color: #0a0a0a; border-right-color: #e5e7e5 !important; --text: #0a0a0a; --text-2: #404040; --text-3: #737373; --line: #e5e7e5; --bg-2: #f5f5f5; --bg-3: #fafafa; }
.theme-light .sidebar-logo { background: transparent; border-bottom-color: #e5e7e5; }
.theme-light .nav-item { color: #525252; }
.theme-light .nav-item:hover { background: #f5f5f5; color: #0a0a0a; }
.theme-light .nav-item.active { background: linear-gradient(90deg, rgba(60,219,127,0.20), rgba(60,219,127,0.04)); color: #0a0a0a; }
.theme-light .sidebar-section { color: #a3a3a3; }
.theme-light .sidebar-footer { border-top-color: #e5e7e5; color: #737373; }
.theme-light .sidebar-footer > div > div { color: #0a0a0a; }
.theme-light .sidebar-footer .avatar { background: #f5f5f5; }

/* Densidade compacta */
.density-compact {
  --pad: 14px;
  --gap: 10px;
  font-size: 13px;
}
.density-compact .table-row { padding: 6px 12px; }
.density-compact .kpi-card { padding: 14px; }

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

body { min-height: 100vh; overflow-x: hidden; }

/* ========== APP SHELL ========== */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.app.sidebar-collapsed { grid-template-columns: 64px 1fr; }

/* ========== SIDEBAR ========== */
.sidebar {
  background: #050505;
  border-right: 1px solid var(--line);
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  color: #f5f5f5;
}
.sidebar-logo {
  padding: 18px 16px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  min-height: 100px;
}
/* Logo: original webp; modo escuro inverte para o preto virar branco e mantém o verde */
.parque-logo-img { filter: invert(1) hue-rotate(180deg); }
.theme-light .parque-logo-img { filter: none; }
.sidebar-logo::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--green) 0 12px,
    transparent 12px 18px
  );
}
.sidebar-logo-mark {
  width: 36px; height: 36px;
  background: var(--green);
  display: grid; place-items: center;
  font-weight: 900; color: #000;
  font-size: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.sidebar-logo-text {
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 15px;
  line-height: 1.1;
}
.sidebar-logo-text small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--green);
  font-weight: 700;
}

.sidebar-section {
  padding: 18px 12px 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  color: #b8b8b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  border: none; background: transparent;
  width: calc(100% - 16px);
  text-align: left;
  font-family: inherit;
  transition: all 0.12s;
}
.nav-item:hover { background: #161616; color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(60,219,127,0.15), rgba(60,219,127,0.04));
  color: #fff;
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -8px; top: 6px; bottom: 6px;
  width: 3px; background: var(--green);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--green-glow);
}
.nav-item .icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nav-item .icon svg { width: 16px; height: 16px; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid #1a1a1a;
  font-size: 11px;
  color: #666;
}
.sidebar-footer .user {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.sidebar-footer .avatar {
  width: 30px; height: 30px;
  background: var(--bg-3);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--green);
  font-size: 12px;
}

/* ========== MAIN ========== */
.main {
  min-width: 0;
  display: flex; flex-direction: column;
}

.topbar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.topbar-title { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex-shrink: 0; }
.topbar-title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topbar-title small {
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-mono);
}
.topbar-spacer { flex: 1; }

.topbar-filter {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 6px 4px 10px;
}
.topbar-filter label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
}
.topbar-filter select {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
  outline: none;
}
.topbar-filter select option { background: var(--bg-1); color: var(--text); }

.topbar-toggle {
  display: inline-flex; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.topbar-toggle button {
  background: transparent; border: none;
  color: var(--text-3);
  padding: 6px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.topbar-toggle button.active { background: var(--green); color: #000; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  transition: all 0.12s;
}
.btn:hover { background: var(--bg-3); border-color: var(--line-2); }
.btn.primary {
  background: var(--green); color: #000;
  border-color: var(--green);
  font-weight: 700;
}
.btn.primary:hover { background: var(--green-bright); box-shadow: 0 0 16px var(--green-glow); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; transition: all 0.12s;
}
.btn-icon:hover { background: var(--bg-2); color: var(--text-1); border-color: var(--line-2); }

.content {
  padding: 24px;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 24px;
}

/* ========== KPI CARDS ========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.kpi-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.kpi-card.accent {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border-color: var(--green);
}
.kpi-card.accent::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  pointer-events: none;
}
.kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.kpi-value {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 2px 0;
  line-height: 1.1;
}
.kpi-value.green { color: var(--green); }
.kpi-value.red { color: var(--red); }
.kpi-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  font-family: var(--font-mono);
}
.kpi-trend.up { color: var(--green); }
.kpi-trend.down { color: var(--red); }
.kpi-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* ========== PANEL / CARD ========== */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.panel-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.panel-head h3 .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.panel-head .meta { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.panel-body { padding: 18px; }
.panel-body.flush { padding: 0; }

/* ========== TABLES ========== */
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th, .table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 700;
  background: var(--bg-2);
}
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table tr:hover td { background: var(--bg-2); }
.table tr.section-header td {
  background: #000;
  color: var(--green);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.theme-light .table tr.section-header td { background: #0a0a0a; color: var(--green); }
.table tr.totals td {
  background: #000; color: #fff;
  font-weight: 800;
  border-top: 2px solid var(--green);
}
.theme-light .table tr.totals td { background: #0a0a0a; color: #fff; }
.table tr.subtotal td {
  background: var(--bg-3);
  font-weight: 700;
}
.table tr.expandable { cursor: pointer; }
.table tr.expandable:hover td { background: var(--bg-3); }
.table tr.detail td {
  background: var(--bg-2);
  font-size: 12px;
  color: var(--text-2);
  padding-left: 28px;
}

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag.green { background: var(--green); color: #000; }
.tag.red { background: var(--red); color: #fff; }
.tag.outline-green { color: var(--green); border: 1px solid var(--green); }
.tag.gray { background: var(--bg-3); color: var(--text-2); }

/* ========== GRID HELPERS ========== */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* ========== CHART CONTAINERS ========== */
.chart-wrap { width: 100%; position: relative; }

/* Tooltip */
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #000;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #fff;
  box-shadow: var(--shadow-2);
  z-index: 100;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.1s;
}
.chart-tooltip.visible { opacity: 1; }
.chart-tooltip .label { color: var(--green); font-weight: 700; }
.chart-tooltip .row { display: flex; justify-content: space-between; gap: 12px; }

/* Legenda */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--text-2); margin-top: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; }

/* ========== HEATMAP ========== */
.heat-grid { display: grid; gap: 3px; }
.heat-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg-3);
  position: relative;
  cursor: pointer;
  transition: transform 0.1s;
}
.heat-cell:hover { transform: scale(1.15); z-index: 2; }
.heat-cell .label {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(0,0,0,0.7);
  font-weight: 700;
}

/* ========== PROGRESS / GAUGE ========== */
.gauge-track {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gauge-mark {
  position: absolute; top: -3px; bottom: -3px;
  width: 2px; background: #fff;
  opacity: 0.8;
}

/* ========== CURRENCY HIGHLIGHT (PLANILHA-STYLE) ========== */
.cell-receb { background: rgba(60,219,127,0.08); }
.cell-pag { background: rgba(255,77,94,0.05); }
.cell-saldo { background: var(--yellow); color: #000 !important; font-weight: 700; }

/* ========== SCROLLBARS ========== */
.scroll, .sidebar { scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
.scroll::-webkit-scrollbar, .sidebar::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }

/* ========== UTIL ========== */
.flex { display: flex; align-items: center; }
.flex.gap-2 { gap: 8px; }
.flex.gap-3 { gap: 12px; }
.flex.gap-4 { gap: 16px; }
.flex.between { justify-content: space-between; }
.flex.center { justify-content: center; }
.flex.col { flex-direction: column; align-items: stretch; }

.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-3 { color: var(--text-3); }
.text-bold { font-weight: 700; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 28px; }

.divider { height: 1px; background: var(--line); margin: var(--gap) 0; }
.no-break { white-space: nowrap; }

/* ========== MODAL ========== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
}
.modal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 720px; width: 100%;
  max-height: 86vh;
  overflow: auto;
  box-shadow: var(--shadow-2);
}
.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0;
  background: var(--bg-1);
}
.modal-body { padding: 20px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.25s ease both; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.pulse { animation: pulse-green 2s infinite; }

/* Diagonal stripes (logo-inspired accent) */
.stripe-accent {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--green) 0 14px, transparent 14px 22px);
}

/* Empty state */
.empty {
  padding: 40px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.empty .icon { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }

/* Snackbar */
.snackbar {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #000;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 20px var(--green-glow);
  z-index: 300;
  opacity: 0;
  transition: all 0.2s;
}
.snackbar.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================================== */
/* FORM INPUTS — inputs + selects custom (tema preto/verde)            */
/* ================================================================== */

.form-input {
  width: 100%;
  background: var(--bg-2, #141414);
  border: 1px solid var(--line, #222);
  color: var(--text, #f5f5f5);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  padding: 9px 12px;
  border-radius: var(--radius, 6px);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-sizing: border-box;
  line-height: 1.4;
}

.form-input::placeholder { color: var(--text-3, #555); }

.form-input:hover:not(:disabled) {
  border-color: #333;
  background: #181818;
}

.form-input:focus {
  border-color: var(--green, #3CDB7F);
  background: #181818;
  box-shadow: 0 0 0 3px rgba(60,219,127,0.15);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Selects: remove aparência nativa, adiciona chevron SVG verde */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233CDB7F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select.form-input:hover:not(:disabled) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234eea90' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

select.form-input option {
  background: #0a0a0a;
  color: var(--text, #f5f5f5);
  padding: 10px;
  font-weight: 500;
}

select.form-input option:checked,
select.form-input option:hover {
  background: var(--green, #3CDB7F);
  color: #000;
  font-weight: 700;
}

select.form-input::-ms-expand { display: none; }

/* Wrapper de campo com label superior */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3, #888);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-label .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green, #3CDB7F);
  flex-shrink: 0;
}

/* ================================================================== */
/* LOGIN — tela de entrada com split panel + branding                  */
/* ================================================================== */

.login-page {
  position: fixed; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #050505;
  color: #f5f5f5;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

/* PAINEL ESQUERDO — Brand */
.login-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 50%; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(60,219,127,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(60,219,127,0.10) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  z-index: 1;
}

.login-brand-panel::before {
  /* listras diagonais decorativas */
  content: '';
  position: absolute;
  top: 0; right: 0; width: 240px; height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 18px,
    rgba(60,219,127,0.06) 18px,
    rgba(60,219,127,0.06) 20px
  );
  pointer-events: none;
}

.login-brand-top {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 2;
}
.login-brand-top img {
  height: 56px; width: auto; max-width: 280px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.login-brand-top .stripe {
  width: 4px; height: 40px;
  background: var(--green, #3CDB7F);
  border-radius: 2px;
}

.login-brand-hero {
  position: relative; z-index: 2;
  max-width: 460px;
}
.login-brand-hero .eyebrow {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.25em; font-weight: 800;
  color: var(--green, #3CDB7F);
  padding: 6px 12px;
  background: rgba(60,219,127,0.12);
  border: 1px solid rgba(60,219,127,0.3);
  border-radius: 100px;
  margin-bottom: 24px;
}
.login-brand-hero h1 {
  font-size: 44px; font-weight: 900; line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  color: #fff;
}
.login-brand-hero h1 .accent { color: var(--green, #3CDB7F); }
.login-brand-hero p {
  font-size: 15px; line-height: 1.6;
  color: #a1a1a1; margin: 0;
  max-width: 420px;
}

.login-brand-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  position: relative; z-index: 2;
  margin-top: 32px;
  max-width: 460px;
}
.login-brand-stats > div {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  border-left: 2px solid var(--green, #3CDB7F);
}
.login-brand-stats .v {
  font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: -0.5px; line-height: 1;
}
.login-brand-stats .l {
  font-size: 9px; letter-spacing: 0.15em; font-weight: 700;
  color: #666; text-transform: uppercase; margin-top: 6px;
}

.login-brand-foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; color: #555;
}
.login-brand-foot .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green, #3CDB7F);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--green, #3CDB7F);
  animation: loginPulse 2s ease-in-out infinite;
}
@keyframes loginPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* PAINEL DIREITO — Form */
.login-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px;
  background: #0a0a0a;
}

.login-form-panel::before {
  /* listrado superior verde */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--green, #3CDB7F) 50%, transparent 100%);
}

.login-form {
  width: 100%; max-width: 420px;
}
.login-form-head {
  margin-bottom: 36px;
}
.login-form-head .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.2em; font-weight: 800;
  color: #888; margin-bottom: 16px;
  text-transform: uppercase;
}
.login-form-head .badge::before {
  content: ''; width: 24px; height: 1px; background: #333;
}
.login-form-head h2 {
  font-size: 28px; font-weight: 900;
  letter-spacing: -1px; margin: 0 0 8px;
  color: #fff;
}
.login-form-head p {
  font-size: 13px; color: #888; margin: 0;
  line-height: 1.5;
}

.login-field { margin-bottom: 16px; }
.login-field-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.1em; font-weight: 700;
  color: #888; text-transform: uppercase;
  margin-bottom: 8px;
}
.login-field-input {
  position: relative;
}
.login-field-input .icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #555;
  display: flex; align-items: center;
  pointer-events: none;
}
.login-field-input input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  color: #f5f5f5;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.15s ease;
  outline: none;
}
.login-field-input input::placeholder { color: #444; }
.login-field-input input:hover { border-color: #333; background: #181818; }
.login-field-input input:focus {
  border-color: var(--green, #3CDB7F);
  background: #181818;
  box-shadow: 0 0 0 3px rgba(60,219,127,0.12);
}
.login-field-input input:focus + .icon,
.login-field-input:focus-within .icon { color: var(--green, #3CDB7F); }

.login-toggle-pw {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: 0;
  color: #555;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.login-toggle-pw:hover { color: var(--green, #3CDB7F); }

.login-erro {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-left: 3px solid #ef4444;
  color: #f87171;
  font-size: 12px; font-weight: 600;
  border-radius: 6px;
  margin-bottom: 16px;
  animation: loginShake 0.4s ease;
}
@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.login-submit {
  width: 100%;
  padding: 14px;
  background: var(--green, #3CDB7F);
  color: #050505;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 8px;
  text-transform: uppercase;
}
.login-submit:hover:not(:disabled) {
  background: #4eea90;
  box-shadow: 0 8px 24px rgba(60,219,127,0.35);
  transform: translateY(-1px);
}
.login-submit:active:not(:disabled) { transform: translateY(0); }
.login-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
  background: #333; color: #888;
}
.login-submit .spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(5,5,5,0.3);
  border-top-color: #050505;
  border-radius: 50%;
  animation: loginSpin 0.7s linear infinite;
}
@keyframes loginSpin { to { transform: rotate(360deg); } }

.login-help {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(60,219,127,0.04);
  border: 1px solid rgba(60,219,127,0.14);
  border-radius: 8px;
  font-size: 12px; color: #888;
  line-height: 1.5;
  display: flex; gap: 12px; align-items: flex-start;
}
.login-help-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: rgba(60,219,127,0.12);
  border-radius: 6px;
  color: var(--green, #3CDB7F);
}
.login-help strong {
  color: #ddd; display: block; margin-bottom: 2px;
  font-weight: 700; font-size: 12px;
}

.login-form-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.login-form-foot .secured {
  display: flex; align-items: center; gap: 6px;
  color: #666;
}
.login-form-foot .secured svg { color: var(--green, #3CDB7F); }

/* Responsivo */
@media (max-width: 960px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { padding: 32px 24px; }
}
