/* Signup page. Loaded after ../setup/setup.css, which holds the shared tokens, fonts, fields,
   choice rows and buttons; only what the signup page adds is here. */

.lede-first {
  margin-bottom: 8px;
}

.field-first {
  margin-top: 0;
}

.field-error {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--error);
}
.field-error:empty {
  display: none;
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.role-set {
  margin-top: 20px;
}
.role-set legend {
  margin-bottom: 0;
}
.role-set .options {
  margin-top: 10px;
}

/* The trap field: off screen, never focusable, hidden from screen readers. */
.trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin: 20px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--peach);
  background: var(--tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--ink);
}
/* The privacy link sits beside the consent line, outside the stored wording (#consent). */
.consent-link {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.consent-link:hover {
  color: var(--peach-text);
}
.consent-link:focus-visible {
  outline: 2px solid var(--peach-text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The bot check (Cloudflare Turnstile) renders here, above the button. start.js adds .on when a key
   exists, so the space is kept while the widget loads; with no key the box stays empty and takes none. */
.bot-check {
  margin-top: 16px;
}
.bot-check.on {
  min-height: 65px;
}
.bot-check:not(.on):empty {
  display: none;
}

#signup-form .error {
  min-height: 0;
}
#signup-form .error:empty {
  margin: 0;
}

.btn-wide {
  margin-top: 16px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.under {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

.done-text {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

@media (max-width: 560px) {
  .btn-wide {
    width: 100%;
  }
}
