/* =====================================================================
   Plataforma DISC — design system
   Cores da marca herdadas do sistema legado (#082f49 / #007F7B).
   ===================================================================== */
:root {
  --marca-900: #06243a;
  --marca-800: #082f49;
  --marca-700: #0b4466;
  --destaque: #0d9488;
  --destaque-escuro: #0b766c;
  --destaque-claro: #ccfbf1;

  --disc-d: #e5484d;
  --disc-i: #f5a524;
  --disc-s: #30a46c;
  --disc-c: #3e63dd;

  --fundo: #f4f6f9;
  --superficie: #ffffff;
  --borda: #e3e8ef;
  --texto: #0f172a;
  --texto-suave: #5b6b80;
  --erro: #d93036;
  --erro-fundo: #fdecec;
  --aviso-fundo: #fff7e6;
  --sucesso-fundo: #e8f7ef;

  --raio: 14px;
  --raio-sm: 10px;
  --sombra: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --sombra-forte: 0 24px 60px rgba(6, 36, 58, .18);
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 15px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--destaque); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.02em; }

/* ---------- Formulários ---------- */
.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.entrada {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--texto);
  background: var(--superficie);
  border: 1.5px solid var(--borda);
  border-radius: var(--raio-sm);
  transition: border-color .15s, box-shadow .15s;
}
.entrada:focus { outline: none; border-color: var(--destaque); box-shadow: 0 0 0 4px rgba(13, 148, 136, .15); }
.entrada-senha { position: relative; }
.entrada-senha .entrada { padding-right: 52px; }
.entrada-senha button {
  position: absolute; right: 6px; top: 6px; height: 36px; width: 40px;
  border: 0; background: transparent; color: var(--texto-suave); cursor: pointer; border-radius: 8px;
}
.entrada-senha button:hover { background: var(--fundo); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 22px;
  font: inherit; font-weight: 600;
  border: 0; border-radius: var(--raio-sm);
  cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s;
}
.botao:active { transform: translateY(1px); }
.botao-primario { background: var(--destaque); color: #fff; box-shadow: 0 6px 16px rgba(13, 148, 136, .28); }
.botao-primario:hover { background: var(--destaque-escuro); text-decoration: none; }
.botao-fantasma { background: transparent; color: var(--texto-suave); }
.botao-fantasma:hover { background: var(--fundo); color: var(--texto); text-decoration: none; }
.botao-bloco { width: 100%; }

.alerta { padding: 12px 14px; border-radius: var(--raio-sm); font-size: .9rem; margin-bottom: 1.1rem; }
.alerta-erro { background: var(--erro-fundo); color: var(--erro); }
.alerta-aviso { background: var(--aviso-fundo); color: #8a5a00; }
.alerta-sucesso { background: var(--sucesso-fundo); color: #1d7a4b; }

/* ---------- Tela de login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-marca {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 110% 110%, rgba(13, 148, 136, .55), transparent 60%),
    radial-gradient(600px 400px at -10% -10%, rgba(62, 99, 221, .35), transparent 60%),
    linear-gradient(160deg, var(--marca-700), var(--marca-900));
}
.auth-marca .logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.auth-marca h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 14ch; margin-top: auto; }
.auth-marca p { color: rgba(255, 255, 255, .78); max-width: 42ch; font-size: 1.02rem; }
.disc-barras { display: flex; gap: 10px; align-items: flex-end; height: 120px; margin: 40px 0 24px; }
.disc-barras span {
  width: 46px; border-radius: 10px 10px 4px 4px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px; font-weight: 800; font-size: .85rem; color: rgba(255, 255, 255, .95);
  animation: subir .9s cubic-bezier(.2, .8, .2, 1) both;
}
.disc-barras span:nth-child(1) { background: var(--disc-d); height: 78%; }
.disc-barras span:nth-child(2) { background: var(--disc-i); height: 55%; animation-delay: .08s; }
.disc-barras span:nth-child(3) { background: var(--disc-s); height: 92%; animation-delay: .16s; }
.disc-barras span:nth-child(4) { background: var(--disc-c); height: 64%; animation-delay: .24s; }
@keyframes subir { from { transform: scaleY(0); transform-origin: bottom; opacity: 0; } }
.auth-rodape { font-size: .8rem; color: rgba(255, 255, 255, .55); }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--superficie); }
.auth-cartao { width: 100%; max-width: 400px; }
.auth-cartao h2 { font-size: 1.7rem; }
.auth-cartao .sub { color: var(--texto-suave); margin: 0 0 2rem; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-marca { padding: 28px 24px; min-height: auto; }
  .auth-marca h1, .auth-marca p, .disc-barras, .auth-rodape { display: none; }
  .auth-form { align-items: flex-start; padding-top: 32px; }
}

/* ---------- Painel ---------- */
.painel { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.lateral {
  background: var(--marca-900); color: rgba(255, 255, 255, .8);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  /* Menu maior que a tela: rola dentro da própria barra */
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.lateral > * { flex-shrink: 0; }
.lateral::-webkit-scrollbar { width: 8px; }
.lateral::-webkit-scrollbar-track { background: transparent; }
.lateral::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 999px; border: 2px solid var(--marca-900); }
.lateral::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .32); }
.lateral .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; padding: 4px 10px 22px; }
.lateral a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; color: inherit; font-weight: 500;
}
.lateral a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.lateral a.ativo { background: rgba(13, 148, 136, .22); color: #fff; }
.lateral .grupo { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .4); padding: 18px 12px 6px; }
.lateral .rodape { margin-top: auto; }

