/* =============================================================
   Effettivo BI — Plataforma de dashboards
   Tema claro (espelha os protótipos) com tokens em CSS variables.
   Arquitetura de design herdada de LicitacaoV3/resumo_ia.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Superfícies */
  --bg:          #EEF2F6;
  --surface:     #FFFFFF;
  --surface-2:   #F7F9FC;
  --surface-3:   #EDF1F7;
  --surface-4:   #E2E8F1;

  /* Textos */
  --text:        #1B2A44;
  --text-muted:  #5A6B85;
  --text-subtle: #97A3B6;

  /* Bordas */
  --border:      #E4E9F0;
  --border-md:   #D3DAE6;

  /* Marca Effettivo */
  --brand:       #2F6DB0;   /* azul */
  --brand-dark:  #1E3A5F;   /* navy (tabs, donut agendado) */
  --brand-hover: #255C97;
  --brand-soft:  #E7F0F9;
  --brand-glow:  rgba(47,109,176,0.22);
  --green:       #6DBE45;
  --green-soft:  #EAF6E2;

  /* Semânticas / paleta de gráficos */
  --danger:      #E05252;
  --warning:     #E5A83B;
  --purple:      #9B7BC7;
  --info:        #2F8FD6;
  --trend:       #E8873B;

  --scrollbar-thumb: #C7D2E0;

  --sidebar-w:   96px;
  --ia-w:        380px;
}

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;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
.ic--brand { color: var(--brand); }

/* --------------- Keyframes --------------- */
@keyframes page-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ia-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================================
   MARCA (wordmark "effettivo")
   ============================================================= */
