/*
 * /signup/ (2026-11-20 redesign, docs/design/2026-11-20-signup-redesign/03-plan.md in the ops repo; page-signup.php,
 * header-minimal-register.php, footer-signup.php, js/signup.js). One 400px column on the /login/ tokens (css/login_chooser.css):
 * the same blue, the same face, the same 10px radius. Everything is scoped to .su-body, so no other page is touched, and
 * nothing here uses the legacy .template-login block (absolutely centred, no document scroll).
 */
.su-body {
	--lc-ink: #000000;
	--lc-body: #292929;
	--lc-meta: #5f5f5f;
	--lc-rule: #d9d6d2;
	--lc-rule-strong: #aeaaa5;
	--lc-accent: #0042ff;
	--lc-accent-dark: #002ba5;
	--lc-accent-soft: #eef3ff;
	--lc-ground: #f7f6f6;
	--lc-error: #c40000;
	--lc-radius: 10px;
	--lc-focus: 0 0 0 3px rgba(0, 66, 255, 0.35);
	--lc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	margin: 0;
	background: #fff;
	color: var(--lc-body);
	-webkit-font-smoothing: antialiased;
}
.su-body,
.su-body * {
	font-family: "Founders Grotesk", Arial, sans-serif;
}
.su-body *,
.su-body *::before,
.su-body *::after {
	box-sizing: border-box;
}

