/* ===========================================================================
   Accounts — /login, /create-account, /reset-password, /account

   Two shapes share one vocabulary. The auth pages are a single narrow column
   because there is one decision on them; /account is a stack of cards because
   there are several unrelated ones. Everything below the .auth/.acct split is
   common, so a field looks the same whichever page it is on — which the old
   site did not manage, having grown each form separately.

   Colour note: a problem uses the amber notice treatment, and a confirmation
   is neutral with an ink rule. Green is money only, per counter.css — a green
   "Saved" would start teaching people that green means "fine" rather than
   "this is what we pay".
   ======================================================================== */

/* ---------------------------------------------------------------------------
   The narrow column: login, create account, reset password
   ------------------------------------------------------------------------ */

.auth {
  max-width: 520px;
  margin: 0 auto;
  /* padding-top/bottom only. The shorthand `padding: 54px 0 80px` also sets
     the horizontal padding to 0, which wipes out .wrap's gutter — and these
     pages ARE .wrap, so the card went edge to edge on a phone with the
     heading touching the glass. */
  padding-top: 54px;
  padding-bottom: 80px;
}
.auth-wide { max-width: 680px; }

.auth-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-top: 6px solid var(--red);
  padding: 30px 32px 34px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; line-height: 1.1;
  margin: 0 0 8px;
  color: var(--ink);
}

.auth-lede {
  margin: 0 0 24px;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-55);
}
.auth-lede a { color: var(--red-dark); font-weight: 600; }

/* The line under the card — the other thing you might have come here to do. */
.auth-alt {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-55);
}
.auth-alt a { color: var(--red-dark); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Fields
   ------------------------------------------------------------------------ */

.acct-field { margin-bottom: 18px; }

.acct-label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.acct-input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  min-height: var(--tap);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.acct-input:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.acct-input:disabled {
  background: var(--sunk);
  color: var(--ink-40);
  cursor: not-allowed;
}
/* A select needs the arrow room a text input does not. */
select.acct-input { padding-right: 34px; }

/* A field the server rejected. Marked on the field as well as in the summary
   at the top, so a long form does not make you hunt. */
.acct-input-bad { border-color: var(--red); border-width: 2px; }

.acct-hint {
  margin: 6px 0 0;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-40);
}
.acct-hint a { color: var(--red-dark); font-weight: 600; }

.acct-bad {
  margin: 6px 0 0;
  font-size: 13px; font-weight: 600;
  color: var(--red-dark);
}

/* Password fields carry a reveal button, so they need room for it. */
.acct-pw { position: relative; }
.acct-pw .acct-input { padding-right: 76px; }
.acct-reveal {
  position: absolute; right: 1.5px; top: 1.5px; bottom: 1.5px;
  width: 70px;
  border: 0; background: transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--ink-55);
  cursor: pointer;
}
.acct-reveal:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Checks and radios

   Wrapping labels, so the whole line is the target rather than a 13px box.
   ------------------------------------------------------------------------ */

.acct-check {
  display: flex; align-items: flex-start; gap: 10px;
  min-height: var(--tap);
  padding: 4px 0;
  font-size: 14px; line-height: 1.5;
  color: var(--ink-70);
  cursor: pointer;
}
.acct-check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--red);
  cursor: pointer;
}
.acct-check-set { margin-bottom: 18px; }

/* ---------------------------------------------------------------------------
   Spam trap
   ---------------------------------------------------------------------------
   A field no person can see, so anything in it is a bot. Off-screen rather
   than display:none, because some bots skip anything that is not rendered.

   It lives HERE, in the shared stylesheet, rather than with the first page
   that happened to need it. It started in legal.css for /contact; /consignment
   loads account.css and consignment.css but not legal.css, so the trap
   rendered as a visible "Website" box in the middle of the form — an input
   inviting people to fill it in, which is the exact opposite of its job.
   ------------------------------------------------------------------------ */

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Messages
   ------------------------------------------------------------------------ */

/* A problem. Amber, because it is something to deal with before acting. */
.acct-alert {
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  margin: 0 0 22px;
  color: var(--notice-ink);
  font-size: 14px; line-height: 1.55;
}
.acct-alert p { margin: 0 0 6px; color: inherit; }
.acct-alert p:last-child { margin-bottom: 0; }
.acct-alert ul { margin: 0; padding-left: 20px; }
.acct-alert li { margin-bottom: 4px; }
.acct-alert li:last-child { margin-bottom: 0; }

