/* ── Full-screen background ───────────────────────── */
.signup-bg {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f3f4f6;
  overflow: hidden;
}

.signup-overlay {
  display: none;
}

/* Decorative circle */
.signup-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  z-index: 0;
  pointer-events: none;
}

/* ── Card wrapper ─────────────────────────────────── */
.signup-card-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  margin: auto;
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Auth card ────────────────────────────────────── */
.signup-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.1);
  padding: 2.5rem 1.75rem;
}
@media (min-width: 640px) {
  .signup-card { padding: 3rem 2.5rem; }
}

/* ── Form fields ──────────────────────────────────── */
.field-group {
  margin-bottom: 1.125rem;
}
.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}
.field-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}
.field-input:focus {
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.field-input.error {
  border-color: #ef4444;
  background: #fff5f5;
}
.field-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.3rem;
}

/* ── Phone field ──────────────────────────────────── */
.phone-wrap {
  display: flex;
  gap: 0.5rem;
}
.phone-code-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 48px;
  padding: 0 0.875rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.phone-code-btn:hover, .phone-code-btn:focus {
  border-color: #16a34a;
  background: #ffffff;
  outline: none;
}
.phone-code-btn svg {
  width: 12px;
  height: 12px;
  color: #9ca3af;
  transition: transform 0.15s;
}
.phone-code-btn.open svg { transform: rotate(180deg); }
.phone-input { flex: 1; }

/* Country dropdown */
.country-code-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
}
.dropdown-search {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #f3f4f6;
}
.dropdown-search input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.875rem;
  background: transparent;
  color: #111827;
}
.dropdown-list {
  max-height: 200px;
  overflow-y: auto;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.1s;
}
.dropdown-item:hover, .dropdown-item.active {
  background: #f0fdf4;
  color: #16a34a;
}

/* ── Password field ───────────────────────────────── */
.password-wrap {
  position: relative;
}
.password-wrap .field-input {
  padding-right: 3rem;
}
.pw-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  display: flex;
  align-items: center;
}
.pw-toggle:hover { color: #374151; }

/* Strength bar */
.strength-bar-wrap {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
}
.strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  background: #e5e7eb;
  transition: background 0.3s;
}
.strength-seg.weak   { background: #ef4444; }
.strength-seg.medium { background: #f59e0b; }
.strength-seg.strong { background: #16a34a; }

.strength-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.rule-chip {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}
.rule-chip.met {
  color: #16a34a;
  background: #f0fdf4;
}
.rule-chip svg {
  width: 10px;
  height: 10px;
}

/* ── Account type cards ───────────────────────────── */
.account-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.375rem;
}
.account-card {
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
  text-align: center;
}
.account-card:hover {
  border-color: #86efac;
  background: #f9fafb;
}
.account-card.selected {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.account-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.375rem;
}
.account-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}
.account-card.selected .account-card-title { color: #16a34a; }
.account-card-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Terms checkbox ───────────────────────────────── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 1.25rem 0;
}
.terms-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #16a34a;
  cursor: pointer;
}
.terms-label {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}
.terms-label a {
  color: #16a34a;
  text-decoration: none;
}
.terms-label a:hover { text-decoration: underline; }

/* ── Submit button ────────────────────────────────── */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22,163,74,0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.15s;
}
.submit-btn:hover:not(:disabled) {
  background: #15803d;
  box-shadow: 0 6px 20px rgba(22,163,74,0.45);
}
.submit-btn:active:not(:disabled) { transform: scale(0.98); }
.submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── OR divider ───────────────────────────────────── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Social buttons ───────────────────────────────── */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 48px;
  border-radius: 9999px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.social-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Floating help button ─────────────────────────── */
.help-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(22,163,74,0.4);
  transition: background 0.15s, transform 0.15s;
}
.help-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

/* ── Section divider ──────────────────────────────── */
.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f3f4f6;
}
