/* Signup multi-step form */
body.signup-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.signup-wrap {
  width: 100%;
  max-width: 560px;
}

.signup-logo {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
  display: block;
  text-decoration: none;
}

.signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
}

/* Step indicator */
.step-track {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}
.step-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--accent); opacity: 0.5; }

.step-heading {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Industry grid */
.industry-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.industry-tab {
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.industry-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0518;
  font-weight: 600;
}

.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.specialty-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.specialty-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.specialty-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 2px var(--accent);
}
.specialty-card input[type="radio"] { display: none; }
.specialty-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: block;
}
.specialty-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Form fields */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.field input,
.field select {
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
}
.field input::placeholder { color: #6b607f; }
.field .hint {
  font-size: 0.75rem;
  color: #6b607f;
}

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.checkbox-row label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-row a { color: var(--accent); text-decoration: none; }

/* Error message */
.error-msg {
  background: #ff444420;
  border: 1px solid #ff444440;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ff6666;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
}
.error-msg.visible { display: block; }

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #0d0518;
  border: none;
  border-radius: 10px;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.spinning::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #0d051840;
  border-top-color: #0d0518;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* Footer note */
.signup-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
}
.signup-footnote a { color: var(--accent); text-decoration: none; }

/* CTA Button (shared styles) */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #0d0518;
  border: none;
  border-radius: 40px;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}
.cta-btn:hover { opacity: 0.88; }
.cta-btn:active { transform: scale(0.97); }
.cta-btn svg { flex-shrink: 0; }

/* Validation */
.field.has-error input { border-color: #ff4444; }
.field .field-error { font-size: 0.75rem; color: #ff6666; margin-top: 2px; }

/* Responsive */
@media (max-width: 600px) {
  .signup-card { padding: 28px 20px; }
  .specialty-grid { grid-template-columns: 1fr; }
}