/* A confirmation. Deliberately quiet and deliberately not green. */
.acct-done {
  background: var(--sunk);
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--ink);
  padding: 14px 16px;
  margin: 0 0 22px;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-70);
}
.acct-done strong { color: var(--ink); }

/* ---------------------------------------------------------------------------
   Actions
   ------------------------------------------------------------------------ */

.acct-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 14px;
  margin-top: 26px;
}
.acct-actions .cta { min-width: 160px; }
.acct-actions-split { justify-content: space-between; }

.acct-aside {
  font-size: 14px;
  color: var(--ink-55);
}
.acct-aside a { color: var(--red-dark); font-weight: 600; }

/* ---------------------------------------------------------------------------
   /account — the stack of cards, and the tabs above it
   ------------------------------------------------------------------------ */

.acct {
  max-width: 820px;
  margin: 0 auto;
  /* See .auth above: the shorthand would remove .wrap's side gutter. */
  padding-top: 40px;
  padding-bottom: 80px;
}

.acct-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.acct-head h1 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800; line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.acct-who {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-40);
}

/* The two places a signed-in seller goes. A link, not a tab widget — these are
   separate pages and the browser's back button should behave. */
/*
 * TWO BUTTONS, NOT TABS (Ken, 2026-11-23: "the Details/Shipments tabs at the
 * top don't look great. Could we switch them out for two large buttons
 * instead?").
 *
 * They were file-folder tabs — a rule under the row, 2px borders with the
 * bottom removed, a negative margin pulling the active one down over the rule
 * so it merged into the card below. Fiddly, and dishonest: /account and
 * /shipments are two PAGES, not two panels of one. Tabs promise that clicking
 * swaps a panel in place, and these navigate.
 *
 * So: a pair, equal halves of the row, big enough to be the obvious thing to
 * press. The active one is filled rather than merged into anything, which
 * means it no longer depends on sitting directly above a card — the three
 * pages that carry this nav can lay out however they like underneath it.
 *
 * grid rather than flex: 1fr 1fr makes them exactly equal whatever the labels
 * say, where flex would size them by their text and "Details" is shorter than
 * "Shipments".
 */
.acct-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 26px;
}
.acct-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 58px: a deliberate press, and comfortably past the 44px a touch target
     wants — this is the control somebody uses one-handed on a phone. */
  min-height: 58px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink-55);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .01em;
  text-align: center;
  transition: background-color .15s, color .15s;
}
.acct-nav a:hover { background: var(--sunk); color: var(--ink); }
.acct-nav a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* The page you are on. Filled, because with two equal buttons side by side a
   border change alone is not enough to say which is which at a glance — and
   colour is not doing it alone either: aria-current is on the markup, so a
   screen reader is told regardless. */
.acct-nav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
  cursor: default;
}
.acct-nav a[aria-current="page"]:hover {
  background: var(--ink);
  color: var(--card);
}

.acct-card {
  background: var(--card);
  border: 2px solid var(--ink);
  margin-bottom: 26px;
}
.acct-card-head {
  border-bottom: 1px solid var(--line-2);
  background: var(--sunk);
  padding: 15px 24px;
}
.acct-card-head h2 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.acct-card-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-40);
}
.acct-card-body { padding: 24px 24px 26px; }

/* A rule between two groups of fields inside one card. */
.acct-sep {
  border: 0;
  border-top: 1px solid var(--line-3);
  margin: 26px 0 22px;
}
.acct-sub {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: var(--ink-55);
}

/* Two fields side by side, stacking on a phone. First/last name, mostly. */
.acct-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

@media (max-width: 640px) {
  .auth { padding-top: 30px; padding-bottom: 60px; }
  .auth-card { padding: 24px 20px 28px; }
  .auth-title { font-size: 25px; }
  .acct { padding-top: 26px; padding-bottom: 60px; }
  .acct-head h1 { font-size: 26px; }
  .acct-card-body { padding: 20px 18px 22px; }
  .acct-card-head { padding: 13px 18px; }
  .acct-pair { grid-template-columns: 1fr; }
  .acct-actions { flex-direction: column-reverse; align-items: stretch; }
  .acct-actions .cta, .acct-actions .cta-ghost { width: 100%; }
  .acct-aside { text-align: center; }
  /* The tabs scroll rather than wrap — a wrapped tab strip with a bottom
     border on it looks like a mistake. */
  .acct-nav { overflow-x: auto; }
  .acct-nav a { white-space: nowrap; }
}
