/* ==========================================================================
   Integra Bling — Grupo Cisne
   Painel interno, poucos usuários. CSS puro, sem build step (mesmo padrão
   do rh-cisne: public/css/app.css servido direto, sem Vite/Tailwind).
   ========================================================================== */

:root {
  --color-bg: #f1f3f5;
  --color-surface: #ffffff;
  --color-surface-2: #f8f9fb;
  --color-border: #dde1e6;

  --color-text: #1c232b;
  --color-text-muted: #667080;

  --color-primary: #1c2b4a;
  --color-primary-strong: #14203a;
  --color-primary-soft: rgba(28, 43, 74, 0.08);

  --color-success: #1f7a4d;
  --color-success-soft: rgba(31, 122, 77, 0.12);
  --color-danger: #b23b3b;
  --color-danger-soft: rgba(178, 59, 59, 0.1);
  --color-warning: #a9781a;
  --color-warning-soft: rgba(169, 120, 26, 0.12);

  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(20, 24, 30, 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

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

/* Layout --------------------------------------------------------------- */

.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

.guest-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guest-box { width: 100%; max-width: 360px; }

.topbar {
  background: var(--color-primary);
  color: #fff;
}

.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar a, .topbar button { color: #fff; }

.main { padding: 32px 16px; }

/* Cards ------------------------------------------------------------------ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-title { margin-top: 0; }

.list-card { padding: 0; overflow: hidden; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}
.list-row:last-child { border-bottom: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  background: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-strong); }

.btn-block { width: 100%; }

/* Formulários -------------------------------------------------------------- */

.field { margin-bottom: 16px; }

label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

input:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }

.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }
.checkbox-field label { font-weight: 400; margin-bottom: 0; }

/* Alertas ------------------------------------------------------------------ */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert-success { background: var(--color-success-soft); border-color: var(--color-success); }
.alert-error { background: var(--color-danger-soft); border-color: var(--color-danger); }

/* Badges de status --------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success { background: var(--color-success-soft); color: var(--color-success); }
.badge-warning { background: var(--color-warning-soft); color: var(--color-warning); }
