/* Page-specific styles for login page */

.login-form {
  width: 100%;
}

/* Input fields with left icon — needs extra left padding override */
.form-group {
  position: relative;
}

.form-group input {
  padding: 14px 16px 14px 44px;
}

/* Ícones nos inputs */
.form-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
}

.form-group .input-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Link Esqueci Senha */
.forgot-password {
  text-align: center;
  margin-bottom: 20px;
}

.forgot-password a {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.forgot-password a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Cap.js CAPTCHA Widget */
.captcha-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

cap-widget {
  --cap-background: #fafafa;
  --cap-border-color: #d1d5db;
  --cap-border-radius: 6px;
  --cap-widget-height: 28px;
  --cap-widget-width: 100%;
  --cap-widget-padding: 12px;
  --cap-gap: 12px;
  --cap-color: #374151;
  --cap-checkbox-size: 22px;
  --cap-checkbox-border: 1px solid #9ca3af;
  --cap-checkbox-border-radius: 4px;
  --cap-checkbox-background: #ffffff;
  --cap-checkbox-margin: 2px;
  --cap-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --cap-spinner-color: #1e3a8a;
  --cap-spinner-background-color: #e5e7eb;
  --cap-spinner-thickness: 3px;
  width: 100%;
}

/* Botão Acessar (Azul) */
.btn-acessar {
  background-color: #1e3a8a;
  color: white;
  margin-bottom: 20px;
}

.btn-acessar:hover {
  background-color: #1e40af;
}

.btn-acessar:disabled {
  background-color: #93c5fd;
}

/* Seção de Acesso Público */
.public-access {
  padding: 20px 24px 16px;
  border-top: 1px solid #e5e7eb;
}

/* Link Solicitar Acesso */
.register-link {
  text-align: center;
  margin-bottom: 16px;
}

.register-link a {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.register-link a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.public-access-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
}

.public-access-info svg {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}

/* Botão Acesso Público (Verde) */
.btn-publico {
  background-color: #16a34a;
  color: white;
}

.btn-publico:hover {
  background-color: #15803d;
}

/* Versão no Rodapé */
.version-info {
  text-align: center;
  padding: 12px 24px 16px;
  color: #9ca3af;
  font-size: 12px;
}

/* ── Botão Entrar com Gov.br ── */
.govbr-separator {
  display: flex;
  align-items: center;
  margin: 16px 0;
  gap: 12px;
}

.govbr-separator::before,
.govbr-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.govbr-separator span {
  font-size: 13px;
  color: #888;
  text-transform: lowercase;
}

/* ── Wrapper para <br-sign-in> web component ── */
.govbr-signin-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}
