/* nexID: telas de entrada. Usa os tokens do @nexnation/ui (static/ui). Sem JavaScript. */
/* Tema "sistema": sem data-theme na página, segue a preferência do aparelho (os tokens já trazem o escuro em :root). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
  color-scheme: light;
  --surface-0: #fafaf9;
  --surface-1: #ffffff;
  --surface-2: #f5f5f4;
  --surface-3: #e7e5e4;
  --border-subtle: #e7e5e4;
  --border: #8a817a;
  --text: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #6b625c;
  --text-disabled: #a8a29e;
  --brand: var(--orange-500);
  --brand-text: var(--orange-700);
  --brand-soft: var(--orange-100);
  --brand-tint: var(--orange-200);
  --wordmark-nex: var(--orange-600);
  --action: var(--orange-700);
  --action-hover: var(--orange-800);
  --focus-ring: var(--orange-700);
  --success: #047857;
  --success-soft: #d1fae5;
  --warning: #92400e;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --overlay: #1c191780;
  --shadow-sm: 0 1px 2px #1c19171a;
  --shadow-md: 0 8px 24px #1c19171f;
  --shadow-lg: 0 24px 48px #1c191729;
  }
}
body { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.nx-entrada { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.nx-entrada--larga { max-width: 640px; }
.nx-entrada-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nx-entrada-topo img { height: 28px; }
.nx-entrada-topo .nx-empresa { color: var(--text-secondary); font-weight: 600; border-left: 1px solid var(--border-subtle); padding-left: 12px; }
.logo-escuro { display: block; }
.logo-claro { display: none; }
[data-theme="light"] .logo-escuro { display: none; }
[data-theme="light"] .logo-claro { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo-escuro { display: none; }
  :root:not([data-theme]) .logo-claro { display: block; }
}
.nx-painel { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.nx-painel h1 { font-size: 20px; line-height: 28px; margin: 0; }
.nx-painel h2 { font-size: 16px; line-height: 24px; margin: 0; }
.nx-painel p { margin: 0; color: var(--text-secondary); }
.nx-campo { display: flex; flex-direction: column; gap: 6px; }
.nx-campo label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-secondary); }
.nx-campo input, .nx-campo select { font: inherit; color: var(--text); background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; width: 100%; }
.nx-botao { font: inherit; font-weight: 600; border: 0; border-radius: var(--radius-md); padding: 10px 16px; cursor: pointer; background: var(--action); color: var(--on-action); text-align: center; text-decoration: none; display: inline-block; }
.nx-botao:hover { background: var(--action-hover); }
.nx-botao--secundario { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-subtle); }
.nx-botao--secundario:hover { background: var(--surface-3); }
.nx-botao--perigo { background: var(--danger-fill); color: #ffffff; }
.nx-linha { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nx-aviso { border-radius: var(--radius-md); padding: 12px; background: var(--surface-2); color: var(--text); }
.nx-aviso--erro { background: var(--danger-soft); }
.nx-aviso--ok { background: var(--success-soft); }
.nx-chave { font-family: var(--font-mono, monospace); font-size: 16px; letter-spacing: 2px; word-break: break-all; background: var(--surface-2); padding: 12px; border-radius: var(--radius-md); }
.nx-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nx-lista li { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 12px; }
.nx-mudo { color: var(--text-muted); font-size: 13px; }
a { color: var(--brand-text); }
form { margin: 0; }
.nx-form { display: flex; flex-direction: column; gap: 16px; }
.nx-cresce { flex: 1; }
.nx-entrada-topo .nx-empresa--logo { display: flex; align-items: center; }
.nx-entrada-topo .nx-empresa--logo img { height: 28px; max-width: 160px; object-fit: contain; }
