/* Commercial signup only. The external OAuth account form never mounts this flow. */
.auth-screen .signup-flow {
  --text: #15211b;
  --muted: #5b6961;
  --line: #cad7ce;
  --surface-soft: #edf3ed;
  --accent: #09613f;
  display: grid;
  gap: 22px;
  min-width: 0;
  color: var(--text);
}
.auth-screen .signup-flow [hidden],
.auth-screen .signup-flow[hidden],
.auth-screen .signup-flow + [hidden] { display: none !important; }
.signup-flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 0 0 18px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.signup-flow-steps li {
  display: grid;
  justify-items: center;
  gap: 7px;
  flex: 1 1 0;
  min-width: 0;
  color: #58635c;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.signup-flow-step-marker {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #b8c7bd;
  border-radius: 50%;
  background: #f8faf6;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.signup-flow-steps li[aria-current="step"] { color: #103c2b; font-weight: 750; }
.signup-flow-steps li[aria-current="step"] .signup-flow-step-marker { border-color: #146747; background: #146747; color: #fff; }
.signup-flow-steps li[data-complete="true"] .signup-flow-step-marker { border-color: #a9cab6; background: #e0eee3; color: #0d6040; }
.signup-flow-account { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 5px 10px; align-items: start; }
.signup-flow-check { color: #0b6843; font-size: 21px; line-height: 1.2; }
.signup-flow-account strong { display: block; font-size: 13px; line-height: 1.5; }
.signup-flow-email, .signup-flow-plan { display: block; margin-top: 3px; color: #526159; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.signup-flow-edit { grid-column: 2; justify-self: start; }
.signup-flow-stage { min-width: 0; }
.signup-flow-title { margin: 0 0 10px; color: #14251b; font-size: clamp(21px,4vw,26px); font-weight: 680; line-height: 1.25; letter-spacing: -.035em; }
.signup-flow-title:focus, .signup-flow-message:focus { outline: none; }
.signup-flow-description { margin: 0 0 22px; color: #526158; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.signup-flow-code-form { display: grid; gap: 12px; }
.signup-flow-code-label { display: grid; gap: 9px; color: #263e2e; font-size: 12px; font-weight: 700; }
body.suite-app .auth-screen input.signup-flow-code {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid #9fb3a6;
  border-radius: 6px;
  background: #fff;
  color: #13271b;
  font-size: 26px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .28em;
  text-align: center;
}
body.suite-app .auth-screen input.signup-flow-code:focus { outline: 3px solid #bbd6c5; outline-offset: 2px; border-color: #176644; }
body.suite-app .auth-screen input.signup-flow-code[aria-invalid="true"] { border-color: #a13727; }
.signup-flow-hint, .signup-flow-expiry { color: #59665e; font-size: 12px; line-height: 1.5; }
.signup-flow-expiry { font-variant-numeric: tabular-nums; }
body.suite-app .auth-screen .signup-flow button.signup-flow-primary {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #153624;
  border-radius: 6px;
  background: #153624;
  color: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
}
body.suite-app .auth-screen .signup-flow button.signup-flow-primary:hover:not(:disabled) { background: #205338; border-color: #205338; color: #fff; }
body.suite-app .auth-screen .signup-flow button.signup-flow-link {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #146142;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-screen .signup-flow button:focus-visible { outline: 3px solid #8db79d; outline-offset: 3px; }
.auth-screen .signup-flow button:disabled, .auth-screen .signup-flow input:disabled { cursor: wait; opacity: .6; }
.auth-screen .signup-flow button.signup-flow-link:disabled { text-decoration: none; cursor: default; }
.signup-flow-signin-help { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; margin: 0; padding-top: 6px; border-top: 1px solid var(--line); color: #59665e; font-size: 12px; line-height: 1.6; }
.signup-flow-message { margin: 18px 0 0; padding: 12px; border: 1px solid #b0cbb8; border-radius: 6px; background: #e6f0e7; color: #21442e; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.signup-flow-message[data-error="true"] { border-color: #deb6a9; background: #fbede5; color: #792b1c; }
.signup-flow-payment, .signup-flow-checkout-frame { display: grid; gap: 18px; min-width: 0; width: 100%; overflow: visible; }
.signup-flow-checkout-frame:empty { display: none; }
.signup-plan-change { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.auth-checkout-summary dd small { display: block; margin-top: 4px; }
.signup-plan-change[hidden], .signup-plan-change [hidden] { display: none !important; }
.signup-plan-change-form { display: grid; gap: 14px; padding: 16px; border: 1px solid #bdccc0; border-radius: 8px; background: #f4f7f3; color: #193324; }
.signup-plan-change-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
body.suite-app .auth-screen .signup-plan-change-form select {
  min-height: 48px;
  border: 1px solid #bdccc0;
  border-radius: 6px;
  background: #fff;
  color: #193324;
  color-scheme: light;
  font-size: 13px;
}
body.suite-app .auth-screen .signup-plan-change-form select option { background: #fff; color: #193324; }
body.suite-app .auth-screen .signup-plan-change-form select:hover:not(:disabled) { border-color: #63856e; }
body.suite-app .auth-screen .signup-plan-change-form select:focus {
  border-color: #146142;
  background: #fff;
  color: #193324;
  outline: 2px solid #146142;
  outline-offset: 2px;
  box-shadow: none;
}
body.suite-app .auth-screen .signup-plan-change-form select:disabled {
  background: #e8eee8;
  color: #46574c;
  opacity: 1;
  cursor: not-allowed;
}
.signup-plan-change-hint, .signup-plan-change-price { margin: 0; font-size: 13px; line-height: 1.6; }
.signup-plan-change-price { font-weight: 700; }
.signup-plan-change-error { padding: 12px; background: #fbede5; color: #792b1c; border-radius: 6px; font-size: 13px; }
body.suite-app .auth-screen .signup-plan-change button { min-height: 44px; white-space: normal; }
body.suite-app .auth-screen .signup-plan-change button.signup-flow-link { padding: 8px 0; border: 0; background: transparent; color: #146142; text-align: left; text-decoration: underline; box-shadow: none; }
body.suite-app .auth-screen .signup-plan-change button.signup-flow-primary { padding: 12px; border: 1px solid #153624; border-radius: 6px; background: #153624; color: #fff; }
.signup-plan-change button:disabled { opacity: .6; cursor: wait; }
.signup-flow .inline-checkout-summary { border-radius: 7px; }
/* Paddle's padded inline form requires 312px. Use the available screen width at
   narrow sizes rather than clipping the payment form or its legal footer. */
@media (max-width: 380px) {
  html:has(.signup-flow[data-payment-started="true"][data-stage="checkout"]),
  body.suite-app:has(.signup-flow[data-payment-started="true"][data-stage="checkout"]) { scrollbar-width: none; }
  body.suite-app:has(.signup-flow[data-payment-started="true"][data-stage="checkout"])::-webkit-scrollbar { display: none; }
  body[data-auth-mode="signup"] .auth-screen:has(.signup-flow[data-payment-started="true"][data-stage="checkout"]) { overflow: visible; }
  .auth-screen:has(.signup-flow[data-payment-started="true"][data-stage="checkout"]) .auth-shell { overflow: visible; }
  .auth-screen:has(.signup-flow[data-payment-started="true"][data-stage="checkout"]) .auth-form-side { padding-inline: 0; }
  .auth-screen:has(.signup-flow[data-payment-started="true"][data-stage="checkout"]) .auth-form-inner { width: 100%; max-width: none; }
  .signup-flow[data-payment-started="true"][data-stage="checkout"] > .signup-flow-steps,
  .signup-flow[data-payment-started="true"][data-stage="checkout"] > .signup-flow-account,
  .signup-flow[data-payment-started="true"][data-stage="checkout"] .signup-flow-title,
  .signup-flow[data-payment-started="true"][data-stage="checkout"] .signup-flow-description { margin-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .signup-flow *, .signup-flow *::before, .signup-flow *::after { scroll-behavior: auto; }
}
