/* Sign-in pages (/login/, check your email, /auth/verify, /logout). Owner: auth agent.
   Builds on site.css tokens and components; loaded through PageMeta.styles. No inline styles (CSP). */

.auth {
	padding-block: clamp(2rem, 6vw, 4.5rem) var(--sp-4);
}

/* One focused column (confirm, code, problem pages). */
.auth__single {
	width: min(100% - 2 * var(--gutter), 30rem);
}

/* Form column plus the "how signing in works" panel on wide screens. */
.auth__grid {
	display: grid;
	gap: var(--sp-6);
}

@media (min-width: 56rem) {
	.auth__grid {
		grid-template-columns: minmax(0, 30rem) minmax(0, 21rem);
		justify-content: center;
		align-items: start;
		gap: clamp(2.5rem, 6vw, 5rem);
	}

	.auth__aside {
		margin-top: 7.25rem;
	}
}

.auth__title {
	margin-bottom: var(--sp-2);
	font-size: var(--fs-2xl);
	letter-spacing: -0.015em;
}

.auth__lead {
	margin-bottom: var(--sp-5);
	color: var(--muted);
	font-size: var(--fs-md);
}

.auth__email {
	overflow-wrap: anywhere;
}

.auth__alert {
	margin-bottom: var(--sp-4);
}

.auth__alert p {
	margin: 0;
}

/* The form card: the one place with the brand accent on top. */
.auth__card {
	padding: var(--sp-5);
	border-top: 3px solid var(--teal-700);
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.auth__check {
	min-width: 0;
}

.auth__noscript {
	margin: 0;
	padding: var(--sp-3);
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: var(--radius-control);
	color: #78350f;
	font-size: var(--fs-sm);
}

.auth__terms {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-xs);
	line-height: 1.55;
}

.auth__note {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.auth__link {
	font-weight: 600;
}

/* "How signing in works": a real sequence, so the steps are numbered. */
.auth__aside {
	padding: var(--sp-5);
	background: var(--teal-50);
	border: 1px solid var(--teal-100);
	border-radius: var(--radius-card);
}

.auth__aside-title {
	margin-bottom: var(--sp-4);
	font-size: var(--fs-lg);
	letter-spacing: 0;
}

.auth__steps {
	display: grid;
	gap: var(--sp-4);
	margin: 0 0 var(--sp-5);
	padding: 0;
	list-style: none;
	counter-reset: auth-step;
}

.auth__steps li {
	display: grid;
	grid-template-columns: 1.875rem 1fr;
	gap: var(--sp-3);
	align-items: start;
	color: var(--ink-2);
	counter-increment: auth-step;
}

.auth__steps li::before {
	content: counter(auth-step);
	display: grid;
	place-items: center;
	width: 1.875rem;
	height: 1.875rem;
	background: var(--surface);
	border: 1.5px solid var(--teal-700);
	border-radius: 50%;
	color: var(--teal-800);
	font-size: var(--fs-sm);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.auth__aside-note {
	margin: 0;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--teal-100);
	color: var(--muted);
	font-size: var(--fs-sm);
}

/* Check your email */
.auth__badge {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: var(--sp-4);
	background: var(--teal-50);
	border: 1px solid var(--teal-100);
	border-radius: 50%;
	color: var(--teal-700);
}

.auth__badge .icon {
	width: 1.625rem;
	height: 1.625rem;
}

/* The code field mirrors the code in the email: large, evenly spaced digits. */
.auth__code-input {
	max-width: 15rem;
	min-height: 3.5rem;
	padding-inline: var(--sp-3);
	color: var(--ink);
	font-size: 1.75rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.3em;
	text-indent: 0.3em;
	text-align: center;
}

.auth__help {
	margin-top: var(--sp-6);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--rule);
}

.auth__help-title {
	margin-bottom: var(--sp-3);
	font-size: var(--fs-md);
	letter-spacing: 0;
}

.auth__help-list {
	margin-bottom: var(--sp-4);
	padding-left: 1.25rem;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.auth__help-list li + li {
	margin-top: var(--sp-1);
}

/* Turnstile in interaction-only mode stays empty unless a challenge needs the visitor. */
.auth__turnstile-quiet:not(:empty) {
	margin-bottom: var(--sp-3);
}

.auth__signout {
	margin-top: var(--sp-2);
}
