/* Orla — tokens e base compartilhada (landing, auth e painel) */
:root {
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --surface: #13171c;
  --surface-2: #181d23;
  --line: #232a32;
  --line-2: #2d3540;
  --text: #e9edf1;
  --text-2: #a7b0ba;
  --text-3: #6f7a86;
  --accent: #f5a524;
  --accent-2: #ffbf52;
  --accent-ink: #1a1204;
  --accent-soft: rgba(245, 165, 36, 0.12);
  --ok: #3ccf91;
  --ok-soft: rgba(60, 207, 145, 0.12);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, 0.12);
  --err: #f16a6a;
  --err-soft: rgba(241, 106, 106, 0.12);
  --info: #6aa8f1;
  --info-soft: rgba(106, 168, 241, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px -20px rgba(0,0,0,0.6);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.brand-mark { width: 26px; height: 26px; flex: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-weight: 500; font-size: 14.5px;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--surface-2); border-color: #3a4450; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: transparent; }
.btn-danger { color: var(--err); border-color: rgba(241,106,106,.35); background: transparent; }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 10px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 7px; }
.btn svg { width: 16px; height: 16px; }

/* Formulários */
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 12px; }
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--err); }
.field-error { font-size: 13px; color: var(--err); min-height: 0; }
.field-hint { font-size: 12.5px; color: var(--text-3); }

/* Selos de status */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: var(--ok-soft); }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.badge-err { color: var(--err); background: var(--err-soft); }
.badge-info { color: var(--info); background: var(--info-soft); }
.badge-muted { color: var(--text-2); background: var(--surface-2); border-color: var(--line); }
.badge-demo { color: var(--text-2); background: transparent; border: 1px dashed var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.badge-demo::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Marca: nod77 by Orla */
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }
.brand-name small { font-family: var(--font); font-size: .62em; font-weight: 500; letter-spacing: 0; color: var(--text-3); }

[hidden] { display: none !important; }
