/* W-079 sign-in: the studio's own door. A black band with the lamp names the room; one paper
   sheet, lit, carries the studio's mark and the one form; nothing else asks for attention.
   Every element auth.js reads keeps its id, class, data- hook and nesting: this sheet only
   dresses them, and overrides the July auth rules base.css still carries (the card's radius
   and corner brackets, the mono labels, the dark-ground colours). The five tracks are the
   site's own split: the words on the left, the sheet from the notes column. */

/* ---------- the room ---------- */
html.w079 .auth-main { min-height:0; }
html.w079 .auth-shell { min-height:calc(100svh - 69px - 154px); padding:72px 0 96px; border-bottom:1px solid var(--hair-black); }
html.w079 .auth-panel {
  display:grid; grid-template-columns:minmax(0,2.25fr) minmax(0,1.25fr) minmax(0,2.5fr) minmax(0,2.7fr) minmax(0,1.95fr);
  grid-template-rows:auto auto 1fr; column-gap:28px; align-items:start;
}
html.w079 .auth-heading { grid-column:1 / 4; grid-row:1; padding-top:28px; }
html.w079 .auth-heading .w079-title { max-width:15ch; }
html.w079 .auth-card { grid-column:4 / -1; grid-row:1 / span 3; }
html.w079 .auth-no-account { grid-column:1 / 4; grid-row:2; }
html.w079 .auth-panel > noscript { grid-column:1 / 4; grid-row:3; }

/* the words beside the door */
html.w079 .auth-no-account { max-width:52ch; margin:40px 0 0; padding-top:20px; border-top:1px solid var(--hair-black); color:var(--on-black-2); font-size:15px; line-height:1.6; }
html.w079 .auth-noscript { max-width:52ch; margin:20px 0 0; padding:12px 14px; border:1px solid var(--hair-black-2); border-left:2px solid var(--err-dark); color:var(--err-dark); font-size:14px; line-height:1.5; }

/* ---------- the sheet ---------- */
html.w079 .auth-card { margin:0; padding:36px 40px 40px; border:0; border-radius:0; }
html.w079 .auth-card::after { content:none; }
html.w079 .auth-mark { display:block; width:22px; height:22px; margin:0 0 30px; color:var(--ink); }
html.w079 .auth-card h2 { margin:0; color:var(--ink); font-size:29px; font-weight:400; line-height:1.12; letter-spacing:-.012em; text-wrap:balance; }
html.w079 .auth-copy { margin:10px 0 0; color:var(--ink-2); font-size:15.5px; line-height:1.5; overflow-wrap:anywhere; }
html.w079 .auth-step-label { display:block; margin:0 0 10px; color:var(--amber); font-size:12px; font-weight:600; letter-spacing:.15em; line-height:1.4; text-transform:uppercase; }

/* the waiting line */
html.w079 .auth-pending { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:14px; padding:4px 0; }
html.w079 .auth-pending strong { color:var(--ink); font-size:16px; font-weight:600; }
html.w079 .auth-pending p { margin:4px 0 0; color:var(--ink-2); font-size:15px; line-height:1.5; }
html.w079 .auth-status-mark { width:10px; height:10px; margin-top:6px; border:0; border-radius:0; background:var(--amber-fill); box-shadow:none; }

/* the form: a real field on paper, dark ink on the light box */
html.w079 .auth-form { display:grid; gap:18px; margin-top:24px; }
html.w079 .auth-field label { display:block; margin:0 0 6px; color:var(--ink); font-family:var(--font-body); font-size:13.5px; font-weight:500; letter-spacing:0; line-height:1.4; text-transform:none; }
html.w079 .auth-field input { width:100%; min-height:50px; margin:0; padding:11px 14px; border:1px solid var(--ink); border-radius:2px; background:var(--field-paper); color:var(--ink); caret-color:var(--amber); color-scheme:light; font-family:var(--font-body); font-size:16px; letter-spacing:0; }
html.w079 .auth-field input::placeholder { color:#6d675c; opacity:1; }
html.w079 .auth-field input:focus { border-color:var(--ink); outline:2px solid #f39f41; outline-offset:2px; box-shadow:0 0 0 2px #080908; }
html.w079 .auth-field input[aria-invalid="true"] { border-color:var(--err); box-shadow:inset 0 0 0 1px var(--err); }
html.w079 .auth-field input[aria-invalid="true"]:focus { box-shadow:0 0 0 2px #080908, inset 0 0 0 1px var(--err); }
html.w079 .auth-code-input { font-family:var(--font-mono); font-size:20px; letter-spacing:.42em; text-align:center; font-variant-numeric:tabular-nums; }
html.w079 .auth-hint { margin:7px 0 0; color:var(--ink-3); font-size:13.5px; line-height:1.45; }
html.w079 .auth-error { margin:7px 0 0; color:var(--err); font-size:13.5px; font-weight:500; line-height:1.45; }
html.w079 .auth-form .btn { min-height:50px; }
html.w079 .auth-security-note { margin:24px 0 0; padding-top:16px; border-top:1px solid var(--hair); color:var(--ink-3); font-size:13.5px; line-height:1.5; }

/* the code step's two quiet ways on */
html.w079 .auth-secondary-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 24px; margin-top:20px; padding-top:4px; border-top:1px solid var(--hair); }
html.w079 .auth-text-button { display:inline-flex; align-items:center; min-height:48px; padding:0; border:0; background:transparent; color:var(--ink); font-family:var(--font-body); font-size:15px; font-weight:600; text-decoration:underline; text-decoration-color:var(--amber); text-decoration-thickness:1px; text-underline-offset:4px; cursor:pointer; }
html.w079 .auth-text-button:hover { color:var(--amber); text-decoration-color:var(--amber); }

/* the local test server's note, and the outage panel */
html.w079 .auth-sandbox-note { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 18px; margin-top:22px; padding:14px 16px; border:1px solid var(--hair); border-left:2px solid var(--amber); background:var(--field-paper); }
html.w079 .auth-sandbox-note strong { color:var(--ink-2); font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
html.w079 .auth-sandbox-note span { color:var(--amber); font-family:var(--font-mono); font-size:17px; font-weight:400; letter-spacing:.18em; }
html.w079 .auth-sandbox-note p { grid-column:1 / -1; margin:0; color:var(--ink-3); font-size:13px; line-height:1.45; }
html.w079 .auth-system-error { padding:0; }
html.w079 .auth-system-error h2 { max-width:22ch; }
html.w079 .auth-system-error > p { margin:10px 0 0; color:var(--ink-2); font-size:15.5px; line-height:1.5; overflow-wrap:anywhere; }
html.w079 .auth-system-error > .btn { margin-top:24px; }

/* ---------- narrower: one column, the sheet under the words ---------- */
@media (max-width:1040px) {
  html.w079 .auth-panel { grid-template-columns:minmax(0,1fr); grid-template-rows:none; }
  html.w079 .auth-panel > :is(.auth-heading,.auth-card,.auth-no-account,noscript) { grid-column:auto; grid-row:auto; }
  html.w079 .auth-heading { padding-top:0; }
  html.w079 .auth-card { max-width:560px; margin-top:36px; }
  html.w079 .auth-no-account { margin-top:32px; }
}
@media (max-width:700px) {
  html.w079 .auth-shell { min-height:0; padding:36px 0 48px; }
  html.w079 .auth-card { margin-top:28px; padding:22px 20px 24px; }
  html.w079 .auth-mark { width:20px; height:20px; margin-bottom:20px; }
  html.w079 .auth-card h2 { font-size:25px; }
  html.w079 .auth-copy { font-size:15px; }
  /* the design gate pins this margin at 24px on a phone */
  html.w079 .auth-no-account { margin-top:24px; padding-top:18px; font-size:14.5px; }
  /* the sentence's two links keep their place in the line: vertical padding on an inline
     box leaves the line untouched and gives each a 44px tap height */
  html.w079 .auth-no-account a { padding:14px 0; }
  html.w079 .auth-secondary-actions { flex-direction:column; align-items:stretch; gap:0; }
  html.w079 .auth-text-button { justify-content:flex-start; width:100%; }
  html.w079 .auth-sandbox-note { grid-template-columns:minmax(0,1fr); }
}

/* ---------- the form sits on black, like every form that acts on this site ----------
   The gate's M-01 ink pin reads typed text at rgb(245, 245, 245) on a dark field; the sheet
   becomes a lifted black panel, its field dark, its button amber. */
html.w079 .auth-card.w079-black { background:#141412; box-shadow:0 0 0 1px var(--hair-black-2), 0 24px 60px -24px rgba(0,0,0,.6); color:var(--on-black); color-scheme:dark; }
html.w079 .auth-card .auth-mark { color:var(--on-black); }
html.w079 main .auth-card h2 { color:var(--on-black); }
html.w079 .auth-card .auth-copy,
html.w079 .auth-card .auth-pending p,
html.w079 .auth-card .auth-system-error > p { color:var(--on-black-2); }
html.w079 .auth-card .auth-pending strong { color:var(--on-black); }
html.w079 .auth-card .auth-step-label { color:var(--on-black-2); }
html.w079 .auth-card .auth-field label { color:#e7e2d7; }
html.w079 .auth-card .auth-field input { border:1px solid var(--hair-black-2); background:var(--field-black); color:#f5f5f5; caret-color:var(--amber-hot); color-scheme:dark; }
html.w079 .auth-card .auth-field input::placeholder { color:#a39d91; }
html.w079 .auth-card .auth-field input:hover { border-color:rgba(244,241,233,.46); }
html.w079 .auth-card .auth-field input:focus { border-color:rgba(244,241,233,.46); background:#262622; }
html.w079 .auth-card .auth-field input[aria-invalid="true"] { border-color:var(--err-dark); box-shadow:inset 0 0 0 1px var(--err-dark); }
html.w079 .auth-card .auth-hint { color:var(--on-black-3); }
html.w079 .auth-card .auth-error { color:var(--err-dark); }
html.w079 .auth-card .auth-security-note { border-top-color:var(--hair-black); color:var(--on-black-3); }
html.w079 .auth-card .auth-secondary-actions { border-top-color:var(--hair-black); }
html.w079 .auth-card .auth-text-button { color:var(--on-black); text-decoration-color:var(--amber-hot); }
html.w079 .auth-card .auth-text-button:hover { color:var(--amber-hot); }
html.w079 .auth-card .auth-sandbox-note { border-color:var(--hair-black-2); border-left-color:var(--amber-hot); }
html.w079 .auth-card .auth-sandbox-note :is(strong,p) { color:var(--on-black-2); }
html.w079 .auth-card .auth-sandbox-note span { color:var(--amber-hot); }
/* the pending mark: the one amber the gate counts in this state (r108 rider: amber fill and edge) */
html.w079 .auth-status-mark { background:#f39f41; border:1px solid #f39f41; }

/* ---------- art director review, 2026-11-04 (row 10) ---------- */
@media (min-width:961px) and (max-width:1040px) {
  html.w079 .auth-panel { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto auto 1fr; column-gap:40px; }
  html.w079 .auth-panel > .auth-heading { grid-column:1; grid-row:1; padding-top:28px; }
  html.w079 .auth-panel > .auth-card { grid-column:2; grid-row:1 / span 3; max-width:none; margin-top:0; }
  html.w079 .auth-panel > .auth-no-account { grid-column:1; grid-row:2; }
  html.w079 .auth-panel > noscript { grid-column:1; grid-row:3; }
}

/* ---------- buttons: one finished family on every page, 2026-11-05 ---------- */
/* buttons, sign-in: the code step's two text buttons are second actions, each led by its glyph; the submits hold one line */
/* each glyph is a shape cut from its own colour, so the colour fades with the label under the pointer */
html.w079 .auth-card .auth-text-button {
  --ie-tb-send:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 3v6h10M9.5 5.5 13 9 9.5 12.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  --ie-tb-back:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M15 6H3M7.5 1.5 3 6 7.5 10.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  --ie-tb-ink:#c9c3b7;
  gap:9px;
  font-weight:560;
  text-decoration-color:rgba(244,241,233,.42);
  text-decoration-thickness:1px;
  text-underline-offset:6px;
  transition:color var(--ie-t) var(--ie-ease),text-decoration-color var(--ie-t) var(--ie-ease);
}
html.w079 .auth-card .auth-text-button::before {
  content:""; content:"" / "";
  flex:none;
  width:16px;
  height:16px;
  -webkit-mask:var(--ie-tb-glyph,none) 50% 50% no-repeat;
  mask:var(--ie-tb-glyph,none) 50% 50% no-repeat;
  box-shadow:inset 0 0 0 8px var(--ie-tb-ink);
  transition:box-shadow var(--ie-t) var(--ie-ease);
}
html.w079 .auth-card .auth-text-button[data-auth-resend] { --ie-tb-glyph:var(--ie-tb-send); }
html.w079 .auth-card .auth-text-button[data-auth-change-email] { --ie-tb-glyph:var(--ie-tb-back); }
html.w079 .auth-card .auth-text-button:hover { --ie-tb-ink:var(--amber-hot); text-decoration-color:var(--amber-hot); }
html.w079 .auth-card .auth-text-button:active { --ie-tb-ink:var(--on-black-2); color:var(--on-black-2); text-decoration-color:var(--on-black-2); }
@media (forced-colors:active) {
  html.w079 .auth-card .auth-text-button::before { content:none; }
}
@media (max-width:374px) {
  html.w079 main .auth-card .auth-form .btn--accent { padding-left:12px; gap:6px; letter-spacing:-.014em; }
}
