:root {
  --navy: #050814;
  --blue: #10285e;
  --blue-soft: #183873;
  --orange: #ff8a22;
  --orange-dark: #dc6810;
  --green: #1f9d63;
  --white: #fff;
  --paper: #f5f7fb;
  --ink: #152033;
  --muted: #637087;
  --border: #dce3ef;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(5, 8, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.topbar {
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--orange);
}
.topbar__inner {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand small { display: block; color: #b8c2d8; font-size: .72rem; font-weight: 400; }
.back-link { color: #dfe6f5; font-size: .9rem; }
.hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue) 65%, #244586);
  padding: 58px 0 88px;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin: auto; }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: center; }
.eyebrow { color: #ffd6b0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 10px 0 18px; font-size: clamp(2rem, 5vw, 3.55rem); line-height: 1.08; }
.hero p { color: #d9e2f5; font-size: 1.05rem; max-width: 720px; }
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 26px;
  backdrop-filter: blur(12px);
}
.hero-card strong { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.hero-card ul { margin: 0; padding-left: 20px; color: #e5ebf8; }
.form-shell {
  width: min(860px, calc(100% - 32px));
  margin: -48px auto 56px;
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 46px);
}
.section-title { margin: 0 0 4px; font-size: clamp(1.5rem, 4vw, 2rem); }
.section-copy { color: var(--muted); margin: 0 0 28px; }
.notice {
  padding: 15px 18px;
  border-radius: 12px;
  margin: 0 0 22px;
  background: #eaf8f1;
  color: #166b45;
  border: 1px solid #bde7d1;
}
.notice--error { background: #fff1f0; color: var(--danger); border-color: #f4c7c3; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 7px; }
.field small { display: block; color: var(--muted); margin-top: 5px; }
input[type="text"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255,138,34,.2); border-color: var(--orange); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfcff;
}
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange-dark); }
.consent { font-size: .9rem; color: #48556d; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  background: var(--orange);
  color: #17100a;
  font: 700 1rem Poppins, Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #ff9f46; }
.btn--secondary { background: var(--blue); color: #fff; }
.btn--small { min-height: 40px; padding: 8px 14px; font-size: .86rem; }
.privacy-note { margin-top: 22px; color: var(--muted); font-size: .86rem; }
.footer { background: var(--navy); color: #c7d0e2; padding: 28px 0; font-size: .88rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Painel */
.admin-body { background: #eef2f8; }
.admin-wrap { width: min(1380px, calc(100% - 28px)); margin: 28px auto 60px; }
.admin-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(20,34,64,.06); }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 20px; }
.filters .field { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--blue); }
.candidate { margin-bottom: 14px; }
.candidate__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 14px; align-items: start; }
.candidate h2 { margin: 0 0 4px; font-size: 1.12rem; }
.meta { color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; background: #edf2fb; color: #294c8b; border-radius: 999px; padding: 4px 9px; margin: 3px 3px 0 0; font-size: .76rem; }
.status { border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status--novo { background:#fff1df; color:#9b4c08; }
.status--em_contato { background:#e8f1ff; color:#245aa5; }
.status--aprovado { background:#e8f8ef; color:#18734a; }
.status--inativo { background:#edf0f4; color:#596374; }
.candidate details { margin-top: 15px; border-top: 1px solid var(--border); padding-top: 13px; }
.candidate summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.candidate__form { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; margin-top: 14px; align-items: end; }
.candidate__form .field { margin: 0; }
.login-card { width: min(480px, calc(100% - 30px)); margin: 70px auto; }
.empty { text-align: center; padding: 38px 18px; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .candidate__top { grid-template-columns: 1fr 1fr; }
  .candidate__form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar__inner { min-height: 64px; }
  .back-link { font-size: .78rem; }
  .hero { padding: 42px 0 74px; }
  .grid-2, .checks, .filters, .stats, .candidate__top { grid-template-columns: 1fr; }
  .form-shell { margin-top: -36px; border-radius: 18px; }
  .btn { width: 100%; }
  .admin-head { align-items: flex-start; flex-direction: column; }
}