.principal { min-width: 0; }
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; background: var(--superficie); border-bottom: 1px solid var(--borda);
}
.topo h1 { font-size: 1.25rem; margin: 0; }
.usuario-chip { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--destaque-claro); color: var(--destaque-escuro);
}
.conteudo { padding: 28px 32px; }

.grade-indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 22px; }
.indicador .rotulo { color: var(--texto-suave); font-size: .85rem; font-weight: 500; }
.indicador .valor { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }

.menu-movel { display: none; }
@media (max-width: 900px) {
  .painel { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .lateral.aberta { transform: none; box-shadow: var(--sombra-forte); }
  .menu-movel { display: inline-flex; }
  .topo, .conteudo { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Páginas simples (erros) ---------- */
.simples { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.simples .codigo { font-size: 4rem; font-weight: 800; color: var(--destaque); letter-spacing: -.04em; }

/* Tipo da pessoa (candidato / colaborador) — painel e tela do teste */
.escolha-tipo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .escolha-tipo { grid-template-columns: 1fr; } }
.escolha-tipo label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 10px; border: 1.5px solid var(--borda); border-radius: var(--raio-sm); cursor: pointer; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.escolha-tipo input { position: absolute; opacity: 0; }
.escolha-tipo label:has(input:checked) { border-color: var(--emp, var(--destaque)); color: var(--emp, var(--destaque)); background: color-mix(in srgb, var(--emp, var(--destaque)) 8%, #fff); }
.escolha-tipo label:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--emp, var(--destaque)) 25%, transparent); }
.entrada-fixa { display: flex; align-items: center; background: #f8fafc; color: var(--texto); font-weight: 600; }

/* ---------- SWOT / Plano de Ação (comum ao painel e à página da pessoa) ---------- */
:root { --q-forca: #16a34a; --q-fraqueza: #dc2626; --q-oportunidade: #2563eb; --q-ameaca: #d97706; }
.q-forca { --q: var(--q-forca); --q-claro: #ecfdf3; }
.q-fraqueza { --q: var(--q-fraqueza); --q-claro: #fef2f2; }
.q-oportunidade { --q: var(--q-oportunidade); --q-claro: #eff6ff; }
.q-ameaca { --q: var(--q-ameaca); --q-claro: #fffbeb; }
.barra-pct { height: 10px; border-radius: 999px; background: #e7ecf2; overflow: hidden; }
.barra-pct span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--destaque), #14b8a6); transition: width .35s ease; }
.anel-pct { --pct: 0; width: 116px; height: 116px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--destaque) calc(var(--pct) * 1%), #e7ecf2 0); }
.anel-pct > div { width: 88px; height: 88px; border-radius: 50%; background: var(--superficie); display: grid; place-content: center; text-align: center; }
.anel-pct strong { font-size: 1.55rem; line-height: 1; }
.anel-pct span { font-size: .72rem; color: var(--texto-suave); margin-top: 3px; }
