/* ============================================================
   Backoffice zeist — identidade de marioruioliveira.com
   Paleta escura, acento latão, fios de 1px em vez de sombras.
   Tokens e componentes-base; cada página acrescenta o seu.
   ============================================================ */

/* Fontes alojadas no próprio domínio — nada é pedido a terceiros. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost — geométrica à Futura. No site é o slogan; aqui são os títulos de página. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212;
}

:root {
  --bg: #0b1017;
  --bg-alt: #0f1621;
  --surface: #141d2a;
  --surface-hi: #1a2534;

  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.16);

  --ink: #eef2f7;
  --ink-soft: #9aa8bc;
  --ink-faint: #6b7a8f;

  --accent: #c9a76b;
  --accent-hi: #dcbd85;
  --accent-dim: rgba(201, 167, 107, 0.14);

  /* Estados. Escolhidos para ler sobre fundo escuro. */
  --red: #f2848a;
  --red-dim: rgba(242, 132, 138, 0.14);
  --green: #6ed3a5;
  --amber: #e8b765;

  --radius: 4px;
  --maxw: 1120px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display: "Jost", var(--sans);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
}
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.muted { color: var(--ink-soft); }

/* Etiqueta em versaletes — o `.card-tag` do site. */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------- Topo -- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 23, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.marca {
  flex: none;
  width: 54px;
  height: auto;
  fill: var(--accent);
}
.wordmark-txt {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.wordmark-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 5px;
}

/* ------------------------------------------------------- Estrutura -- */

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}
/* Quando a marca já ocupa o topo, a página não precisa de tanto ar por cima. */
.marca-topo + .wrap { padding-top: 40px; }
.wrap.wide { max-width: var(--maxw); }

/* Cabeçalho de página: etiqueta + título, ações à direita. */
.menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.menu-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  line-height: 1.3;
  color: var(--accent);
  margin-top: 6px;
}
.head-acoes {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: none;
}

/* -------------------------------------------------------- Botões -- */

/* Base neutra. O estilo cheio é explícito (`.primario`) — nada de apanhar por
   exclusão, senão os `chip` e as marcas do calendário vinham a latão também. */
button, .botao-link {
  font-family: inherit;
  font-size: 14.5px;
  cursor: pointer;
}

.primario {
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #10161f;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.primario:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
button[disabled] { opacity: 0.5; cursor: default; }

button.ghost, .botao-link {
  padding: 10px 18px;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
button.ghost:hover, .botao-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink-faint);
}

button.perigo {
  padding: 10px 18px;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: transparent;
  color: var(--red);
}
button.perigo:hover { border-color: var(--red); background: var(--red-dim); }

/* -------------------------------------------------------- Campos -- */

input[type="password"],
input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { resize: vertical; }

/* -------------------------------------------------------- Cartões -- */

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card.center { text-align: center; max-width: 420px; margin: 0 auto; }

.err {
  color: var(--red);
  font-size: 14px;
  min-height: 20px;
  margin-top: 10px;
}

/* ---------------------------------------------------- Ambiente -- */

/* Os dois halos da hero do site — latão à esquerda, azul à direita. Ficam
   presos ao topo da página e dão profundidade ao fundo chapado. */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
body::before {
  inset: -20% 45% 55% -25%;
  background: radial-gradient(closest-side, rgba(201, 167, 107, 0.13), transparent 100%);
}
body::after {
  inset: -10% -30% 50% 40%;
  background: radial-gradient(closest-side, rgba(78, 122, 176, 0.14), transparent 100%);
}
.topbar, .wrap, .marca-topo { position: relative; z-index: 1; }

/* Marca em grande na página de entrada — o lockup do site, sobre o halo. */
.marca-topo {
  display: flex;
  justify-content: center;
  padding: 64px 28px 0;
}
.lockup {
  display: block;
  width: min(300px, 72%);
  height: auto;
}
@media (max-width: 620px) {
  .marca-topo { padding-top: 44px; }
  .lockup { width: min(230px, 80%); }
}

/* --------------------------------------------------------- Menu -- */

/* Grelha de fios: o fundo faz de traço e cada peça tapa-o. Sem sombras. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  padding: 32px 28px 30px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.tile:hover { background: var(--surface); }

/* A etiqueta do `.card-tag` do site — categoria em versaletes, a latão. */
.tile-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tile-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.tile-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.tile-host {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tile:hover .tile-host { color: var(--accent); }

.foot {
  font-size: 13.5px;
  margin-top: 28px;
  text-align: center;
  color: var(--ink-faint);
}

/* --------------------------------------------------------- Login -- */

#login h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--accent);
  margin: 10px 0 6px;
}
#login form { margin-top: 22px; }
#login input[type="password"] { margin-bottom: 12px; }
#login-btn { width: 100%; }
#login-btn, #login-btn:hover { color: #10161f; }

@media (max-width: 620px) {
  .wrap { padding: 36px 20px 64px; }
  .topbar-in { padding: 0 20px; height: 60px; }
  .marca { width: 44px; }
  .wordmark-sub { display: none; }
  .menu-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
