/* Signup, email confirmation and the pending page (templates/signup/*.html). They use the sign-in page's card
   (accounts/login.html, app.css .auth-card); this file only adds what those pages need beyond it. */

.auth-card.wide { width: min(460px, 100%); }
.auth-card .lead { margin: -4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.auth-card .note { margin: 0; color: var(--subtle); font-size: 13px; line-height: 1.5; }
.auth-card .body { margin: 0; font-size: 15px; line-height: 1.5; }
.auth-card .body strong { overflow-wrap: anywhere; }
.auth-card .alt { margin: 0; font-size: 13px; color: var(--muted); }
.auth-card .alt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.auth-card .dealer { margin: -6px 0 0; font-weight: 600; color: var(--text-2); overflow-wrap: anywhere; }
.auth-card [aria-invalid="true"] { border-color: #FDA29B; }

/* The honeypot box: off-screen for people, still in the page for bots. Never display: none (bots skip those). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Terms: a real checkbox with a 44 px tap row. */
.auth-card .check { align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 500; color: var(--text-2); line-height: 1.4; cursor: pointer; }
.auth-card .check input { flex-shrink: 0; width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); }
.auth-card .check a { font-weight: 600; }
.auth-card .check.invalid { border-color: #FECDCA; background: var(--danger-bg); }

/* Password box with a Show button (added by signup.js; without JavaScript the box works as it is). */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); height: 36px; min-width: 64px; padding: 0 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--accent); font: 600 13px var(--font); cursor: pointer; }
.pw-toggle:hover { background: var(--accent-bg); }
.pw-toggle:focus-visible { outline: 3px solid #C7D7FE; outline-offset: 1px; }

/* A short list of what happens next (the "check your inbox" page). */
.next-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.next-steps .n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-bg); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--mono); }

/* The pending page's "Wrong email?" fold-out. */
.fold { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px;
  font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.fold[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.fold > .stack { padding: 0 14px 14px; }
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }

/* The platform contact, as on the status page. */
.contact-box { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); }
.contact-box a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .auth-wrap { align-items: flex-start; padding: 16px; }
  .auth-card .check input { min-height: 0; }
}
