/* ====== RESET (leve) ====== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  overflow: hidden;
/* === CONFIGURAÇÃO DA IMAGEM DE FUNDO === */
  background-image: url('assets/bg/background.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ====== APP ====== */
.app {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== VIEW (card branco) ====== */
.view {
  position: relative;
  width: 100%;
  max-width: 100vw;
    height: 100%;
  max-height: 100vh;
  /* Fundo semitransparente opcional para ler melhor (se quiser tirar, mude para transparent) */
    background: rgba(243, 240, 240, 0.85);
  display: none;
  flex-direction: column;
  padding: 18px;
}

.view.is-active {
  display: flex;
}

/* ====== TOP ====== */
.top {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  flex-shrink: 0;
  transition: padding 0.3s ease;
}

.top-logo {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
}

/* ====== CONTENT ====== */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-bottom: 100px;
    align-items: center;
}

.content.center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.headline {
  margin: 0;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.25;
}

/* ====== FORM ====== */
.title {
  margin: 100px 0 6px;
  text-align: center;
  font-size: clamp(20px, 3vw, 48px);
  font-weight: 800;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.field {
  width: 100%;
  max-width: 675px;
}

/* INPUT ORIGINAL (PC) */
.input {
  width: 100%;
  height: 140px;
  padding: 0 12px;
  border-radius: 40px;
  border: 15px solid #7d3cff;
  outline: none;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  background: #fff;
  color: #111;
  transition: all 0.2s ease;
}

.input::placeholder {
  color: #111;
  opacity: 1;
  font-weight: 700;
}

.input:focus {
  box-shadow: 0 0 0 3px rgba(125, 60, 255, 0.14);
}

/* ====== BOTÃO ====== */
.btn {
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 1px;
/* CORREÇÃO DO CLIQUE NO TABLET */
  position: relative;
  z-index: 50;
}

.btn.primary {
  width: 30%;
    max-width: 675px;
  height: 118px;
  border-radius: 38px;
  background: #8d3cf6;
  color: #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  font-size: clamp(24px, 4vw, 48.5px);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn.primary:active {
  transform: translateY(1px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.btn.primary:disabled {
  background: #bdbdbd;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
  cursor: not-allowed;
  opacity: 1;
}

/* ====== ERROS ====== */
.error {
  width: 100%;
  max-width: 320px;
  text-align: center;
  color: #b00020;
  font-size: 30px;
  min-height: 16px;
}

/* ====== TERMOS (PC) ====== */
.terms-intro {
  margin: 20px 0 0 0;
  display: flex;
  font-size: 25px;
  line-height: 1.35;
  color: #222;
  text-align: left;
  flex-direction: column;
}

.terms-box {
  flex: none;
    height: 715px;
    max-height: 45vh;
    background: #ffffff;
    border: 10px solid #a855f7;
    border-radius: 25px;
    padding: 20px;
    font-size: 14px;
    /* Ajustado para leitura melhor */
    line-height: 1.3;
    width: 85%;
    color: #000;
  margin-bottom: 20px;
  overflow-y: auto;
}

.terms-box h3 {
  margin: 0 0 6px;
  font-size: 1.4em;
}

.terms-box ul {
  margin: 8px 0 10px 18px;
}

.terms-box .spacer {
  height: 18px;
}

/* ====== FOOTER LOGOS ====== */
.bottom-logos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
/* IMPORTANTE PARA O CLIQUE FUNCIONAR */
  pointer-events: none;
  z-index: 10;
}

.partner.small {
  height: auto;
  width: auto;
  max-height: 120px;
    max-width: 100%;
  display: block;
  object-fit: contain;
}

/* =========================================
   MEDIA QUERIES (<1024px) - TABLET/MOBILE
   ========================================= */
@media (max-width: 1024px) {

  /* REMOVIDO O BACKGROUND WHITE !IMPORTANT PARA A IMAGEM APARECER */
  html,
  body {
    color-scheme: light;
  }

  .view {
    padding: 10px 10px 80px;
    /* Aumentado footer padding */
    /* Fundo branco no card para leitura, ou remova se quiser transparente */
    background: #ffffff;
  }

  .top {
    padding-top: 40px;
  }

  .top-logo {
    max-width: 300px;
  }

  .title {
    margin: 30px 0 10px;
    font-size: 24px;
  }

  .headline {
    font-size: 32px;
  }

  /* Inputs menores */
  .input {
    height: 60px;
    font-size: 20px;
    border-width: 4px;
    border-radius: 15px;
  }

  .input:focus {
    box-shadow: 0 0 0 2px rgba(125, 60, 255, 0.2);
  }

  /* Botões menores */
  .btn.primary {
    height: 70px;
    width: 80%;
    /* Mais largo no mobile */
    font-size: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  }

  .error {
    font-size: 16px;
    margin-top: 5px;
  }

  /* Termos ajustados */
  .terms-intro {
    font-size: 16px;
    /* 19px era muito grande */
    width: 90%;
    text-align: center;
    margin-bottom: 15px;
  }

  .terms-box {
    border-width: 4px;
    border-radius: 15px;
    font-size: 14px;
    /* 22px era gigante para texto longo */
    min-height: 150px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .partner.small {
    max-height: 80px;
      /* Menor para não cobrir o botão */
  }

                .bottom-logos {
    bottom: 10px;
      /* Fundo removido para ver a imagem de fundo */
      background: transparent;
    }
    }
    
    /* Telas muito pequenas */
    @media (max-height: 700px) {
      .top {
        padding-top: 20px;
      }
    
      .title {
        margin-top: 15px;
      }
    
      .partner.small {
        max-height: 60px;
      }
}