﻿/* Página Criar Conta — conversão em etapas (base visual: index.html) */

.bp-signup {
  position: relative;
  padding: calc(var(--bp-header-h) + 48px) 0 80px;
  min-height: 70vh;
  scroll-margin-top: calc(var(--bp-header-h) + 16px);
}

.bp-signup__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bp-signup__grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(0, 191, 99, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(0, 191, 99, 0.08), transparent 50%);
}

.bp-signup__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.bp-signup__intro {
  text-align: center;
  margin-bottom: 28px;
}

.bp-signup__intro h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--bp-text);
  letter-spacing: -0.02em;
}

.bp-signup__intro p {
  margin: 0;
  color: var(--bp-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.bp-signup__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--bp-radius-pill);
  background: linear-gradient(135deg, rgba(0, 191, 99, 0.16), rgba(0, 191, 99, 0.08));
  color: var(--bp-green);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 191, 99, 0.28);
  box-shadow: 0 4px 14px rgba(0, 191, 99, 0.12);
  letter-spacing: 0.01em;
}

/* Progress — classes próprias para não colidir com .bp-steps da landing */
.bp-signup-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 28px;
  list-style: none;
  padding: 14px 16px;
  border-radius: var(--bp-radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--bp-shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bp-signup-steps__item {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bp-signup-steps__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 700;
  border: 2px solid var(--bp-border);
  background: #fff;
  color: var(--bp-text-muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.bp-signup-steps__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bp-text-muted);
  text-align: center;
  line-height: 1.2;
}

.bp-signup-steps__item.is-active .bp-signup-steps__dot {
  border-color: var(--bp-green);
  background: var(--bp-green);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 191, 99, 0.28);
}

.bp-signup-steps__item.is-done .bp-signup-steps__dot {
  border-color: var(--bp-green);
  background: var(--bp-green-tint, rgba(0, 191, 99, 0.15));
  color: var(--bp-green);
}

.bp-signup-steps__item.is-active .bp-signup-steps__label,
.bp-signup-steps__item.is-done .bp-signup-steps__label {
  color: var(--bp-text);
  font-weight: 600;
}

.bp-signup-steps__line {
  flex: 1 1 24px;
  min-width: 16px;
  max-width: 64px;
  height: 2px;
  background: var(--bp-border);
  margin-bottom: 22px;
  align-self: center;
  border-radius: 2px;
}

.bp-signup-steps__line.is-done {
  background: var(--bp-green);
}

/* Card form */
.bp-signup-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--bp-radius-xl, 28px);
  padding: 32px 28px;
  box-shadow:
    var(--bp-shadow, 0 8px 28px rgba(0, 0, 0, 0.06)),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bp-signup-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.bp-signup-card .bp-step-desc {
  margin: 0 0 22px;
  color: var(--bp-text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bp-btn-gerar {
  flex-shrink: 0;
  padding: 11px 14px;
  min-height: 48px;
  gap: 6px;
}

.bp-btn-gerar .bp-btn-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* Honeypot anti-bot — oculto visualmente */
.bp-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bp-signup-panel[hidden] {
  display: none !important;
}

.bp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bp-form-grid .bp-field--full {
  grid-column: 1 / -1;
}

.bp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--bp-text);
}

.bp-field .req {
  color: var(--bp-green);
}

.bp-field input,
.bp-field select,
.bp-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bp-border);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--bp-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus {
  outline: none;
  border-color: var(--bp-green);
  box-shadow: 0 0 0 3px rgba(0, 191, 99, 0.15);
}

.bp-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--bp-text-muted);
  line-height: 1.35;
}

.bp-field-error {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1.1em;
}

.bp-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.bp-search-row input {
  flex: 1;
  min-width: 0;
}

.bp-btn-search {
  flex-shrink: 0;
  width: 48px;
  border: none;
  border-radius: 12px;
  background: var(--bp-green);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
}

.bp-btn-search:hover:not(:disabled) {
  background: var(--bp-green-hover, #00a054);
  transform: scale(1.04);
}

.bp-btn-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bp-btn-search svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.bp-search-feedback {
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 1.1em;
}

.bp-search-feedback.is-loading { color: var(--bp-text-muted); }
.bp-search-feedback.is-success { color: var(--bp-green); }
.bp-search-feedback.is-error { color: #c0392b; }

.bp-signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--bp-border);
}

.bp-signup-actions__right {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.bp-signup-actions .bp-btn {
  min-width: 120px;
}

.bp-signup-actions .bp-btn[hidden] {
  display: none !important;
}

.bp-field input.is-invalid {
  border-color: #c0392b;
}

.bp-field input.is-valid {
  border-color: var(--bp-green);
}

.bp-field-hint.is-error {
  color: #c0392b;
}

.bp-field-hint.is-success {
  color: var(--bp-green);
}

.bp-field-hint a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.bp-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--bp-text);
}

.bp-terms input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--bp-green);
  flex-shrink: 0;
}

.bp-terms a {
  color: var(--bp-green);
  font-weight: 600;
  text-decoration: underline;
}

.bp-form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.bp-form-status.is-error { color: #c0392b; }
.bp-form-status.is-success { color: var(--bp-green); }

/* Success */
.bp-signup-success {
  text-align: center;
  padding: 20px 8px 8px;
}

.bp-signup-success[hidden] {
  display: none !important;
}

.bp-success-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bp-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bp-success-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bp-success-check svg {
  width: 36px;
  height: 36px;
}

@keyframes bp-success-pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.bp-signup-success h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.bp-signup-success p {
  margin: 0 0 12px;
  color: var(--bp-text-muted);
  line-height: 1.55;
}

.bp-mobile-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--bp-border);
  text-align: left;
}

.bp-mobile-block p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--bp-text);
}

.bp-mobile-block code {
  display: block;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--bp-border);
  font-size: 0.85rem;
  word-break: break-all;
  margin-bottom: 12px;
}

/* Legal page */
.bp-legal {
  padding: calc(var(--bp-header-h) + 48px) 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.bp-legal h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.bp-legal__meta {
  color: var(--bp-text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.bp-legal__nav {
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--bp-border);
}

.bp-legal__nav p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bp-text);
}

.bp-legal__nav ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--bp-text-muted);
}

.bp-legal__nav a {
  color: var(--bp-green);
  text-decoration: none;
  font-weight: 500;
}

.bp-legal__nav a:hover {
  text-decoration: underline;
}

.bp-legal__body h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  scroll-margin-top: calc(var(--bp-header-h) + 16px);
}

.bp-legal__body h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}

.bp-legal__body p,
.bp-legal__body li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--bp-text);
}

.bp-legal__body p {
  margin: 0 0 12px;
}

.bp-legal__body ul,
.bp-legal__body ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.bp-legal__body li {
  margin-bottom: 6px;
}

.bp-legal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.bp-legal__placeholder {
  padding: 28px 24px;
  border-radius: var(--bp-radius-lg, 20px);
  border: 1.5px dashed var(--bp-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--bp-text-muted);
  line-height: 1.6;
}

.bp-legal__placeholder strong {
  color: var(--bp-text);
}

@media (max-width: 640px) {
  .bp-form-grid {
    grid-template-columns: 1fr;
  }

  .bp-signup-steps__label {
    font-size: 0.68rem;
  }

  .bp-signup-card {
    padding: 24px 18px;
  }

  .bp-signup-actions {
    flex-direction: column-reverse;
  }

  .bp-signup-actions__right {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
  }

  .bp-signup-actions .bp-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-success-check {
    animation: none;
  }
}
