/* Complemento visual do cadastro. O fundo, a marca e os ícones vêm de login.css. */

html,
body {
  height: auto;
}

.page-cadastro .stage {
  align-items: flex-start;
}

.page-cadastro .card {
  flex: 0 0 560px;
  width: 560px;
  padding: 22px 22px 18px;
}

.page-cadastro h2 {
  margin: 2px 0 18px;
  font-size: 22px;
}

.passo {
  margin: 0 0 16px;
}

.passo h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f2187c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 22px;
}

.par,
.tri {
  display: grid;
  gap: 10px;
}

.par { grid-template-columns: 1fr 1fr; }
.tri { grid-template-columns: 1fr 1fr 1fr; }

.rotulo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #1c2434;
}

.rotulo input,
.rotulo select,
.genero-extra select {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 12px;
  border: 1.5px solid #e4e9f1;
  border-radius: 12px;
  background: #fff;
  color: #1c2434;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

.rotulo input::placeholder,
.genero-extra select { font-weight: 650; }

.rotulo input:focus,
.rotulo select:focus,
.genero-extra select:focus {
  border-color: #f7c5dd;
  box-shadow: 0 0 0 4px rgba(254, 15, 143, 0.1);
}

.genero-extra {
  margin-top: 10px;
}

.campo-ajuda {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: #667085;
  font-weight: 700;
}

.page-cadastro .campo {
  margin-bottom: 10px;
}

.aceite {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #3d4656;
  cursor: pointer;
}

.aceite input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid #c5ceda;
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
}

.aceite input:checked {
  background: #2f6bff;
  border-color: #2f6bff;
}

.aceite input:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.aceite a {
  color: #2f6fe0;
  font-weight: 800;
  text-decoration: none;
}

.aceite a:hover { text-decoration: underline; }

.page-cadastro .seguro { margin: 0 0 12px; }

.page-cadastro .cadastro {
  border-top: 0;
  margin-top: 12px;
  padding-top: 2px;
  background: transparent;
  display: block;
}

.aviso {
  background: linear-gradient(135deg, #fff9e6 0%, #fff2dd 100%);
  color: #7a4b00;
  padding: 20px;
  border: 2px solid #f3c27a;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
  border-radius: 12px;
  line-height: 1.6;
}

.aviso.aviso-pulsante {
  background: linear-gradient(135deg, #f6f0fb 0%, #efe6f8 100%);
  color: #5b3d7a;
  border-color: #c9a8e0;
  transform-origin: center center;
  animation: aviso-balisteri-pulse 1.15s ease-in-out infinite;
  will-change: transform, box-shadow, border-color;
}

.aviso-titulo {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #d97706;
}

.aviso.aviso-pulsante .aviso-titulo { color: #7c4db8; }

.aviso-texto { margin-bottom: 15px; font-size: 13px; }

@keyframes aviso-balisteri-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(124, 77, 184, 0.55), 0 2px 8px rgba(124, 77, 184, 0.15);
    border-color: #c9a8e0;
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 12px rgba(167, 139, 250, 0), 0 0 22px rgba(167, 139, 250, 0.55);
    border-color: #a78bfa;
  }
}

.btn-ativar-conta {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 15px auto 0;
  padding: 14px 18px;
  background: #f2187c;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(242, 24, 124, 0.22);
}

.btn-ativar-conta:hover { background: #e10e72; color: #fff; }

.card.com-aviso form,
.card.com-aviso > h2 { display: none; }

.guarde-painel {
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  color: #1c2434;
}

.guarde-alerta,
.guarde-pergunta,
.guarde-codigos {
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.guarde-alerta {
  background: #fff8e8;
  border: 1px solid #f0d48a;
  color: #6b4e00;
}

.guarde-pergunta {
  background: #f4f7ff;
  border: 1px solid #d5e0f5;
}

.guarde-codigos {
  background: #f7f8fb;
  border: 1px solid #e4e9f1;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.guarde-codigos-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: "Nunito", "Segoe UI", sans-serif;
}

.guarde-codigos ol { margin: 8px 0 0 20px; padding: 0; }
.guarde-codigos li { margin: 4px 0; }

.btn-copiar-codigos {
  width: auto;
  height: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #f2187c;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btn-copiar-codigos.is-copied { background: #1f9a4a; }

.guarde-ack {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 700;
}

.guarde-ack input { margin-top: 3px; }

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  scroll-behavior: smooth;
  background-color: #fff;
  margin: 50px auto;
  padding: 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 18px 50px rgba(40, 72, 130, 0.16);
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: #1c2434;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  border: 0;
  background: transparent;
  padding: 0 8px;
}

.idioma-documento-aviso {
  margin: 0 30px 12px 0;
  padding: 10px 12px;
  background: #edf3ff;
  border-radius: 8px;
  color: #264b91;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .page-cadastro .card {
    width: min(560px, 50vw);
    flex-basis: min(560px, 50vw);
  }
}

@media (max-width: 820px) {
  .page-cadastro .vitrine { display: block; }
  .page-cadastro .hero { display: block; }
  .page-cadastro .selo,
  .page-cadastro .hero h1,
  .page-cadastro .lead,
  .page-cadastro .recursos,
  .page-cadastro .colagem { display: none; }

  .page-cadastro .card {
    width: auto;
    flex: none;
  }

  .page-cadastro h2 {
    margin: 2px 0 14px;
    font-size: 20px;
    text-align: center;
  }

  .tri,
  .par.empilha { grid-template-columns: 1fr; }

  .page-cadastro .cadastro {
    background: transparent;
    padding: 2px 0 0;
    border-radius: 0;
    display: block;
  }

  .modal-content {
    margin: 24px auto;
    width: calc(100% - 24px);
    max-height: 85vh;
  }

  .aviso.aviso-pulsante { animation-name: aviso-balisteri-pulse-mobile; }

  @keyframes aviso-balisteri-pulse-mobile {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(124, 77, 184, 0.5);
      border-color: #c9a8e0;
    }
    50% {
      transform: scale(1.018);
      box-shadow: 0 0 0 8px rgba(167, 139, 250, 0);
      border-color: #a78bfa;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .aviso.aviso-pulsante {
    animation: none !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.4);
    border-color: #a78bfa;
  }
}
