/* Backoffice zeist — mesma linguagem visual das landings de clientes. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1f2937;
  --ink-muted: #6b7280;
  --line: #e5e7eb;
  --brand: #1f3a5f;
  --brand-soft: #e8eef6;
  --red: #b91c1c;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.hero {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
}
.hero img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .hero, .hero img { max-height: 180px; }
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 4px;
}

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

/* ---------- Cartão de login ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.card.center { text-align: center; max-width: 400px; margin: 0 auto; }

#login form { margin-top: 20px; }

input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 12px;
  background: #fff;
  color: inherit;
}
input[type="password"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

button {
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
#login-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
#login-btn[disabled] { opacity: 0.6; cursor: default; }

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

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

.menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
}
button.ghost:hover { background: var(--surface); color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(15, 23, 42, 0.09);
}
.tile-icon { font-size: 26px; line-height: 1; }
.tile-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.tile-desc { font-size: 14px; color: var(--ink-muted); }
.tile-host {
  margin-top: 6px;
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
}

.foot { font-size: 13px; margin-top: 24px; text-align: center; }
