/* 24/05/2026 - Signup flow redesign. 2 steps + WhatsApp verification.
   Layout split-screen: benefit card a esquerda, formulario a direita. */

.signup-page {
  background: #0a0f1f;
  color: #e5e7eb;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.signup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.signup-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.signup-brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(59,130,246,0.4)); }
.signup-brand h1 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: 0.3px; background: linear-gradient(90deg, #fff 0%, #93c5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signup-brand span { font-size: 11px; color: #6b7280; }
.signup-login-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.signup-login-link:hover { background: rgba(255,255,255,0.04); color: #fff; }

.signup-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
}

/* ── Left side: benefit card ──────────────────────────────────────── */
.signup-left {
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(34,197,94,0.12) 0%, transparent 50%),
    #0a0f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.signup-benefit-card {
  max-width: 460px;
}
.signup-benefit-tag {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
  border: 1px solid rgba(34,197,94,0.25);
}
.signup-benefit-card h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
  background: linear-gradient(90deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.signup-benefit-card p {
  font-size: 15px;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0 0 24px;
}
.signup-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #e5e7eb;
}
.signup-benefit-list li span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.signup-social-proof {
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
}
.signup-stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; margin-bottom: 6px; }
.signup-social-proof p { font-size: 13px; font-style: italic; color: #9ca3af; line-height: 1.5; margin: 0; }

/* ── Right side: form ──────────────────────────────────────────── */
.signup-right {
  background: #0e1525;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

/* Steps progress */
.signup-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.signup-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.signup-step.active { opacity: 1; }
.signup-step.done { opacity: 0.85; }
.signup-step .step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s ease, color 0.2s ease;
}
.signup-step.active .step-circle {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.signup-step.done .step-circle {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
}
.signup-step.done .step-circle::after { content: '✓'; }
.signup-step.done .step-circle { font-size: 0; }
.signup-step.done .step-circle::after { font-size: 14px; font-weight: 800; }
.signup-step .step-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
}
.signup-step.active .step-label { color: #e5e7eb; }
.signup-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  max-width: 50px;
}

/* Card form */
.signup-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.signup-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.signup-subtitle {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0 0 20px;
}

.signup-form { display: flex; flex-direction: column; gap: 14px; }

.signup-field { display: flex; flex-direction: column; gap: 6px; }
.signup-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup-field label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.3px;
}
.signup-field-optional {
  font-weight: 400;
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 6px;
}
.signup-field input {
  padding: 12px 14px;
  background: #0a0f1f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.signup-field input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #0d1428;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.signup-field input::placeholder { color: #4b5563; }
.signup-field-hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.signup-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
}
.signup-check input[type="checkbox"] {
  margin-top: 1px;
  width: 16px; height: 16px;
  accent-color: #3b82f6;
  flex-shrink: 0;
}
.signup-check a { color: #60a5fa; text-decoration: none; }
.signup-check a:hover { text-decoration: underline; }

.signup-cta-primary {
  margin-top: 6px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(59,130,246,0.3);
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.signup-cta-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.4);
  filter: brightness(1.05);
}
.signup-cta-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.signup-secondary {
  background: transparent;
  border: 0;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
  margin-top: 4px;
}
.signup-secondary:hover { color: #9ca3af; }

/* Toggle olhinho dos campos de senha (signupPassword + signupConfirmPassword) */
.signup-pwd-wrap {
  position: relative;
}
.signup-pwd-wrap input {
  padding-right: 40px;
  width: 100%;
}
.signup-pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.signup-pwd-toggle:hover { color: #e5e7eb; background: rgba(255,255,255,0.05); }
.signup-pwd-toggle svg { width: 18px; height: 18px; }

/* Toggle de canal (WhatsApp / SMS) no step 2 */
.signup-channel-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 4px;
  margin: 12px 0;
}
.signup-channel-btn {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.signup-channel-btn:hover { background: rgba(255,255,255,0.04); color: #e5e7eb; }
.signup-channel-btn.active[data-channel="whatsapp"] {
  background: #25D366;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,211,102,0.3);
}
.signup-channel-btn.active[data-channel="sms"] {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.signup-channel-hint {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin: 6px 0 12px;
}

/* OTP inputs - 6 colunas com inputs compactos pra caber em 460px max-width */
.signup-otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 6px;
  width: 100%;
}
.signup-otp-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  color: #fff;
  font-family: ui-monospace, monospace;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
  box-sizing: border-box;
}
.signup-otp-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
  transform: scale(1.04);
}
.signup-otp-input:not(:placeholder-shown):valid { border-color: rgba(34,197,94,0.4); }

.signup-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.signup-resend-btn {
  background: transparent;
  border: 0;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 0;
}
.signup-resend-btn:disabled { color: #4b5563; cursor: not-allowed; text-decoration: none; }
.signup-resend-text { color: #6b7280; }

/* Success */
.signup-card-success { text-align: center; }
.signup-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(34,197,94,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(34,197,94,0.4);
  color: #22c55e;
  animation: signup-success-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.signup-success-icon svg { width: 36px; height: 36px; }
@keyframes signup-success-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.signup-success-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.signup-success-item { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.signup-success-item strong { color: #9ca3af; font-weight: 500; }
.signup-success-item span { color: #e5e7eb; font-weight: 600; }

.auth-flash { padding: 10px 12px; border-radius: 8px; font-size: 13px; display: none; }
.auth-flash-error { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); display: block; }
.auth-flash-success { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.25); display: block; }
.auth-flash-info { background: rgba(59,130,246,0.1); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); display: block; }

/* Mobile */
@media (max-width: 900px) {
  .signup-main { grid-template-columns: 1fr; }
  .signup-left { padding: 32px 24px; }
  .signup-right { padding: 32px 20px; }
  .signup-benefit-card { max-width: 100%; }
  .signup-benefit-card h2 { font-size: 24px; }
  .signup-step .step-label { display: none; }
  .signup-otp-input { height: 48px; font-size: 18px; }
  .signup-topbar { padding: 12px 20px; }
}
