/**
 * The signed-out pages: the sign-in screen and the GitLab linking screen.
 *
 * Both are one card on the page ground with nothing else on the page — no top bar, no rail,
 * no nav — so none of the shell geometry in layout.css applies and this sheet carries its
 * own. It is linked only from auth.twig and by nothing else.
 *
 * No literal colours, as everywhere: the only colour on either page comes in through the two
 * brand logos, which are image files and carry their own (the same arrangement the status
 * icons and the GitLab button on the pipeline page already use).
 */

.auth {
	margin: 0;
	min-height: 100vh;
	display: flex; align-items: center; justify-content: center;
	padding: var(--space-6);
	box-sizing: border-box;
	background: var(--bg);
}

/* The card is a <main>, and layout.css styles a bare `main` as the app shell — a 1280px
   flex row with its own padding. None of that applies to a page that is one card, so the
   three properties that would otherwise lay the card's own contents out in a row are reset
   here rather than by narrowing the selector over there. */
.auth__card {
	display: block; flex: none; margin: 0;
	width: 100%; max-width: 420px;
	box-sizing: border-box;
	padding: var(--space-8);
	border: var(--bw-hair) solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow-xs);
	background: var(--panel);
}

/* Wordmark, set like the top bar's — same weight, same tracking — but on the panel rather
   than on charcoal chrome, so it takes --ink instead of --topbar-fg. */
.auth__brand {
	display: flex; align-items: center; gap: var(--space-3);
	padding-bottom: var(--space-5);
	border-bottom: var(--bw-hair) solid var(--line2);
}

.auth__crest { font-family: var(--font-emoji); font-size: 24px; line-height: 1; }

.auth__wordmark {
	font: var(--fw-semibold) 16px/1 var(--font-display);
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	color: var(--ink);
}

.auth__title {
	margin: var(--space-6) 0 var(--space-3);
	font: var(--fw-bold) 27px/30px var(--font-display);
	letter-spacing: -0.01em;
}

.auth__who {
	margin: 0 0 var(--space-3);
	font-size: 13.5px; line-height: 20px; color: var(--ink-2);
}

.auth__who-email { color: var(--muted); }

.auth__lead {
	margin: 0 0 var(--space-6);
	font-size: 14px; line-height: 21px; color: var(--ink-2);
}

/* The one thing to press. An ink-filled primary action, behaving like .btn-next: filled with
   --ink, labelled --on-ink because an ink block inverts with the theme and #fff on it is the
   bug those tokens exist to prevent, and changing its fill on hover rather than moving. */
.auth__action {
	display: flex; align-items: center; justify-content: center; gap: var(--space-2);
	width: 100%; box-sizing: border-box;
	padding: 14px var(--space-4);
	border: 0; border-radius: var(--r-control);
	background: var(--ink); color: var(--on-ink);
	font: var(--fw-semibold) 14px/1 var(--font-sans);
	letter-spacing: normal;
	text-decoration: none;
	transition: background var(--dur-fast) var(--ease-standard);
}

.auth__action:hover { background: var(--ink-hover); }

.auth__action:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Sized in em so the row is exactly as tall with a logo as without — the same reason the
   pipeline page's "Open on GitLab" button sizes its icon that way. */
.auth__action-logo { width: 1.3em; height: 1.3em; display: block; }

.auth__note {
	margin: var(--space-4) 0 0;
	font-size: 12px; line-height: 16px; color: var(--muted);
}

.auth__secondary {
	display: inline-block;
	margin-top: var(--space-6);
	font-size: 13px; line-height: 18px; color: var(--muted);
}

.auth__secondary:hover { color: var(--ink); }
