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

/* --- BOTÃO PRIMÁRIO (ação principal, cor rosa) --- */
button.primary {
  width: 100%;
  padding: 10px 24px;
  font-family: 'ItauTextPro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #3D54CD;
  background: #FFEC01;
  border: none;
  border-radius: 100px;
  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: #e6d401;
  color: #3D54CD;
}

button.primary:active:not(:disabled) {
  background: #ccc001;
  color: #3D54CD;
}

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

/* --- BOTÃO SECUNDÁRIO (ação alternativa, contorno laranja) --- */
button.secondary {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.625rem;
  font-family: 'ItauTextPro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  background: transparent;
  font-weight: 500;
  color: #3468FF;
  border: 1px solid #3468FF;
  border-radius: 100px;
  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(52, 104, 255, 0.3);
  border-top-color: #3468FF;
  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;
}
