/* =============================================================
   Private Engenharia — Licitações IA
   Paleta baseada no portal Privia + manual de marca Private
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --------------- CSS Custom Properties --------------- */
:root {
  /* Fundos — escala de pretos/cinzas escuros como no Privia */
  --bg:          #0D0E10;
  --surface:     #161819;   /* sidebar */
  --surface-2:   #1C1E21;   /* cards */
  --surface-3:   #252729;   /* inputs, hover */
  --surface-4:   #2E3033;   /* mais elevado */

  /* Textos */
  --text:        #F1F1F1;
  --text-muted:  #9CA3AF;
  --text-subtle: #5C6370;

  /* Bordas */
  --border:      rgba(255, 255, 255, 0.07);
  --border-md:   rgba(255, 255, 255, 0.12);

  /* Private orange — extraído do manual de marca */
  --brand:       #E84820;
  --brand-hover: #C53E18;
  --brand-soft:  rgba(232, 72, 32, 0.12);
  --brand-glow:  rgba(232, 72, 32, 0.18);

  /* Semânticas */
  --danger:      #F43F5E;
  --warning:     #FBB824;
  --success:     #22C55E;
  --clr-pos:     #22C55E;
  --clr-neg:     #F43F5E;
  --clr-warn:    #F59E0B;

  --scrollbar-thumb: #252729;

  /* Layout */
  --sidebar-w:      220px;
  --sidebar-w-coll: 52px;
  --sidebar-transition: width 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* -------- Light mode -------- */
[data-theme="light"] {
  --bg:          #F0F2F5;
  --surface:     #FFFFFF;
  --surface-2:   #F8F9FA;
  --surface-3:   #EAECEF;
  --surface-4:   #DEE1E6;
  --text:        #1A1C20;
  --text-muted:  #5C6370;
  --text-subtle: #9CA3AF;
  --border:      rgba(0, 0, 0, 0.08);
  --border-md:   rgba(0, 0, 0, 0.13);
  --brand:       #D63F18;
  --brand-hover: #B33214;
  --brand-soft:  rgba(214, 63, 24, 0.10);
  --brand-glow:  rgba(214, 63, 24, 0.18);
  --danger:      #DC2626;
  --warning:     #D97706;
  --success:     #16A34A;
  --clr-pos:     #16A34A;
  --clr-neg:     #DC2626;
  --clr-warn:    #D97706;
  --scrollbar-thumb: #CBD5E1;
}

/* --------------- Base --------------- */
html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: row;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* --------------- Keyframes --------------- */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.page-enter  { animation: page-enter  0.32s ease both; }
.modal-enter { animation: modal-enter 0.24s ease both; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.7s infinite;
  border-radius: 6px;
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  transition: var(--sidebar-transition);
}

/* Collapsed sidebar */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-w-coll);
}

body.sidebar-collapsed .sidebar-logo-text,
body.sidebar-collapsed .sidebar-profile,
body.sidebar-collapsed .sidebar-keywords,
body.sidebar-collapsed .sidebar-item-label,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-subbrand {
  display: none;
}

body.sidebar-collapsed .sidebar-logo {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 4px 8px;
  gap: 8px;
}

body.sidebar-collapsed .sidebar-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

body.sidebar-collapsed .sidebar-collapse-btn {
  margin-left: 0;
  font-size: 13px;
}

body.sidebar-collapsed .sidebar-nav {
  padding: 10px 4px;
}

body.sidebar-collapsed .sidebar-item {
  justify-content: center;
  padding: 10px 0;
}

body.sidebar-collapsed .sidebar-item-icon {
  width: 100%;
  text-align: center;
  font-size: 17px;
}

body.sidebar-collapsed .sidebar-bottom {
  padding: 8px 4px 12px;
}

body.sidebar-collapsed .tab-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 8px;
  padding: 0 4px;
}

body.sidebar-collapsed .sidebar-item {
  position: relative;
}

/* Logo area */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.sidebar-logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 0 transparent);
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-subbrand {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Profile section */
.sidebar-profile {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-profile-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 3px;
}

.sidebar-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-profile-admin {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(232, 72, 32, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

/* Nav */
.sidebar-nav {
  padding: 10px 8px;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  margin-bottom: 2px;
}

.sidebar-item:hover {
  background: var(--surface-3);
  color: var(--text);
}

.sidebar-item--active {
  background: rgba(232, 72, 32, 0.08);
  color: var(--text);
  font-weight: 500;
}

.sidebar-item--active .sidebar-item-icon {
  color: var(--brand);
}

.sidebar-item-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.sidebar-item-label {
  flex: 1;
  min-width: 0;
}

/* Keywords in sidebar */
.sidebar-keywords {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.keywords-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.keyword-badge {
  font-size: 10px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(232, 72, 32, 0.22);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* Sidebar collapse toggle button */
.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1;
}
.sidebar-collapse-btn:hover { background: var(--surface-3); color: var(--text); }

body.sidebar-collapsed .sidebar-collapse-btn {
  margin-left: 0;
}

/* Bottom section */
.sidebar-bottom {
  padding: 8px 8px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Badge for arquivados count */
.tab-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.15);
  color: var(--danger);
  border-radius: 8px;
  padding: 1px 5px;
  margin-left: 4px;
}
.tab-badge:empty { display: none; }

/* =============================================================
   MAIN AREA
   ============================================================= */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  height: 100vh;
}

/* Page header (thin, inside main-wrap) */
.page-header {
  height: 44px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header-icon {
  font-size: 13px;
  color: var(--text-subtle);
}

.page-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}

/* --------------- Filter Toolbar --------------- */
.filter-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 6px 20px;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
  min-height: 44px;
}

.filter-input {
  background: var(--surface-3);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.filter-input:focus { border-color: var(--brand); background: var(--surface-4); }
.filter-input::placeholder { color: var(--text-subtle); }
.filter-input--title { width: 200px; }
.filter-input--num { width: 105px; color-scheme: dark; }

.filter-select {
  background: var(--surface-3);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 5px 26px 5px 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C6370' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-color: var(--surface-3);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.filter-select:focus { border-color: var(--brand); background-color: var(--surface-4); }
.filter-select option { background: var(--surface-2); color: var(--text); }

.filter-label { font-size: 11px; font-weight: 500; color: var(--text-subtle); white-space: nowrap; }
.filter-range-sep { font-size: 12px; color: var(--text-subtle); }
.toolbar-sep { width: 1px; height: 16px; background: var(--border-md); flex-shrink: 0; margin: 0 2px; }

/* --------------- Scrollable content area --------------- */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg);
}

/* Tab sections */
.tab-section { display: none; }
.tab-section--active { display: block; animation: page-enter 0.32s ease both; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn-primary {
  background: var(--brand);
  border: 1px solid var(--brand-hover);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface-3);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover { background: var(--surface-4); color: var(--text); }

.btn-danger-soft {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 8px;
  color: var(--danger);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  transition: background 0.15s ease;
}
.btn-danger-soft:hover { background: rgba(244, 63, 94, 0.08); }

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-icon:hover { background: var(--surface-3); color: var(--text); }

.btn-refresh-icon .refresh-icon { display: inline-block; }
.btn-refresh-icon.loading .refresh-icon { animation: spin 0.8s linear infinite; }

/* =============================================================
   KPI CARDS
   ============================================================= */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 960px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

.kpi-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 100px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--border-md);
}