/* ---- header: logo left, "Log in" right, at every width ---------------------------------------------------------- */
.su-body .su-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 18px 20px;
}
.su-body .su-top .custom-logo-link {
	display: block;
	line-height: 0;
}
.su-body .su-top .custom-logo {
	display: block;
	width: auto;
	height: 28px;
	max-width: none;
}
.su-body .su-top-login {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 2px;
	color: var(--lc-ink);
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.su-body .su-top-login:visited {
	color: var(--lc-ink);
}
.su-body .su-top-q {
	display: none;
	margin-right: 6px;
	color: var(--lc-meta);
	font-weight: 400;
}
.su-body .su-top-login:hover .su-top-l {
	text-decoration: underline;
}

/* ---- the column ------------------------------------------------------------------------------------------------- */
.su-body .su {
	max-width: 400px;
	margin: 0 auto;
	padding: 22px 20px 40px;
	box-sizing: content-box;
}
.su-body .su h1 {
	margin: 0 0 12px;
	padding: 0;
	color: var(--lc-ink);
	font-size: 40px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	text-align: left;
}
.su-body .su-sub {
	margin: 0 0 22px;
	color: var(--lc-body);
	font-size: 18px;
	line-height: 1.38;
}

/* ---- notices: cancelled or expired Google sign-in, social-app browser -------------------------------------------- */
.su-body .su-note {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-left: 3px solid var(--lc-accent);
	border-radius: var(--lc-radius);
	background: var(--lc-accent-soft);
	color: var(--lc-ink);
	font-size: 16px;
	line-height: 1.4;
}
.su-body .su-inapp {
	margin: 0 0 14px;
	padding: 14px;
	border-radius: var(--lc-radius);
	background: var(--lc-ground);
	color: var(--lc-ink);
	font-size: 16px;
	line-height: 1.4;
}
.su-body .su-inapp p {
	margin: 0 0 10px;
}
.su-body .su-inapp b {
	font-weight: 600;
}
.su-body .su-inapp-row {
	display: flex;
	gap: 8px;
}
.su-body .su-btn2 {
	flex: 1 1 0;
	min-height: 44px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--lc-rule-strong);
	border-radius: var(--lc-radius);
	background: #fff;
	color: var(--lc-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.su-body .su-btn2:hover {
	border-color: var(--lc-ink);
}
.su-body .su-inapp-help {
	margin: 10px 0 0;
	color: var(--lc-body);
	font-size: 15px;
}
.su-body .su-inapp-help:empty {
	display: none;
}
.su-body .su-inapp-url {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 8px;
	border: 1px solid var(--lc-rule-strong);
	border-radius: 6px;
	background: #fff;
	color: var(--lc-ink);
	font-size: 14px;
}

/* ---- the carried video ------------------------------------------------------------------------------------------ */
.su-body .su-video {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 10px;
	border: 1px solid var(--lc-rule);
	border-radius: var(--lc-radius);
	background: var(--lc-accent-soft);
}
.su-body .su-video img {
	flex: none;
	display: block;
	width: 96px;
	height: 54px;
	max-width: none;
	border-radius: 6px;
	object-fit: cover;
	background: var(--lc-rule);
}
.su-body .su-video-text {
	min-width: 0;
}
.su-body .su-video-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: var(--lc-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.su-body .su-video-title[hidden] {
	display: none;
}
.su-body .su-video-note {
	display: block;
	margin-top: 3px;
	color: var(--lc-meta);
	font-size: 14px;
	line-height: 1.3;
}
/* no title: the note is the card's only line */
.su-body .su-video-title[hidden] + .su-video-note {
	margin-top: 0;
	color: var(--lc-ink);
	font-size: 15px;
	font-weight: 600;
}

/* ---- Continue with Google (Google's Light theme: white, #747775 border, #1f1f1f label, the four-colour G) --------- */
.su-body .su-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #747775;
	border-radius: var(--lc-radius);
	background: #fff;
	color: #1f1f1f;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 150ms var(--lc-ease), background-color 150ms var(--lc-ease);
	-webkit-tap-highlight-color: transparent;
}
.su-body .su-google-btn:visited,
.su-body .su-google-btn:hover,
.su-body .su-google-btn:focus {
	color: #1f1f1f;
}
.su-body .su-google-btn:hover {
	border-color: #1f1f1f;
	background: #f8f8f8;
}
.su-body .su-google-btn:active {
	background: #eeeeee;
}
.su-body .su-google-btn svg {
	flex: none;
	width: 22px;
	height: 22px;
}
.su-body .su-google-btn[aria-disabled="true"] {
	cursor: progress;
	pointer-events: none;
	background: #f8f8f8;
	color: #5f5f5f;
}
.su-body .su-spin {
	display: none;
	flex: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--lc-rule);
	border-top-color: var(--lc-accent);
	border-radius: 50%;
	animation: su-spin 0.8s linear infinite;
}
.su-body [aria-disabled="true"] .su-spin,
.su-body .su-cta[aria-busy="true"] .su-spin {
	display: block;
}
.su-body .su-google-btn[aria-disabled="true"] .su-g {
	display: none;
}
@keyframes su-spin {
	to {
		transform: rotate(360deg);
	}
}

/* the permission line under the button: what Google's next screen will ask */
.su-body .su-perm {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 2px 0;
	color: var(--lc-meta);
	font-size: 15px;
	line-height: 1.42;
}
.su-body .su-perm svg {
	flex: none;
	margin-top: 2px;
}

.su-body .su-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 18px;
	color: var(--lc-meta);
	font-size: 15px;
	line-height: 1;
}
.su-body .su-or::before,
.su-body .su-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--lc-rule);
}

/* ---- the email form --------------------------------------------------------------------------------------------- */
.su-body .su-form {
	margin: 0;
}
.su-body .su-field {
	margin: 0 0 14px;
}
.su-body .su-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--lc-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.su-body .su-field input {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--lc-rule-strong);
	border-radius: var(--lc-radius);
	background: #fff;
	color: var(--lc-ink);
	font-size: 17px;
	line-height: 1.2;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.su-body .su-field input:focus {
	border-color: var(--lc-accent);
	box-shadow: var(--lc-focus);
}
.su-body .su-field input[aria-invalid="true"] {
	border-color: var(--lc-error);
}
.su-body .su-pass {
	position: relative;
}
.su-body .su-pass input {
	padding-right: 76px;
}
.su-body .su-show {
	position: absolute;
	top: 3px;
	right: 3px;
	bottom: 3px;
	min-width: 64px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--lc-accent);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}