.brand-wordmark {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap;
}
.brand-wordmark .brand-e    { color: var(--brand); }
.brand-wordmark .brand-rest { color: var(--brand-dark); }
.brand-wordmark--light .brand-e    { color: #7FC0F5; }
.brand-wordmark--light .brand-rest { color: #FFFFFF; }

/* =============================================================
   SIDEBAR (estreita, ícones + rótulos, como no protótipo)
   ============================================================= */
.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;
}

.sidebar-logo {
  padding: 14px 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.sidebar-logo .brand-wordmark { font-size: 15px; }
.brand-img { width: 100%; max-width: 78px; height: auto; display: block; margin: 0 auto; }
.sidebar-menu-label {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.sidebar-menu-label .ic { font-size: 14px; }

.sidebar-nav { padding: 8px 6px; flex: 1; display: flex; flex-direction: column; gap: 2px; }

.sidebar-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none;
  font-size: 10px; font-weight: 500; text-align: center;
  cursor: pointer; position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-item:hover { background: var(--surface-3); color: var(--text); }
.sidebar-item-icon { font-size: 21px; line-height: 1; display: block; }
.sidebar-item-label { line-height: 1.2; }

.sidebar-item--active { background: var(--brand-soft); color: var(--brand); }
.sidebar-item--active .sidebar-item-icon { color: var(--brand); }

.sidebar-item--disabled { opacity: 0.55; cursor: default; }
.sidebar-item--disabled:hover { background: none; color: var(--text-muted); }

.soon-badge {
  font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--surface-4); color: var(--text-subtle);
  border-radius: 5px; padding: 1px 4px; margin-top: 1px;
}

.sidebar-bottom { padding: 8px 6px 12px; border-top: 1px solid var(--border); }
.sidebar-updated {
  margin-top: 10px; text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.sidebar-updated-label { font-size: 8px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-subtle); }
.sidebar-updated-value { font-size: 9px; color: var(--text-muted); }

/* =============================================================
   MAIN
   ============================================================= */
.main-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; height: 100vh; }

.topbar {
  height: 54px; flex-shrink: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.topbar-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: var(--text); }
.topbar-title .ic { font-size: 20px; }

/* Tabs (toggle no canto direito) */
.tab-toggle { display: flex; gap: 6px; }
.tab-btn {
  background: var(--surface-2); border: 1px solid var(--border-md);
  border-radius: 8px; color: var(--text-muted);
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 7px 18px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { background: var(--surface-3); color: var(--text); }
.tab-btn--active {
  background: var(--brand-dark); border-color: var(--brand-dark); color: #fff;
}

/* Filtros */
.filter-toolbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 12px; padding: 10px 20px; flex-wrap: wrap; flex-shrink: 0;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-cap { font-size: 10px; font-weight: 600; color: var(--text-muted); }

.filter-input, .filter-select {
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: 8px; color: var(--text);
  font-family: inherit; font-size: 12px; padding: 7px 10px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.filter-input:focus, .filter-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.filter-input::placeholder { color: var(--text-subtle); }
.filter-input--search { width: 240px; }

.filter-select {
  cursor: pointer; appearance: none; padding-right: 28px; min-width: 130px;
  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='%235A6B85' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

.btn-refresh {
  margin-left: auto; align-self: flex-end;
  background: var(--surface-2); border: 1px solid var(--border-md);
  border-radius: 8px; color: var(--text-muted); cursor: pointer;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-refresh .ic { font-size: 17px; }
.btn-refresh:hover { background: var(--surface-3); color: var(--brand); }
.btn-refresh.loading .ic { animation: spin 0.8s linear infinite; }

/* Content */
.content-area { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg); }

.tab-section { display: none; }
.tab-section--active { display: block; animation: page-enter 0.3s ease both; }

/* Estado de carregamento (feedback ao filtrar/clicar em gráficos) */
body.app-busy { cursor: progress; }
body.app-busy .content-area { opacity: 0.55; pointer-events: none; transition: opacity 0.12s ease; }

/* Cross-filter (chip de filtro ativo) */
.crossfilter-bar { display: none; margin-bottom: 14px; }
.cf-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand); border-radius: 999px;
  padding: 5px 6px 5px 14px; font-size: 12px; font-weight: 500;
}
.cf-chip b { font-weight: 700; }
.cf-clear {
  background: var(--brand); color: #fff; border: none; border-radius: 50%;
  width: 18px; height: 18px; cursor: pointer; font-size: 10px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.cf-clear:hover { background: var(--brand-hover); }

/* =============================================================
   KPI CARDS
   ============================================================= */
.kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--brand); border-radius: 12px;
  padding: 20px 22px; display: flex; align-items: center; gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,42,68,0.08); }
.kpi-card--brand  { border-left-color: var(--brand); }
.kpi-card--green  { border-left-color: var(--green); }
.kpi-card--danger { border-left-color: var(--danger); }