.kpi-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.kpi-icon--orange  { background: rgba(232, 72, 32, 0.15); }
.kpi-icon--green   { background: rgba(34, 197, 94, 0.12); }
.kpi-icon--yellow  { background: rgba(251, 184, 36, 0.12); }
.kpi-icon--red     { background: rgba(244, 63, 94, 0.12); }

.kpi-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.kpi-card--warning .kpi-value { color: var(--clr-warn); }
.kpi-card--danger  .kpi-value { color: var(--clr-neg); }

/* =============================================================
   CARDS (content panels)
   ============================================================= */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.table-count, .card-desc {
  font-size: 12px;
  color: var(--text-subtle);
}

/* =============================================================
   DATA TABLE
   ============================================================= */
.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  height: 400px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--text); }

.sort-ind { font-size: 10px; margin-left: 3px; opacity: 0.3; color: var(--text-subtle); }
.sort-ind.active { opacity: 1; color: var(--brand); }

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.data-table tbody tr { cursor: pointer; transition: background 0.1s ease; }
.data-table tbody tr:hover   { background: rgba(255,255,255,0.03); }
.data-table tbody tr.selected { background: rgba(232, 72, 32, 0.07); border-left: 2px solid var(--brand); }
.data-table tbody tr:last-child td { border-bottom: none; }

.col-objetivo { max-width: 300px; }
.col-valor { text-align: right; white-space: nowrap; }

.data-table--sm td, .data-table--sm th { padding: 8px 12px; }

/* Status badges */
.status-badge {
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
}
.status-badge--open   { background: rgba(34, 197, 94, 0.1);  color: var(--clr-pos); }
.status-badge--closed { background: rgba(107,114,128,0.1); color: var(--text-subtle); }

/* Empty states */
.empty-state {
  padding: 32px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-subtle);
}
.empty-state--error { color: var(--danger); }

/* =============================================================
   EDITAL DETAIL PANEL
   ============================================================= */
.edital-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
  animation: modal-enter 0.24s ease both;
  overflow: hidden;
}
.edital-panel.hidden { display: none !important; }

.edital-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.edital-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1.4;
}

.edital-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.edital-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 18px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}

.meta-item { display: flex; flex-direction: column; gap: 3px; }

.meta-item-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.meta-item-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.panel-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.panel-section:last-child { border-bottom: none; }

.panel-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

/* =============================================================
   ANALYSIS TABS
   ============================================================= */
.analise-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.analise-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.analise-tab:hover { color: var(--text); }
.analise-tab--active { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }

.resumo-box {
  background: var(--surface-3);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 460px;
  overflow-y: auto;
}

.analise-meta { font-size: 11px; color: var(--text-subtle); }

/* =============================================================
   PROGRESS
   ============================================================= */
.progress-wrap { padding: 4px 0; }

.progress-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  animation: progress-pulse 1.5s ease-in-out infinite;
}

.progress-bar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  height: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-caption { font-size: 11px; color: var(--text-subtle); }

/* =============================================================
   ALERTS
   ============================================================= */
.alert {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 14px;
}
.alert--danger {
  background: rgba(244, 63, 94, 0.1);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* =============================================================
   LOGIN PAGE
   ============================================================= */
body.page-login {
  display: flex;
  flex-direction: row; /* reset */
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.login-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: 16px;
  padding: 40px 44px;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto 24px;
}

.login-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.login-divider span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  white-space: nowrap;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-input:focus { border-color: var(--brand); background: var(--surface-4); }
.form-input::placeholder { color: var(--text-subtle); }

.login-btn { width: 100%; padding: 11px 0; font-size: 13px; margin-top: 6px; }

.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-subtle);
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  text-align: center;
  padding: 10px;
  font-size: 11px;
  color: var(--text-subtle);
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* =============================================================
   UTILITIES
   ============================================================= */
.hidden { display: none !important; }

.glass {
  background: rgba(22, 24, 25, 0.8);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.06);
}
