/* Baronneza — tokens e componentes compartilhados (loja, catálogo B2B, painel, instalador)
   Branco como base, rosa nos botões e chamadas, azul nos detalhes. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --ink: #1d2440;
  --muted: #5f6782;
  --line: #e4e8f1;
  --blue: #395da9;
  --blue-ink: #2b4888;
  --blue-soft: #eaf0fb;
  --pink: #ff7bac;
  --cta: #d63a78;
  --cta-hover: #bd2c66;
  --on-cta: #ffffff;
  --pink-soft: #fff0f6;
  --pink-ink: #b0285d;
  --good: #16865b; --good-soft: #e1f4ec;
  --warn: #a2650a; --warn-soft: #fbf0db;
  --bad: #c3304b; --bad-soft: #fbe5ea;
  --shadow: 0 1px 2px rgba(29,36,64,.05), 0 8px 24px rgba(29,36,64,.07);
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
.serif { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sku { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 15px; height: 15px; } .ic.lg { width: 22px; height: 22px; } .ic.xl { width: 36px; height: 36px; stroke-width: 1.4; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.3; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.pink { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn.pink:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--on-cta); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.btn.lg { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* formulários */
.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.f small { font-weight: 400; font-size: 12px; }
.f input, .f select, .f textarea, .inp { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 400; color: var(--ink); outline: none; min-width: 0; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.chk input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--cta); }
.alert { border-radius: 11px; padding: 11px 14px; font-size: 14px; background: var(--surface-2); }
.alert.bad { background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.alert.good { background: var(--good-soft); color: var(--good); }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill.pink { background: var(--pink-soft); color: var(--pink-ink); }
.small-link { font-size: 13.5px; text-align: center; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* páginas centralizadas (erros, recuperação) */
.center-page { background: var(--bg-soft); min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.center-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 480px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.center-card h1 { font-size: 26px; }

/* login (painel) */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: var(--blue); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; background: var(--pink); opacity: .35; }
.auth-art h2 { font-family: var(--f-display); font-weight: 400; font-size: 38px; max-width: 14ch; position: relative; z-index: 1; }
.auth-art p { max-width: 44ch; opacity: .9; position: relative; z-index: 1; }
.auth-mark { width: 74px; }
.auth-f { display: grid; place-items: center; padding: 40px 16px; background: var(--bg); }
.auth-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.auth-logo { width: 190px; align-self: center; }
.auth-card h1 { font-size: 26px; text-align: center; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
