/* templates/auth/signup.html: 01 Signup on the onboarding frame.
   A narrower 440px card with a centred header; colours from the design-system tokens only. */

.ds-onboarding__card:has(.ds-signup) {
  max-width: 440px;
  gap: 22px;
  padding: 40px 36px;
}

.ds-onboarding__card:has(.ds-signup) .ds-onboarding__header {
  gap: var(--ds-space-8);
  text-align: center;
}

.ds-onboarding__card:has(.ds-signup) .ds-onboarding__title {
  font-size: 28px;
  line-height: 38px;
}

.ds-signup {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ds-signup .ds-field {
  gap: 10px;
}

.ds-signup__roles,
.ds-signup__names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-12);
}

.ds-signup .ds-field__error[hidden] {
  display: none;
}

.ds-signup .ds-signup__helper {
  color: var(--ds-text-tertiary);
  font-size: 13px;
  line-height: 18px;
}

.ds-signup__terms {
  gap: 10px;
  color: var(--ds-text-muted);
  font-size: 13px;
  line-height: 18px;
}

.ds-signup__terms .ds-checkbox__box {
  margin-top: 0;
  border-width: 1.5px;
  border-color: var(--ds-border-subtle);
  border-radius: 6px;
}

.ds-signup__terms .ds-checkbox__label a {
  color: var(--ds-text);
  font-weight: 600;
  text-decoration: none;
}

.ds-signup__terms .ds-checkbox__label a:hover,
.ds-signup__terms .ds-checkbox__label a:focus-visible {
  text-decoration: underline;
}

.ds-signup__submit,
.ds-signup__social-btn {
  width: 100%;
}

/* Buttons: 12px padding around a 20px line (44px) */
.ds-signup .ds-btn {
  min-height: 44px;
}

.ds-signup__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--ds-text-tertiary);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.ds-signup__divider::before,
.ds-signup__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ds-border-subtle);
}

.ds-signup__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-signup__social-btn .ds-icon {
  width: 16px;
  height: 16px;
}

.ds-signup__switch {
  margin: 0;
  color: var(--ds-text-muted);
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.ds-signup__switch a {
  color: var(--ds-text);
  font-weight: 600;
  text-decoration: none;
}

.ds-signup__switch a:hover,
.ds-signup__switch a:focus-visible {
  text-decoration: underline;
}

.ds-signup__recaptcha {
  max-width: 440px;
  margin: 0;
  color: var(--ds-text-tertiary);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.ds-signup__recaptcha a {
  color: inherit;
}

/* reCAPTCHA v3 badge: replaced by the notice above, as Google allows */
.grecaptcha-badge {
  visibility: hidden;
}

@media (max-width: 767px) {
  .ds-onboarding__card:has(.ds-signup) {
    padding: var(--ds-space-32) var(--ds-space-24);
  }

  .ds-onboarding__card:has(.ds-signup) .ds-onboarding__title {
    font-size: 26px;
    line-height: var(--ds-space-32);
  }
}

@media (max-width: 359px) {
  .ds-signup__roles,
  .ds-signup__names {
    grid-template-columns: minmax(0, 1fr);
  }
}