.kpi-icon {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.kpi-icon .ic { font-size: 24px; }
.kpi-icon--brand { background: var(--brand-soft); color: var(--brand); }
.kpi-icon--green { background: var(--green-soft); color: var(--green); }
.kpi-icon--red   { background: #FBE6E6; color: var(--danger); font-weight: 800; }

.kpi-value { font-size: 34px; font-weight: 800; color: var(--text); line-height: 1; }
.kpi-label { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 6px; }

/* =============================================================
   CHART CARDS + LAYOUT GRIDS
   ============================================================= */
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.chart-title {
  font-size: 14px; font-weight: 700; color: var(--brand-dark);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.chart-legend-inline { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-inline .dash { display: inline-block; width: 18px; border-top: 2px dashed var(--trend); }
.chart-canvas { position: relative; height: 300px; }

/* Visão Geral */
.grid-vg-top {
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 16px; margin-bottom: 16px;
  align-items: stretch;
}
.grid-vg-top .kpi-card { min-height: 120px; }
.grid-vg-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Ações */
.kpi-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-ac-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

@media (max-width: 1100px) {
  .grid-vg-top, .grid-vg-bottom, .kpi-row-3, .grid-ac-bottom { grid-template-columns: 1fr; }
}

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-canvas { position: relative; width: 190px; height: 190px; flex-shrink: 0; }
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.donut-center-num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.donut-center-cap { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.legend-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; margin-top: 2px; }
.legend-text { line-height: 1.35; }
.legend-name { font-weight: 600; color: var(--text); }
.legend-val  { color: var(--text-muted); }

/* =============================================================
   CARD / TABLE (Detalhamento)
   ============================================================= */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card-header {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.section-label { font-size: 15px; font-weight: 700; color: var(--brand-dark); }
.det-toolbar { display: flex; align-items: flex-end; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.det-toolbar .det-count { align-self: flex-end; padding-bottom: 8px; }
.th-info { display: inline-flex; vertical-align: middle; margin-left: 4px; opacity: 0.65; cursor: help; }
.th-info:hover { opacity: 1; }
.th-info .ic { font-size: 13px; }
.det-count { font-size: 12px; color: var(--text-subtle); }

.table-wrap { overflow-x: auto; overflow-y: auto; max-height: calc(100vh - 260px); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 13px 16px; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--brand-dark); white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.sort-ind { font-size: 10px; margin-left: 4px; opacity: 0.6; }
.data-table th.sortable.active .sort-ind { opacity: 1; }

.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }

.td-num { color: var(--brand); font-weight: 600; }
.td-user-name { font-weight: 600; color: var(--text); }
.td-user-sub { font-size: 11px; color: var(--text-subtle); }

/* Ponto (nota + barra) */
.ponto-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.ponto-nums { white-space: nowrap; }
.ponto-nums b { font-size: 14px; font-weight: 800; color: var(--text); }
.ponto-nums .max { font-size: 11px; color: var(--text-subtle); }
.ponto-pct { font-size: 10px; color: var(--text-muted); display: block; }
.ponto-bar { flex: 1; height: 7px; border-radius: 999px; background: var(--surface-4); overflow: hidden; min-width: 70px; }
.ponto-bar-fill { display: block; height: 100%; border-radius: 999px; }
.ponto-bar-fill--high { background: var(--green); }
.ponto-bar-fill--mid  { background: var(--warning); }
.ponto-bar-fill--low  { background: var(--danger); }

/* =============================================================
   ASSISTENTE IA (drawer)
   ============================================================= */
.ia-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; border: none;
  border-radius: 999px; padding: 12px 20px; font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgba(47,109,176,0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}
.ia-launcher:hover { background: var(--brand-hover); transform: translateY(-2px); }
.ia-launcher .ic { font-size: 18px; }

.ia-overlay {
  position: fixed; inset: 0; background: rgba(27,42,68,0.32);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease; z-index: 70;
}
body.ia-open .ia-overlay { opacity: 1; visibility: visible; }

.ia-panel {
  position: fixed; top: 0; right: 0; height: 100vh; width: var(--ia-w); max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(27,42,68,0.14);
  display: flex; flex-direction: column; z-index: 80;
  transform: translateX(100%); transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
}
body.ia-open .ia-panel { transform: translateX(0); }

.ia-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.ia-header-title { display: flex; align-items: center; gap: 11px; }
.ia-avatar {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ia-name { font-size: 14px; font-weight: 700; color: var(--text); }
.ia-sub { font-size: 11px; color: var(--text-muted); }

.btn-icon { background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 6px; border-radius: 8px; display: flex; transition: background 0.15s, color 0.15s; }
.btn-icon:hover { background: var(--surface-3); color: var(--text); }

.ia-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }

.ia-empty { margin: auto 0; text-align: center; padding: 10px; }
.ia-empty-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.ia-empty-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ia-empty-text { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.ia-suggestions { display: flex; flex-direction: column; gap: 8px; }
.ia-chip {
  background: var(--surface-2); border: 1px solid var(--border-md); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 12px; padding: 9px 12px;
  cursor: pointer; text-align: left; transition: background 0.15s, border-color 0.15s;
}
.ia-chip:hover { background: var(--brand-soft); border-color: var(--brand); }

.ia-msg { display: flex; max-width: 88%; animation: ia-in 0.2s ease both; }
.ia-msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.ia-msg--user { align-self: flex-end; }
.ia-msg--user .ia-msg-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.ia-msg--bot { align-self: flex-start; }
.ia-msg--bot .ia-msg-bubble { background: var(--surface-3); color: var(--text); border-bottom-left-radius: 4px; }

/* Markdown dentro da resposta do assistente */
.ia-msg-bubble p { margin: 0 0 6px; }
.ia-msg-bubble p:last-child { margin-bottom: 0; }
.ia-msg-bubble ul { margin: 4px 0 6px; padding-left: 18px; }
.ia-msg-bubble li { margin: 2px 0; }
.ia-msg-bubble .ia-h { font-weight: 700; margin: 8px 0 4px; color: var(--brand-dark); }
.ia-msg-bubble .ia-h:first-child { margin-top: 0; }
.ia-msg-bubble strong { font-weight: 700; }

/* Follow-ups: sugestões da próxima pergunta */
.ia-followup { display: flex; flex-direction: column; gap: 6px; align-self: flex-start;
  width: 100%; margin-top: 4px; animation: ia-in 0.2s ease both; }
.ia-followup-label { font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }

.ia-composer { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.ia-input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border-md);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 13px;
  padding: 10px 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.ia-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.ia-send {
  background: var(--brand); border: none; border-radius: 10px; color: #fff;
  width: 42px; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: background 0.15s; }
.ia-send:hover { background: var(--brand-hover); }

/* =============================================================
   BOTÕES, ALERTAS, LOGIN
   ============================================================= */
.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: 13px;
  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); }

.data-error {
  background: #FBE6E6; color: var(--danger); border: 1px solid #F1BCBC;
  border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.55; margin-bottom: 16px;
}

.alert { border-radius: 8px; padding: 10px 14px; font-size: 12px; margin-bottom: 14px; }
.alert--danger { background: #FBE6E6; color: var(--danger); border: 1px solid #F1BcbC; }

/* LOGIN */
body.page-login { display: flex; align-items: stretch; justify-content: center; height: 100vh; overflow: hidden; }
.login-wrap { width: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.login-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 56px 64px;
  background: linear-gradient(160deg, #24466E 0%, #1E3A5F 55%, #16293F 100%);
}
.login-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 90% at 25% 20%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 25% 20%, #000 25%, transparent 78%);
}
.login-hero-inner { position: relative; z-index: 1; max-width: 470px; }
.login-hero .brand-wordmark { font-size: 30px; margin-bottom: 28px; }
.login-hero-logo { display: block; width: 210px; max-width: 60%; height: auto; margin-bottom: 26px; }
.login-hero-badge {
  display: inline-flex; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #AFD3F5; background: rgba(127,192,245,0.14); border: 1px solid rgba(127,192,245,0.4);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 24px;
}
.login-hero-title { font-size: 30px; line-height: 1.22; font-weight: 800; color: #fff; margin-bottom: 16px; }
.login-hero-title .acc { color: #8FCB6B; }
.login-hero-sub { font-size: 14px; line-height: 1.65; color: #C2D0E4; max-width: 430px; }
.login-hero-svg { margin-top: 40px; width: 100%; max-width: 440px; height: auto; display: block; }

.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--surface); }
.login-card { width: 100%; max-width: 360px; }
.login-card-word { text-align: center; font-size: 26px; margin-bottom: 22px; }
.login-card-logo { display: block; width: 190px; max-width: 72%; height: auto; margin: 0 auto 24px; }
.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-2); 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, box-shadow 0.15s ease;
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.login-btn { width: 100%; padding: 11px 0; margin-top: 6px; }
.login-footer { margin-top: 20px; text-align: center; font-size: 11px; color: var(--text-subtle); }

@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-hero { display: none; } }
