/* ============================================================
   BUSCA FACIAL POR CPF — CSS (módulo ISOLADO)
   ============================================================
   Complementa a base visual do módulo BUSCA FACIAL (.bf-*, em
   busca-facial.css): host/overlay/shell/header/grid/painéis/estado
   vazio/scanner/mensagens/botões são REUTILIZADOS.
   Aqui ficam apenas as classes .bfc-* (Busca Facial por CPF):
     - campo CPF (máscara + foco neon)
     - nota de privacidade (foto protegida)
     - FICHA DO REGISTRO (foto protegida + tabela de dados)
     - painel inline de AUTORIZAÇÃO da fotografia
   Nenhuma regra global: tudo namespaced sob .bfc-.
   ============================================================ */

/* ===== Campo CPF ===== */
.bfc-campo { margin-bottom: 14px; }
.bfc-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7fa6c4;
  margin-bottom: 8px;
  font-weight: 700;
}
.bfc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(6, 12, 20, 0.9);
  border: 1px solid rgba(70, 130, 180, 0.4);
  color: #eaf6ff;
  font-size: 18px;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.bfc-input::placeholder { color: #4f6d86; letter-spacing: 2px; }
.bfc-input:focus {
  border-color: rgba(0, 210, 255, 0.85);
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.45), inset 0 0 12px rgba(0, 170, 255, 0.12);
}
.bfc-input:disabled { opacity: .55; cursor: not-allowed; }
.bfc-erro {
  color: #ff9b9b;
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: .3px;
}
.bfc-erro-foto { margin-top: 4px; text-align: left; }

/* ===== Nota de privacidade (foto protegida) ===== */
.bfc-nota {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 140, 255, 0.07);
  border: 1px solid rgba(90, 200, 255, 0.22);
}
.bfc-nota-ico {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #6fe3ff;
}
.bfc-nota-ico svg { width: 22px; height: 22px; }
.bfc-nota strong {
  display: block;
  font-size: 12.5px;
  color: #cfe8ff;
  letter-spacing: .4px;
  margin-bottom: 2px;
}
.bfc-nota span {
  font-size: 11.5px;
  color: #7fa6c4;
  line-height: 1.45;
  display: block;
}

/* ===== Ficha do registro ===== */
.bfc-ficha {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 18px;
  align-items: start;
  animation: bfcFadeUp .4s ease both;
}

/* Área da fotografia (protegida por padrão) */
.bfc-foto {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0, 210, 255, 0.45);
  box-shadow: 0 0 26px rgba(0, 190, 255, 0.25);
  background: #04070d;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bfc-foto-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #04070d;
  display: block;
}
.bfc-foto-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    repeating-linear-gradient(45deg, rgba(0, 150, 255, 0.05) 0 12px, transparent 12px 24px),
    radial-gradient(420px 320px at 50% 40%, rgba(0, 130, 255, 0.12), transparent 70%);
}
.bfc-foto-lock-ico {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7fe0ff;
  border: 2px solid rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 22px rgba(0, 190, 255, 0.45), inset 0 0 18px rgba(0, 190, 255, 0.2);
  animation: bfcPulse 2.6s ease-in-out infinite;
}
.bfc-foto-lock-ico svg { width: 32px; height: 32px; }
.bfc-foto-lock-title {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: #e6f6ff;
  text-shadow: 0 0 12px rgba(0, 180, 255, 0.5);
}
.bfc-foto-lock-sub {
  font-size: 12px;
  color: #7fa6c4;
  max-width: 280px;
}
.bfc-btn-autorizar { width: auto; max-width: 340px; }

/* Painel inline de autorização (token) */
.bfc-authpanel {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.bfc-authacoes { display: flex; gap: 10px; }
.bfc-authacoes .bf-btn { flex: 1; }

/* Coluna de informações do registro */
.bfc-ficha-dir { min-width: 0; }
.bfc-ficha-info {
  background: linear-gradient(180deg, rgba(11, 20, 33, 0.92), rgba(7, 13, 23, 0.92));
  border: 1px solid rgba(70, 130, 180, 0.28);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.bfc-ficha-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bfc-ficha-ico { width: 24px; height: 24px; color: #6fe3ff; }
.bfc-ficha-ico svg { width: 22px; height: 22px; }
.bfc-ficha-head h4 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #bfe4ff;
}
.bfc-tabela { display: flex; flex-direction: column; }
.bfc-linha {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bfc-linha:last-child { border-bottom: none; }
.bfc-rotulo {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6fa0c0;
  font-weight: 700;
}
.bfc-valor {
  font-size: 13.5px;
  color: #eaf6ff;
  text-align: right;
  word-break: break-word;
  font-weight: 600;
}
.bfc-foto-acoes { margin-top: 12px; display: flex; justify-content: center; }

/* ===== Animações (namespaced) ===== */
@keyframes bfcFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bfcPulse {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ===== RESPONSIVO (MOBILE) ===== */
@media (max-width: 860px) {
  .bfc-ficha { grid-template-columns: 1fr; }
  .bfc-foto { min-height: 300px; }
  .bfc-foto-img { max-height: 420px; }
}
@media (max-width: 480px) {
  .bfc-input { font-size: 16px; padding: 13px 14px; }
  .bfc-foto { min-height: 260px; }
  .bfc-foto-lock-ico { width: 60px; height: 60px; }
  .bfc-foto-lock-ico svg { width: 26px; height: 26px; }
  .bfc-authacoes { flex-direction: column-reverse; }
}
