/* ============================================
   ELEVA AMAPÁ — Login / Cadastro
   Adaptado do modelo enviado, na paleta do Eleva
   (preto + dourado + branco, sem verde neon).
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  background: #09090b;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.08), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.06), transparent 40%);
  min-height: 100vh;
}

/* Pontinhos decorativos de fundo, tipo "estrelas" sutis */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.08), transparent);
  background-size: 100% 100%;
}

/* Card principal do formulário */
.auth-card {
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tab ativa (Login / Cadastro) com sublinhado dourado animado */
.auth-tab {
  position: relative;
  padding-bottom: 0.5rem;
}
.auth-tab.active {
  color: #f59e0b;
}
.auth-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Inputs com foco dourado */
.auth-input {
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Indicador de força de senha */
.strength-bar {
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.strength-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Bolinhas de progresso do wizard (1, 2, 3) */
.step-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}
.step-circle.active {
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.step-circle.done {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #09090b;
}
.step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}
.step-connector.done {
  background: #f59e0b;
}

/* Painéis de step: só o ativo aparece */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fadeStep 0.35s ease-out;
}
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Checkbox customizado dos objetivos (cards clicáveis) */
.goal-card {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}
.goal-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}
.goal-card.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.goal-card.selected .goal-check {
  background: #f59e0b;
  border-color: #f59e0b;
}
.goal-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Checkbox de termos customizado */
.terms-check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.terms-check.checked {
  background: #f59e0b;
  border-color: #f59e0b;
}

/* Mensagem de erro discreta abaixo do input */
.field-error {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: none;
}
.field-error.show {
  display: block;
}

/* Spinner de carregamento no botão */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(9, 9, 11, 0.3);
  border-top-color: #09090b;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar customizada */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }