/* The card and the paper card beside it, centred as one pair. On a narrow screen they stack, the form first, so the email field is on the first screen. */
.auth-pair { grid-template-columns: minmax(0, 440px) minmax(0, var(--side)); column-gap: var(--s7); row-gap: var(--s6); justify-content: center; padding-block: var(--s6); }
@media (max-width: 860px) { .auth-pair { grid-template-columns: minmax(0, 480px); } }
/* A sign-in card with no paper card beside it (the short Sign in as page of a self-serve sign-up): one centred column at every width. */
.auth-alone { grid-template-columns: minmax(0, 480px); }
.auth-col { min-width: 0; }
.auth-card { display: grid; gap: var(--s5); min-width: 0; padding: var(--s7); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.auth-card > * { min-width: 0; margin: 0; }
.auth-mark { width: 25px; height: 30px; }
.auth-card h1 { overflow-wrap: anywhere; text-wrap: balance; }
.auth-card h1:focus { outline: 0; }
.auth-lead { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.auth-lead strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.auth-form { display: grid; gap: var(--s5); }
.auth-form > * { margin: 0; }
.auth-input::placeholder { color: var(--text-2); }
.auth-status:empty { display: none; }
.auth-small, .auth-field-error { overflow-wrap: anywhere; }
.auth-notes { display: grid; gap: var(--s1); }
.auth-actions { display: grid; gap: var(--s5); justify-items: start; }
.auth-actions > .auth-ghost { justify-self: stretch; }
.auth-actions > p { margin: 0; }
.auth-link { justify-self: start; }
.auth-return a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--text-2); text-underline-offset: 3px; }
.auth-return a:hover { color: var(--accent-text); text-decoration-color: var(--accent-text); }
.auth-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }

/* What the visitor should read first: a notice at the top of the card. The page script shows one by giving it the class show. */
.auth-notice { display: none; }
.auth-notice.show { display: block; }

/* The allow page (Luka, 2026-11-03, "YES make ALLOW page impressive"). Its head is the picture that joins the app to Manufactura and the headline under it. Behind the head, and only behind it, is the dotted
   texture of the terminal look (visual-system.md, part 19): the site's dots, on a 7 pixel grid, faded out by an oval, with a block cursor after the last word of the headline that blinks five times and
   then stays on. The dots are --line at 40 per cent. The site calls that colour --dots, but --dots is not in every copy of the site's stylesheet, and this sheet may use only what they all have. The
   texture is never behind the lead, the lists or the buttons. The head keeps the dots inside its own box, so the oval is clear at the box's edges and no straight edge of dots shows. */
.auth-head { position: relative; isolation: isolate; display: grid; gap: var(--s5); padding-block: var(--s4) var(--s2); }
.auth-head > * { min-width: 0; margin: 0; }
.auth-head::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .4; background-image: radial-gradient(circle, var(--line) 1.05px, transparent 1.45px); background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(ellipse 44% 50% at 56% 50%, currentColor 0%, transparent 100%); mask-image: radial-gradient(ellipse 44% 50% at 56% 50%, currentColor 0%, transparent 100%); }
/* The last word of the headline and the cursor after it are one piece that no line break can split, so the cursor never stands alone on a line. A word joiner at the end of the text does not do
   that in Chrome (measured: the same widths leave the cursor alone with it and without it), so the piece is made unbreakable instead. */
.auth-last { white-space: nowrap; }
.auth-last::after { content: ""; display: inline-block; width: .4em; height: .74em; margin-left: .1em; vertical-align: -.02em; background: var(--accent); border: 1px solid var(--accent-strong); animation: auth-cursor 1s steps(1, end) 5; }
@keyframes auth-cursor { 0%, 55%, 100% { opacity: 1; } 56%, 99% { opacity: 0; } }

/* The picture: the app's tile, a dotted line, Manufactura's tile. A small light runs along the line three times, 1.2 seconds each, and stops (nothing on the page moves for longer than five seconds). */
.auth-tiles { display: flex; align-items: center; gap: var(--s3); }
.auth-tile { display: grid; place-items: center; flex: none; width: var(--s8); height: var(--s8); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: 500 16px/1 var(--mono); }
.auth-tile svg { width: var(--s5); height: var(--s6); }
.auth-wire { position: relative; flex: 1 1 auto; min-width: var(--s6); height: 7px; background: radial-gradient(circle, var(--line) 1.05px, transparent 1.45px) 0 50% / 7px 7px repeat-x; }
.auth-pulse { position: absolute; top: 50%; left: 0; width: var(--s2); height: var(--s2); margin-top: calc(var(--s1) * -1); background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-strong); opacity: 0; animation: auth-pulse 1.2s linear 3; }
@keyframes auth-pulse { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - var(--s2)); opacity: 0; } }

/* Whose account it is. One row between two thin lines: the address in strong text, and the quiet button that leaves it on the right, under it when the card is narrow. */
.auth-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-block: var(--s3); border-block: 1px solid var(--line-soft); }
.auth-account > * { min-width: 0; margin: 0; }
.auth-account-who { display: grid; gap: var(--s1); }
.auth-account-label { color: var(--text-2); font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.auth-email { color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.auth-switch { padding-inline: 0; }

/* What the app can do and what it cannot: a pixel icon (part 20) or a plain marker in a 32 pixel column, then the kicker and the lines. The empty box mirrors the ticked box. */
.auth-scope { display: grid; grid-template-columns: var(--s7) minmax(0, 1fr); column-gap: var(--s4); row-gap: var(--s2); align-items: start; }
.auth-scope > .auth-pixel, .auth-scope > .auth-no { grid-row: 1 / span 2; }
.auth-scope-title { margin: 0; }
.auth-pixel { display: block; flex: none; width: var(--s7); height: var(--s7); fill: var(--accent-strong); }
.auth-no { display: block; width: var(--s6); height: var(--s6); margin-top: var(--s1); box-shadow: inset 0 0 0 var(--s1) var(--line); }
.auth-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.auth-list li { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); counter-reset: auth-step; }
.auth-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); color: var(--text-2); font-size: 16px; line-height: 1.55; counter-increment: auth-step; }
.auth-steps li::before { content: "0" counter(auth-step); color: var(--accent-text); font: 500 12px/1.9 var(--mono); }
.auth-code { display: block; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); font: 500 13px/1.5 var(--mono); overflow-wrap: anywhere; }

/* The paper card beside the form: the site's own card, one column always, and not pinned to the top. Between 601 and 1040 pixels the site sets a card's blocks two by two, with a line down the left edge of
   the second block. This card stays one column, so that line would run down the inside of the card's own edge, and it is taken off. */
.auth-facts.side-card { grid-template-columns: minmax(0, 1fr); position: static; }
.auth-facts.side-card > :not(.wide) + :not(.wide) { border-left: 0; }

@media (max-width: 760px) {
  .auth-card { padding: var(--s6) var(--inset); }
  .auth-link, .auth-return a { display: inline-flex; align-items: center; min-height: var(--tap); }
}
@media (max-width: 500px) {
  .auth-buttons { grid-template-columns: minmax(0, 1fr); }
}

/* A visitor who asks for less motion gets the page standing still: the cursor stays on and the light does not run. */
@media (prefers-reduced-motion: reduce) {
  .auth-last::after, .auth-pulse { animation: none; }
}
