/* =========================================================
   Delta Prime — base comum (fontes locais + modal de acesso)
   Carregado em todas as páginas do tema.
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage.woff2') format('woff2');
}

/* ---------- Modal de acesso (login / cadastro / senha) ---------- */
.dp-auth {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.dp-auth.is-open { display: flex; animation: dpAuthFade .2s ease both; }
.dp-auth__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 20px;
  background: linear-gradient(160deg, #0f172a 0%, #020617 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  color: #e2e8f0;
  animation: dpAuthUp .25s ease both;
}
.dp-auth__fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.dp-auth__fechar:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dp-auth__logo { display: block; height: 34px; width: auto; margin: 0 auto 14px; }
.dp-auth__titulo {
  margin: 0 0 4px;
  color: #fff;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  letter-spacing: -.01em;
}
.dp-auth__sub { margin: 0 0 20px; color: #94a3b8; font-size: 13px; text-align: center; }
.dp-auth__abas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 12px;
  background: rgba(15, 23, 42, .7);
}
.dp-auth__aba {
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94a3b8;
  font: 600 14px/1 'Inter', sans-serif;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.dp-auth__aba[aria-selected="true"] { background: #2563eb; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.dp-auth__form { display: none; }
.dp-auth__form.is-ativo { display: block; }
.dp-auth__campo { margin-bottom: 14px; }
.dp-auth__campo label { display: block; margin-bottom: 6px; color: #cbd5e1; font-size: 13px; font-weight: 500; }
.dp-auth__campo input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: rgba(2, 6, 23, .6);
  color: #fff;
  font: 400 15px/1.3 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.dp-auth__campo input::placeholder { color: #64748b; }
.dp-auth__campo input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.dp-auth__campo input[aria-invalid="true"] { border-color: #f87171; }
.dp-auth__senha { position: relative; }
.dp-auth__senha input { padding-right: 46px; }
.dp-auth__olho {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.dp-auth__olho:hover { color: #cbd5e1; }
.dp-auth__olho svg { width: 18px; height: 18px; }
.dp-auth__erro { display: block; min-height: 0; margin-top: 4px; color: #f87171; font-size: 12px; }
.dp-auth__dica { display: block; margin-top: 6px; color: #64748b; font-size: 12px; }
.dp-auth__enviar {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font: 600 15px/1 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.dp-auth__enviar:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37, 99, 235, .4); }
.dp-auth__enviar:disabled { opacity: .6; cursor: wait; }
.dp-auth__msg { margin-top: 12px; padding: 0; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.dp-auth__msg:empty { display: none; }
.dp-auth__msg.is-ok { padding: 10px 12px; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3); color: #6ee7b7; }
.dp-auth__msg.is-erro { padding: 10px 12px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); color: #fca5a5; }
.dp-auth__links { margin-top: 14px; text-align: center; font-size: 13px; }
.dp-auth__links button {
  border: 0;
  background: none;
  color: #60a5fa;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dp-auth__links button:hover { color: #93c5fd; }
.dp-auth__seguro { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #64748b; font-size: 12px; }
@keyframes dpAuthFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dpAuthUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dp-auth.is-open, .dp-auth__box { animation: none; }
}
html.dp-auth-aberto { overflow: hidden; }
