/* Signup-only layout: method choice above password, compact phone hero, field errors.
   Does not edit shared pixel-suite / ga-shared sheets. */

body[data-cb-page="signup"] .su-method-block {
  margin: 0 0 18px;
}

body[data-cb-page="signup"] .su-method-title {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

body[data-cb-page="signup"] .su-providers {
  display: none;
}

body[data-cb-page="signup"] .su-providers.is-ready {
  display: block;
}

body[data-cb-page="signup"] .su-providers .ga-oauth-grid {
  display: grid;
  gap: 10px;
}

body[data-cb-page="signup"] .su-providers .ga-oauth-grid.is-single {
  grid-template-columns: 1fr;
}

body[data-cb-page="signup"] .su-providers .pxs-btn[hidden],
body[data-cb-page="signup"] .su-providers .pxs-btn.is-hidden {
  display: none !important;
}

body[data-cb-page="signup"] .su-provider-retry {
  display: none;
  margin-top: 8px;
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 16px;
  line-height: 1.35;
  color: var(--mute);
}

body[data-cb-page="signup"] .su-provider-retry.is-visible {
  display: block;
}

body[data-cb-page="signup"] .su-provider-retry button {
  font: inherit;
  color: var(--cyan);
  background: transparent;
  border: 0;
  padding: 8px 4px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
}

body[data-cb-page="signup"] .su-password-alt {
  margin: 14px 0 0;
  text-align: center;
}

body[data-cb-page="signup"] .su-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: var(--cyan);
  background: transparent;
  border: 2px dashed var(--line-2);
  cursor: pointer;
}

body[data-cb-page="signup"] .su-password-toggle:focus-visible,
body[data-cb-page="signup"] .su-page .ga-input:focus-visible,
body[data-cb-page="signup"] .su-page .peek:focus-visible,
body[data-cb-page="signup"] .su-page .ga-cta:focus-visible,
body[data-cb-page="signup"] .su-page .ga-oauth-grid .pxs-btn:focus-visible,
body[data-cb-page="signup"] .su-page .login-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

body[data-cb-page="signup"] .su-password-panel[hidden] {
  display: none !important;
}

body[data-cb-page="signup"] .su-password-panel.is-open,
body[data-cb-page="signup"] .su-password-panel:not([hidden]) {
  display: block;
}

body[data-cb-page="signup"] .su-field-error {
  min-height: 18px;
  margin-top: 6px;
  font-family: "VT323", monospace;
  font-size: 16px;
  line-height: 1.3;
  color: var(--red);
}

body[data-cb-page="signup"] .su-oauth-return {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 2px solid var(--red);
  background: rgba(255, 107, 179, 0.09);
  font-family: "VT323", monospace;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}

body[data-cb-page="signup"] .su-oauth-return[hidden] {
  display: none !important;
}

body[data-cb-page="signup"] .su-terms-error {
  margin: -16px 0 14px;
}

body[data-cb-page="signup"] .su-measurement {
  margin: 0 0 14px;
}

body[data-cb-page="signup"] .su-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-cb-page="signup"] .ga-input[aria-invalid="true"] {
  border-color: var(--red);
}

body[data-cb-page="signup"] .su-advisory {
  color: var(--mute);
}

body[data-cb-page="signup"] .su-email-help {
  margin-top: 6px;
  font-family: "VT323", monospace;
  font-size: 16px;
  line-height: 1.35;
  color: var(--mute);
}

body[data-cb-page="signup"] .su-divider-or {
  margin: 16px 0 4px;
}

/* Compact phone hero: keep method choice reachable without scrolling past marketing */
@media (max-width: 640px) {
  body[data-cb-page="signup"] .su-art {
    padding: 22px 18px 16px;
    gap: 12px;
  }
  body[data-cb-page="signup"] .su-art .su-headline {
    font-size: 28px;
    margin-bottom: 8px;
  }
  body[data-cb-page="signup"] .su-art .lede {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 8px;
  }
  body[data-cb-page="signup"] .su-art .ga-features {
    display: none;
  }
  body[data-cb-page="signup"] .su-art .ga-key-art {
    max-width: 280px;
  }
  body[data-cb-page="signup"] .su-art .su-portal {
    height: 140px;
  }
  body[data-cb-page="signup"] .su-art .su-planet {
    width: 120px;
    height: 120px;
    right: -40px;
    bottom: -40px;
    opacity: 0.55;
  }
}

@media (max-width: 480px) {
  body[data-cb-page="signup"] .su-art .su-headline {
    font-size: 24px;
  }
  body[data-cb-page="signup"] .su-art .su-portal {
    height: 110px;
  }
}

/* Once the page stacks, put the method choice ahead of decorative artwork. */
@media (max-width: 1100px) {
  body[data-cb-page="signup"] .su-page { grid-template-columns:minmax(0,1fr); }
  body[data-cb-page="signup"] .su-page .su-art { min-height:0; padding:16px 20px; gap:0; }
  body[data-cb-page="signup"] .su-page .su-art .ga-key-art,
  body[data-cb-page="signup"] .su-page .su-art .ga-features,
  body[data-cb-page="signup"] .su-page .su-art .ga-tag,
  body[data-cb-page="signup"] .su-page .su-art .lede { display:none; }
  body[data-cb-page="signup"] .su-page .su-headline { font-size:26px; line-height:1.25; margin:0; }
  body[data-cb-page="signup"] .su-page .su-headline br { display:none; }
  body[data-cb-page="signup"] .su-page .su-headline .su-word { margin-right:.4em; }
  body[data-cb-page="signup"] .su-page .ga-form-wrap { padding:20px; min-width:0; }
  body[data-cb-page="signup"] .su-page .ga-step-rail { display:flex; margin-bottom:20px; }
  body[data-cb-page="signup"] .su-page .ga-step-rail .step { flex:1; min-width:0; padding:12px 4px; font-size:clamp(9px,2.8vw,12px); white-space:nowrap; }
  body[data-cb-page="signup"] .su-page .ga-oauth-grid .pxs-btn { min-width:0; font-size:14px; padding-inline:8px; white-space:normal; text-align:center; }
  body[data-cb-page="signup"] .su-page .su-nowdoing { display:none; }
  body[data-cb-page="signup"] .su-page .ga-h2 { font-size:21px; margin-bottom:10px; }
  body[data-cb-page="signup"] .su-page .ga-sub { margin-bottom:16px; }
  body[data-cb-page="signup"] #acceptTerms { width:20px; height:20px; flex:none; }
}

@media (max-width: 380px) {
  body[data-cb-page="signup"] .pxs-brand .slash,
  body[data-cb-page="signup"] .pxs-brand .sec { display:none; }
}