.su-body .su-show:hover {
	color: var(--lc-accent-dark);
	text-decoration: underline;
}
.su-body .su-hint {
	margin: 6px 0 0;
	color: var(--lc-meta);
	font-size: 14px;
	line-height: 1.3;
}
.su-body .su-err {
	margin: 6px 0 0;
	color: var(--lc-error);
	font-size: 14px;
	line-height: 1.35;
}
.su-body .su-err[hidden],
.su-body .su-hint[hidden] {
	display: none;
}

/* API answers (already has an account, couldn't verify the address, security check, channel elsewhere) */
.su-body .su-alert {
	margin: 2px 0 14px;
	padding: 12px 14px;
	border-left: 3px solid var(--lc-error);
	border-radius: var(--lc-radius);
	background: #fff4f4;
	color: var(--lc-ink);
	font-size: 15px;
	line-height: 1.42;
}
.su-body .su-alert[hidden] {
	display: none;
}
.su-body .su-alert a,
.su-body .su-alert a:visited {
	color: var(--lc-ink);
	font-weight: 600;
	text-decoration: underline;
}
.su-body .su-alert a.su-btn2,
.su-body .su-alert a.su-btn2:visited {
	font-weight: 500;
	text-decoration: none;
}
.su-body .su-alert .su-alert-row {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.su-body .cf-turnstile {
	text-align: center;
}
.su-body .cf-turnstile:not(:empty) {
	margin: 0 0 10px;
}

.su-body .su-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin: 6px 0 0;
	padding: 8px 16px;
	border: 0;
	border-radius: var(--lc-radius);
	background: var(--lc-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 150ms var(--lc-ease);
}
.su-body .su-cta:hover {
	background: var(--lc-accent-dark);
}
.su-body .su-cta:active {
	background: #00227f;
}
.su-body .su-cta[aria-busy="true"],
.su-body .su-cta:disabled {
	background: var(--lc-accent-dark);
	cursor: progress;
}
.su-body .su-cta .su-spin {
	border-color: rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
}

.su-body .su-terms {
	margin: 14px 0 0;
	color: var(--lc-meta);
	font-size: 14px;
	line-height: 1.45;
}
.su-body .su-terms a,
.su-body .su-terms a:visited {
	color: var(--lc-meta);
	text-decoration: underline;
}

/* ---- the minimal footer ----------------------------------------------------------------------------------------- */
.su-body .su-foot {
	max-width: 400px;
	margin: 0 auto;
	padding: 18px 20px 28px;
	box-sizing: content-box;
	border-top: 1px solid var(--lc-rule);
	color: var(--lc-meta);
	font-size: 14px;
	line-height: 1.5;
}
.su-body .su-foot ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}
.su-body .su-foot li {
	margin: 0;
}
.su-body .su-foot a,
.su-body .su-foot a:visited {
	color: var(--lc-meta);
	text-decoration: none;
}
.su-body .su-foot a:hover {
	color: var(--lc-ink);
	text-decoration: underline;
}
.su-body .su-foot p {
	margin: 0;
}

/* ---- focus: one visible ring everywhere ------------------------------------------------------------------------- */
.su-body a:focus,
.su-body button:focus {
	outline: none;
}
.su-body a:focus-visible,
.su-body button:focus-visible {
	outline: none;
	box-shadow: var(--lc-focus);
	border-radius: var(--lc-radius);
}
.su-body .su-google-btn:focus-visible {
	border-color: var(--lc-accent);
}

/* skip link: off screen until focused */
.su-body .skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 10;
	padding: 10px 14px;
	border-radius: var(--lc-radius);
	background: #fff;
	color: var(--lc-ink);
}
.su-body .skip-link:focus {
	left: 8px;
}

@media (min-width: 900px) {
	.su-body .su-top {
		padding: 24px 48px;
	}
	.su-body .su-top .custom-logo {
		height: 32px;
	}
	.su-body .su-top-q {
		display: inline;
	}
	.su-body .su {
		padding-top: 64px;
	}
	.su-body .su h1 {
		font-size: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.su-body .su-spin {
		animation-duration: 2.4s;
	}
	.su-body .su-google-btn,
	.su-body .su-cta {
		transition: none;
	}
}
