/* Signup pages (Phase 3) — scoped under .signup-creator and .signup-brand.
 * Core + semantic design tokens live in tokens.css (loaded via base.html). */

.signup-creator,
.signup-brand {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  min-height: 100svh;
}

.signup-creator .sg-container,
.signup-brand .sg-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.signup-creator .sg-eyebrow,
.signup-brand .sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--copper-ink);
  font-size: var(--type-xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.signup-creator .sg-eyebrow::before,
.signup-brand .sg-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

.signup-creator .sg-heading,
.signup-brand .sg-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.signup-creator .sg-subhead,
.signup-brand .sg-subhead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 36px;
}

/* ---------- Progress indicator ---------- */
.signup-creator .sg-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.signup-creator .sg-step {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.signup-creator .sg-step--active {
  background: var(--copper-tint);
  border-color: var(--copper-border);
  color: var(--copper-ink);
}

/* ---------- SSO button + divider ---------- */
.signup-creator .sg-sso,
.signup-brand .sg-sso {
  margin-bottom: 16px;
}

.signup-creator .sg-sso-btn,
.signup-brand .sg-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .signup-creator .sg-sso-btn:hover,
  .signup-brand .sg-sso-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-subtle);
  }
}

.signup-creator .sg-sso-btn__icon,
.signup-brand .sg-sso-btn__icon {
  width: 18px;
  height: 18px;
}

.signup-creator .sg-divider,
.signup-brand .sg-divider {
  position: relative;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 20px 0 24px;
}

.signup-creator .sg-divider::before,
.signup-creator .sg-divider::after,
.signup-brand .sg-divider::before,
.signup-brand .sg-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  border-top: 1px solid var(--border-subtle);
}

.signup-creator .sg-divider::before,
.signup-brand .sg-divider::before { left: 0; }

.signup-creator .sg-divider::after,
.signup-brand .sg-divider::after { right: 0; }

/* ---------- Form fields ---------- */
.signup-creator .sg-field,
.signup-brand .sg-field {
  margin-bottom: 20px;
}

.signup-creator .sg-label,
.signup-brand .sg-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.signup-creator .sg-field input[type="text"],
.signup-creator .sg-field input[type="email"],
.signup-creator .sg-field input[type="password"],
.signup-creator .sg-field input[type="url"],
.signup-creator .sg-field input[type="file"],
.signup-creator .sg-field select,
.signup-creator .sg-field textarea,
.signup-brand .sg-field input[type="text"],
.signup-brand .sg-field input[type="email"],
.signup-brand .sg-field input[type="password"],
.signup-brand .sg-field input[type="url"],
.signup-brand .sg-field input[type="file"],
.signup-brand .sg-field select,
.signup-brand .sg-field textarea {
  width: 100%;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--motion-fast) var(--ease-lux);
  box-sizing: border-box;
}

.signup-creator .sg-field input::placeholder,
.signup-creator .sg-field textarea::placeholder,
.signup-brand .sg-field input::placeholder,
.signup-brand .sg-field textarea::placeholder {
  color: var(--text-tertiary);
  font-style: italic;
}

/* Textareas keep a full hairline box (underline-only reads awkwardly multi-line). */
.signup-creator .sg-field textarea,
.signup-brand .sg-field textarea {
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
}

.signup-creator .sg-field input:focus,
.signup-creator .sg-field select:focus,
.signup-creator .sg-field textarea:focus,
.signup-brand .sg-field input:focus,
.signup-brand .sg-field select:focus,
.signup-brand .sg-field textarea:focus {
  outline: none;
  border-color: var(--copper);
}

.signup-creator .sg-field select option,
.signup-brand .sg-field select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.signup-creator .sg-field textarea,
.signup-brand .sg-field textarea {
  resize: vertical;
  min-height: 72px;
}

.signup-creator .sg-help,
.signup-brand .sg-help {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ---------- Category pills (Step 2) ---------- */
.signup-creator .sg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.signup-creator .sg-pill {
  margin: 0;
}

.signup-creator .sg-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-creator .sg-pill label {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.signup-creator .sg-pill input[type="checkbox"]:checked + label {
  background: var(--copper-tint);
  border-color: var(--copper-border);
  color: var(--copper-ink);
}

.signup-creator .sg-pill input[type="checkbox"]:focus + label {
  border-color: var(--copper-border);
}

/* ---------- Submit button ---------- */
.signup-creator .sg-submit,
.signup-brand .sg-submit {
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: var(--copper);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--type-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-btn);
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-lux),
              box-shadow var(--motion-slow) var(--ease-lux);
  margin-top: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .signup-creator .sg-submit:hover,
  .signup-brand .sg-submit:hover {
    background: var(--copper-hover);
    box-shadow: var(--shadow-hover);
  }
}

/* ---------- Error + meta ---------- */
.signup-creator .sg-errors,
.signup-brand .sg-errors {
  background: var(--danger-tint);
  border: 1px solid rgb(from var(--danger) r g b / 0.4);
  color: var(--danger-text);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.signup-creator .sg-field-error,
.signup-brand .sg-field-error {
  color: var(--danger-text);
  font-size: 0.8rem;
  margin-top: 6px;
}

.signup-creator .sg-foot,
.signup-brand .sg-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.signup-creator .sg-foot a,
.signup-brand .sg-foot a {
  color: var(--copper-ink);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .signup-creator .sg-foot a:hover,
  .signup-brand .sg-foot a:hover {
    color: var(--copper-hover);
    text-decoration: underline;
  }
}

/* ---------- Pending confirmation ---------- */
.signup-creator .sg-pending,
.signup-brand .sg-pending {
  text-align: center;
}

.signup-creator .sg-pending-icon,
.signup-brand .sg-pending-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--copper-tint);
  color: var(--copper-ink);
  margin: 0 auto 24px;
  font-size: 28px;
}
