@charset "UTF-8";

/* ==============================================================================
   SWITCH MONITOR DESIGN SYSTEM 2026
   Modern, Enterprise-grade Dark-Slate / Emerald / Amber UI
   ============================================================================== */

:root {
  --primary: #00875a;
  --primary-dark: #006644;
  --primary-light: #e3fcef;
  --secondary: #0052cc;
  --dark: #091e42;
  --ink: #172b4d;
  --muted: #5e6c84;
  --light-muted: #8993a4;
  --bg: #f4f5f7;
  --panel-bg: #ffffff;
  --line: #ebecf0;
  --line-strong: #dfe1e6;
  --sidebar-bg: #091e42;
  --sidebar-hover: #172b4d;
  --sidebar-active: #0052cc;
  --danger: #de350b;
  --danger-bg: #ffebe6;
  --warning: #ff991f;
  --warning-bg: #fff0b3;
  --success: #00875a;
  --success-bg: #e3fcef;
  --info: #0052cc;
  --info-bg: #deebff;
  --purple: #6554c0;
  --purple-bg: #eae6ff;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(9,30,66,0.08);
  --shadow-md: 0 4px 12px rgba(9,30,66,0.08);
  --shadow-lg: 0 8px 24px rgba(9,30,66,0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ------------------------------------------------------------------------------
   SIDEBAR NAVIGATION
   ------------------------------------------------------------------------------ */
.sidebar {
  width: 250px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar-bg);
  color: #c1c7d0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00875a, #36b37e);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,135,90,0.4);
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #79f2c0;
  font-weight: 600;
  margin-top: 2px;
}

.workspace-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b778c;
  padding: 0 12px;
  margin-bottom: 10px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a5b2c6;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.nav-link .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  opacity: 0.85;
}
.nav-link:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}
.nav-link.selected {
  background: var(--sidebar-active);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,82,204,0.3);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.connector-mini {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 11px;
  color: #97a0af;
  margin-bottom: 14px;
}
.connector-mini .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36b37e;
  margin-right: 6px;
  box-shadow: 0 0 6px #36b37e;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052cc, #6554c0);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.account small { display: block; color: #8993a4; font-size: 10px; }
.logout-btn {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  color: #ff8b00;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  border-radius: var(--radius-sm);
}
.logout-btn:hover { background: rgba(255,139,0,0.1); }

/* ------------------------------------------------------------------------------
   MAIN LAYOUT & TOPBAR
   ------------------------------------------------------------------------------ */
.main-shell {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 12px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.topbar-brand {
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-brand .slash { color: var(--light-muted); }
.top-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 600;
  font-size: 11px;
}

main {
  padding: 28px 32px;
  flex: 1;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}

/* ------------------------------------------------------------------------------
   PAGE HEADINGS & ACTIONS
   ------------------------------------------------------------------------------ */
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
h2 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 0; }
h3 { font-size: 14px; font-weight: 600; color: var(--dark); margin: 0 0 8px; }

/* ------------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--primary); color: #ffffff; }
.btn.primary:hover { background: var(--primary-dark); box-shadow: 0 2px 6px rgba(0,135,90,0.3); }
.btn.secondary { background: #ffffff; border-color: var(--line-strong); color: var(--ink); }
.btn.secondary:hover { background: var(--bg); border-color: var(--muted); }
.btn.danger { background: var(--danger); color: #ffffff; }
.btn.danger:hover { background: #bf2600; }
.btn.warning { background: var(--warning); color: #172b4d; }
.btn.warning:hover { background: #ff8b00; }
.btn.small { padding: 5px 10px; font-size: 11px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------------------------
   PERIOD TOOLBAR & FILTERS
   ------------------------------------------------------------------------------ */
.period-toolbar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.period-info h3 { margin: 0; font-size: 14px; color: var(--dark); }
.period-info p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.period-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.period-controls select, .period-controls input {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 12px;
  background: #ffffff;
  color: var(--ink);
}

/* ------------------------------------------------------------------------------
   KPI CARDS
   ------------------------------------------------------------------------------ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.metric-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.metric-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric-card.accent-green { border-top: 3px solid var(--primary); }
.metric-card.accent-blue { border-top: 3px solid var(--secondary); }
.metric-card.accent-amber { border-top: 3px solid var(--warning); }
.metric-card.accent-red { border-top: 3px solid var(--danger); }
.metric-card.accent-purple { border-top: 3px solid var(--purple); }

/* ------------------------------------------------------------------------------
   ANOMALY ALERTS BANNER
   ------------------------------------------------------------------------------ */
.anomalies-section {
  margin-bottom: 24px;
}
.anomaly-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 12px;
  border-left: 4px solid;
}
.anomaly-item.danger {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: #a82a08;
}
.anomaly-item.warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: #7a4f01;
}
.anomaly-item.info {
  background: var(--info-bg);
  border-color: var(--info);
  color: #0747a6;
}
.anomaly-item strong { font-weight: 700; margin-right: 6px; }
.anomaly-item a { margin-left: auto; font-weight: 700; text-decoration: underline; }

/* ------------------------------------------------------------------------------
   CHARTS & FUNNEL PANELS
   ------------------------------------------------------------------------------ */
