/* ============================================================================
   BUTTONS.CSS - Estilos para botões e indicadores de carregamento
   ============================================================================ */

/* --- BOTÃO PRIMÁRIO (ação principal, cor rosa) --- */
button.primary {
  width: 130px;
  padding: 12px 28px;
  font-family: 'CAIXAStd', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5rem;
  font-weight: 400;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover do botão primário - escurece a cor */
button.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

/* Botão primário desabilitado - cinza */
button.primary:disabled {
  color: #999;
  background: #e8e8e8;
  cursor: not-allowed;
}

/* --- BOTÃO SECUNDÁRIO (ação alternativa, contorno azul) --- */
button.secondary {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.625rem;
  font-family: 'CAIXAStd', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--terciary);
  background: #FEF4D8;
  border: 0;
  border-radius: 500px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- SPINNER DE CARREGAMENTO (círculo animado) --- */
.btn-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

/* Animação de rotação do spinner */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* --- BOTÃO EM FULL SCREEN (CPF/Pontos) --- */
button.primary--cpf {
  align-self: flex-end;
  margin-bottom: 20px;
}
