/* ==========================================================
   DESIGN SYSTEM & VARIÁVEIS
   Estilo minimalista, limpo e focado em credibilidade/confiança
   ========================================================== */
:root {
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Cores Principais */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  
  /* Sucesso e Acentos de Confiança */
  --primary-emerald: #059669;
  --primary-emerald-light: #ecfdf5;
  --primary-emerald-glow: rgba(16, 185, 129, 0.15);
  --border-emerald: #a7f3d0;
  
  --border-subtle: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.8);
  --shadow-card: 0 20px 45px -10px rgba(15, 23, 42, 0.07), 0 10px 20px -8px rgba(15, 23, 42, 0.04);
  
  --info-bg: #f8fafc;
  --info-border: #e2e8f0;
  --info-icon-bg: #e0e7ff;
  --info-icon-color: #4338ca;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glow Ambiente sutil no fundo */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.05) 70%, transparent 100%);
}

.glow-bottom {
  bottom: -150px;
  right: 15%;
  width: 450px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 80%);
}

/* Top Navigation com Seletor de Idioma */
.top-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.language-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.chevron-icon {
  color: var(--text-subtle);
  transition: transform 0.2s ease;
}

.language-dropdown.active .chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.4rem;
  list-style: none;
  width: 150px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  z-index: 50;
  animation: dropIn 0.15s ease-out;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-menu li:hover, .lang-menu li.active {
  background-color: #f1f5f9;
  color: var(--text-main);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container Principal Centralizado */
.main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
  z-index: 1;
}

/* Card de Boas-Vindas */
.welcome-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 3.25rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ícone de Sucesso Animado */
.icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-emerald-glow);
  animation: pulseEffect 2.5s infinite ease-out;
}

@keyframes pulseEffect {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.success-icon-box {
  position: relative;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -3px rgba(16, 185, 129, 0.35);
}

.checkmark-svg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  stroke-width: 3.5;
  stroke: #ffffff;
  stroke-miterlimit: 10;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke: rgba(255, 255, 255, 0.3);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.2s;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Badge de Status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-emerald-light);
  border: 1px solid var(--border-emerald);
  color: var(--primary-emerald);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

/* Tipografia */
.main-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  transition: var(--transition-smooth);
}

.main-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1.5rem;
  font-weight: 400;
  transition: var(--transition-smooth);
}

/* Observação de Personalização */
.custom-note-box {
  width: 100%;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.65) 0%, rgba(241, 245, 249, 0.85) 100%);
  border: 1px solid rgba(199, 210, 254, 0.8);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.03);
}

.custom-note-icon {
  color: #4f46e5;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-note-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}

/* Info Box / Dica de E-mail */
.info-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.info-icon {
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.info-content p {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text-subtle);
}

/* Rodapé de Confiança / Selos */
.trust-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-subtle);
}

.trust-item svg {
  color: #059669;
}

.trust-divider {
  width: 4px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 50%;
}

/* Responsividade */
@media (max-width: 640px) {
  .welcome-card {
    padding: 2.25rem 1.5rem 1.75rem;
    border-radius: 20px;
  }

  .main-title {
    font-size: 1.45rem;
  }

  .main-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .trust-footer {
    flex-direction: column;
    gap: 0.6rem;
  }

  .trust-divider {
    display: none;
  }
}