.analytics-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
}
.panel-body {
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FUNNEL VISUALIZATION */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.funnel-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.funnel-label {
  width: 170px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.funnel-bar-wrapper {
  flex: 1;
  background: var(--bg);
  height: 28px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, #0052cc, #00875a);
  border-radius: var(--radius-sm);
  transition: width 0.4s ease;
}
.funnel-count {
  position: absolute;
  left: 12px;
  top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.funnel-conv {
  width: 75px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* BAR & TREND SVG STYLING */
.trend-chart-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 20px;
  border-bottom: 1px solid var(--line);
}
.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.trend-bars-group {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  justify-content: center;
  height: 120px;
}
.bar-inviate {
  width: 10px;
  background: #0052cc;
  border-radius: 2px 2px 0 0;
  transition: height 0.3s ease;
}
.bar-consegnate {
  width: 10px;
  background: #00875a;
  border-radius: 2px 2px 0 0;
  transition: height 0.3s ease;
}
.trend-label {
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------------
   DATA TABLE & FILTERS
   ------------------------------------------------------------------------------ */
.filter-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #fafbfc;
  max-width: 100%;
  box-sizing: border-box;
}
.search-input {
  flex: 1;
  min-width: 220px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 12px;
  box-sizing: border-box;
}
.filter-select {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 12px;
  background: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}
table.data-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
table.data-table th {
  background: #fafbfc;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data-table tr:hover td {
  background: #f7fafc;
}

/* BADGES & SEMAFORI */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-primary { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: #974f00; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-secondary { background: #ebecf0; color: #505f79; }

.semaforo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.semaforo-green { background: #36b37e; box-shadow: 0 0 5px #36b37e; }
.semaforo-yellow { background: #ffab00; box-shadow: 0 0 5px #ffab00; }
.semaforo-red { background: #ff5630; box-shadow: 0 0 5px #ff5630; }

/* ------------------------------------------------------------------------------
   PAGINATION
   ------------------------------------------------------------------------------ */
.pagination-bar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pagination-controls {
  display: flex;
  gap: 6px;
}
.page-btn {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ------------------------------------------------------------------------------
   PRACTICE DETAIL VIEW & COMPLIANCE BOX
   ------------------------------------------------------------------------------ */
.detail-header {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.detail-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* COMPLIANCE STATUS BOX */
.compliance-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid;
}
.compliance-box.allowed {
  background: var(--success-bg);
  border-color: #79f2c0;
  color: #006644;
}
.compliance-box.blocked {
  background: #fff8f5;
  border-color: #ffbdad;
  color: #bf2600;
}
.compliance-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.conditions-list {
  margin: 8px 0 14px 20px;
  padding: 0;
  font-size: 12px;
}
.conditions-list li { margin-bottom: 4px; }

/* VERTICAL TIMELINE */
.timeline-vertical {
  position: relative;
  padding: 10px 0 10px 24px;
  border-left: 2px solid var(--line);
  margin-left: 12px;
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.timeline-marker {
  position: absolute;
  left: -31px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary);
}
.timeline-time {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.timeline-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 12px;
  color: var(--ink);
}

/* ------------------------------------------------------------------------------
   MODAL POPUPS
   ------------------------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,30,66,0.54);
  display: none;
  place-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.modal-overlay.active { display: grid; }
.modal-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { margin: 0; font-size: 15px; }
.modal-close { font-size: 18px; color: var(--muted); padding: 4px; }
.modal-body { padding: 20px; }
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ------------------------------------------------------------------------------
   PRINT / PDF STYLES
   ------------------------------------------------------------------------------ */
@media print {
  body { background: #fff !important; font-size: 11pt !important; }
  .sidebar, .topbar, .period-toolbar, .btn, .filter-bar, .pagination-bar { display: none !important; }
  .main-shell { margin: 0 !important; width: 100% !important; }
  main { padding: 0 !important; max-width: 100% !important; }
  .panel { border: 1px solid #000 !important; box-shadow: none !important; }
  .print-page-break { page-break-after: always; }
}

/* ------------------------------------------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------------------------------------------ */
@media (max-width: 1200px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .analytics-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { position: static; width: 100%; height: auto; padding: 12px; }
  .app-shell { display: block; }
  .main-shell { margin: 0; width: 100%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}

/* ==============================================================================
   LOGIN PAGE STYLES
   ============================================================================== */
.login-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}
.login-hero {
  flex: 1.15;
  background: radial-gradient(circle at 15% 20%, rgba(0, 163, 108, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(0, 82, 204, 0.15) 0%, transparent 45%),
              linear-gradient(145deg, #071322 0%, #0c1e36 50%, #061c24 100%);
  color: #ffffff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.hero-logo-wrap img {
  max-height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}
.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 163, 108, 0.15);
  border: 1px solid rgba(0, 201, 133, 0.35);
  color: #4ade80;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hero-body {
  margin: 40px 0;
  max-width: 580px;
}
.hero-pretitle {
  color: #38bdf8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, #4ade80 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 36px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 163, 108, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #4ade80;
}
.feature-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2px;
}
.feature-text p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 12px;
  color: #64748b;
}

.login-form-side {
  flex: 0.95;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 44px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
}
.brand-header {
  margin-bottom: 32px;
  text-align: left;
}
.brand-logo-container {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.brand-logo-container img {
  max-height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.brand-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.brand-header p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.input-icon svg {
  width: 17px;
  height: 17px;
}
.form-control {
  width: 100%;
  height: 46px;
  padding: 10px 14px 10px 42px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  transition: all 0.2s ease;
}
.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: #00875a;
  box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.12);
}
.form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #00875a 0%, #006644 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #009966 0%, #007750 100%);
  box-shadow: 0 6px 20px rgba(0, 135, 90, 0.4);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.btn-submit:hover svg {
  transform: translateX(3px);
}
.alert-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #991b1b;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.alert-error-box svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #ef4444;
  margin-top: 1px;
}
.card-footer-info {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}
.card-footer-info svg {
  width: 14px;
  height: 14px;
  color: #10b981;
}

@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
  }
  .login-hero {
    padding: 40px 32px;
    flex: none;
  }
  .hero-title {
    font-size: 28px;
  }
  .feature-list {
    display: none;
  }
  .login-form-side {
    padding: 40px 20px;
  }
}

