/* The sign-in pages: /login and /update-password, and the ground of /signup.
   Plus, near the end, the house seal on every website page (the top bar and
   the help documents' mastheads), because this is the one web-only sheet.

   Both are Frappe's own templates (www/login.html, www/update-password.html),
   not ours, and both override the `head_include` block wholesale, so the app's
   theme file (theme.py) never reaches them. What does reach them is every
   sheet in hooks.py's web_include_css, so this file is scoped to the one thing
   only those two pages have, the `.page-card`, and styles Frappe's markup
   where it stands. Nothing here forks a template; the form, its scripts, the
   forgot-password view and the sign-up link work exactly as Frappe wrote them.

   The look is the trading house's own, taken from its brand kit: the flyer
   artwork is the logo (never redrawn: login_signup.js points the page's
   img.app-logo at it, and the `content` rule below does the same before any
   script runs), the tiled foliage texture is the ground, and the two poppy
   corners sit behind the card. Type is a system serif stack. Nothing is
   fetched from a font host, so Words & look has nothing to load or to block.

   Two grounds, as on the brand's own site. Night (the OS asks for dark, or
   the reader chose Dark with the little control on the page) is a black-green
   card with cream and gold type. Day is a cream card with black type and
   oxblood for links and the button. GOLD TEXT ONLY EVER SITS ON THE DARK
   CARD: gold on cream measures 1.48:1. Every text pair below was measured
   (WCAG 2.x relative luminance) on the worst backdrop the texture can put
   behind the translucent card, and the smallest ratio is noted beside it;
   all clear 4.5:1 for text and 3:1 for field edges and focus rings.

   Two ways to be dark, written twice because CSS cannot name a block of
   declarations: the OS setting unless the reader chose light, and their
   explicit choice of dark. data-theme is stamped on <html> by theme.js. */

:root {
	/* the brand's three faces, served by this app (declared in foodservice.css,
	   which is loaded with this sheet), each ahead of the stack these pages
	   used before they had them: Lora reads, Playfair Display heads, and
	   Yeseva One is the one big title, as on the brand's own site */
	--lg-fallback: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--lg-serif: "Lora", var(--lg-fallback);
	--lg-heading: "Playfair Display", var(--lg-fallback);
	--lg-display: "Yeseva One", var(--lg-fallback);

	/* ---- day ------------------------------------------------------------ */
	--lg-scheme: light;
	--lg-ground: #FCECB8;
	--lg-veil: rgba(252, 236, 184, .80);
	--lg-vignette: rgba(174, 94, 36, .34);
	--lg-poppy-opacity: .95;

	--lg-card: rgba(255, 249, 229, .94);
	--lg-card-edge: rgba(174, 94, 36, .55);
	--lg-card-edge-inner: rgba(174, 94, 36, .30);
	--lg-card-shadow: 0 24px 60px rgba(17, 11, 4, .32), 0 2px 8px rgba(17, 11, 4, .18);

	--lg-ink: #110B04;            /* 17.4:1 on the card */
	--lg-ink-soft: #3B3223;       /* 11.2:1 */
	--lg-link: #AB0A06;           /*  6.7:1 */
	--lg-deco: #AE5E24;

	--lg-input-bg: #FFFDF3;
	--lg-input-edge: #AE5E24;     /*  4.2:1 against the card (needs 3) */
	--lg-placeholder: #6A5F49;    /*  6.2:1 on the field */
	--lg-icon: #6A5F49;
	--lg-focus: #2C505F;          /*  7.7:1 */

	--lg-btn: #AB0A06;
	--lg-btn-hover: #7C0704;
	--lg-btn-ink: #FCECB8;        /*  6.4:1, 9.4:1 hovered */
	--lg-btn-off: rgba(17, 11, 4, .12);
	--lg-btn-off-ink: #4A4030;
	--lg-alt-edge: #AE5E24;
	--lg-alt-hover: rgba(174, 94, 36, .14);

	--lg-err-bg: #FBE2DA;
	--lg-err-ink: #7C0704;        /*  9.0:1 on that */
	--lg-ok-bg: #DCEED8;
	--lg-ok-ink: #0A3B1C;
	--lg-track: rgba(17, 11, 4, .16);
	--lg-str-red: #8E0805;
	--lg-str-orange: #7A4308;
	--lg-str-blue: #1F4A5E;
	--lg-str-green: #0A4A22;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--lg-scheme: dark;
		--lg-ground: #110B04;
		--lg-veil: rgba(10, 40, 23, .70);
		--lg-vignette: rgba(17, 11, 4, .94);
		--lg-poppy-opacity: .62;

		--lg-card: rgba(17, 11, 4, .86);
		--lg-card-edge: rgba(241, 187, 98, .55);
		--lg-card-edge-inner: rgba(241, 187, 98, .26);
		--lg-card-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 2px 10px rgba(0, 0, 0, .5);

		--lg-ink: #FCECB8;            /* 15.4:1 on the card */
		--lg-ink-soft: #E4D3A3;       /* 12.2:1 */
		--lg-link: #F1BB62;           /* 10.4:1 */
		--lg-deco: #F1BB62;

		--lg-input-bg: rgba(252, 236, 184, .08);
		--lg-input-edge: rgba(241, 187, 98, .62);
		--lg-placeholder: #B7A780;    /*  6.3:1 on the field */
		--lg-icon: #D9C58E;
		--lg-focus: #FCECB8;

		--lg-btn: #F1BB62;
		--lg-btn-hover: #F79518;
		--lg-btn-ink: #110B04;        /* 11.2:1, 8.6:1 hovered */
		--lg-btn-off: rgba(252, 236, 184, .14);
		--lg-btn-off-ink: #D9C58E;
		--lg-alt-edge: rgba(241, 187, 98, .65);
		--lg-alt-hover: rgba(241, 187, 98, .14);

		--lg-err-bg: rgba(171, 10, 6, .38);
		--lg-err-ink: #FFD9CF;        /* 11.3:1 on that over the card */
		--lg-ok-bg: rgba(10, 40, 23, .9);
		--lg-ok-ink: #BDEBC9;
		--lg-track: rgba(252, 236, 184, .22);
		--lg-str-red: #FF9F92;
		--lg-str-orange: #FFC27A;
		--lg-str-blue: #A5D0EA;
		--lg-str-green: #A8E2B8;
	}
}
:root[data-theme="dark"] {
	--lg-scheme: dark;
	--lg-ground: #110B04;
	--lg-veil: rgba(10, 40, 23, .70);
	--lg-vignette: rgba(17, 11, 4, .94);
	--lg-poppy-opacity: .62;

	--lg-card: rgba(17, 11, 4, .86);
	--lg-card-edge: rgba(241, 187, 98, .55);
	--lg-card-edge-inner: rgba(241, 187, 98, .26);
	--lg-card-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 2px 10px rgba(0, 0, 0, .5);

	--lg-ink: #FCECB8;
	--lg-ink-soft: #E4D3A3;
	--lg-link: #F1BB62;
	--lg-deco: #F1BB62;

	--lg-input-bg: rgba(252, 236, 184, .08);
	--lg-input-edge: rgba(241, 187, 98, .62);
	--lg-placeholder: #B7A780;
	--lg-icon: #D9C58E;
	--lg-focus: #FCECB8;

	--lg-btn: #F1BB62;
	--lg-btn-hover: #F79518;
	--lg-btn-ink: #110B04;
	--lg-btn-off: rgba(252, 236, 184, .14);
	--lg-btn-off-ink: #D9C58E;
	--lg-alt-edge: rgba(241, 187, 98, .65);
	--lg-alt-hover: rgba(241, 187, 98, .14);

	--lg-err-bg: rgba(171, 10, 6, .38);
	--lg-err-ink: #FFD9CF;
	--lg-ok-bg: rgba(10, 40, 23, .9);
	--lg-ok-ink: #BDEBC9;
	--lg-track: rgba(252, 236, 184, .22);
	--lg-str-red: #FF9F92;
	--lg-str-orange: #FFC27A;
	--lg-str-blue: #A5D0EA;
	--lg-str-green: #A8E2B8;
}

/* ------------------------------------------------------------------ ground
   The whole page, not the card. Tiled texture under a tint, under a vignette
   that pulls the eye to the middle. Decoration only: the form never sits
   directly on it. */

/* On <html>, not <body>: the sitewide dark rule paints <body> a flat colour,
   and a tall page (/signup) would otherwise show the texture for one screen
   and black under it. The canvas takes <html>'s background whole. */
html:has(.page-card, #su) {
	color-scheme: var(--lg-scheme);
	background:
		radial-gradient(ellipse 85% 75% at 50% 46%, transparent 0%, var(--lg-vignette) 100%),
		linear-gradient(var(--lg-veil), var(--lg-veil)),
		url(/assets/foodservice/brand/gg-texture.webp) center top / 420px auto repeat,
		var(--lg-ground);
}

html:root:root body:has(.page-card, #su) {
	min-height: 100vh;
	min-height: 100svh;
	background: transparent;
}

/* The poppies. Behind the card, never in the way, and only where there is
   room for them to be seen. */
body:has(.page-card, #su)::before,
body:has(.page-card, #su)::after {
	content: "";
	display: none;
	position: fixed;
	bottom: -5vw;
	width: clamp(190px, 24vw, 360px);
	aspect-ratio: 1;
	background: center / contain no-repeat;
	opacity: var(--lg-poppy-opacity);
	/* the pictures are square with their own dark ground; feather them into
	   the page rather than leave a visible edge */
	-webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
	pointer-events: none;
	z-index: 0;
}
body:has(.page-card, #su)::before { left: -4vw; background-image: url(/assets/foodservice/brand/gg-poppy-a.webp); }
body:has(.page-card, #su)::after { right: -4vw; background-image: url(/assets/foodservice/brand/gg-poppy-b.webp); }
@media (min-width: 640px) {
	body:has(.page-card, #su)::before,
	body:has(.page-card, #su)::after { display: block; }
}

/* Frappe's wrapper keeps a 60px top padding and a calc() min-height meant for
   a page with a footer. Centre the card in the window instead. */
body:has(.page-card) .page-content-wrapper {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 14px;
}
body:has(.page-card) .page-content-wrapper > main,
body:has(.page-card) .page-content-wrapper .page_content,
body:has(.page-card) .page-content-wrapper .page_content > div { width: 100%; }
body:has(.page-card) .page-header-wrapper,
body:has(.page-card) .page-breadcrumbs,
body:has(.page-card) .page-footer { display: none; }

/* ------------------------------------------------------------------- card */

:root .for-login .page-card,
:root .for-forgot .page-card,
:root .for-signup .page-card,
:root .for-email-login .page-card,
:root .for-login-with-email-link .page-card,
:root .for-reset-password .page-card {
	position: relative;
	width: 100%;
	max-width: 456px;
	min-height: 0;
	margin: 0 auto;
	padding: 26px 24px 28px;
	gap: 20px;
	border: 1px solid var(--lg-card-edge);
	border-radius: 14px;
	background: var(--lg-card);
	color: var(--lg-ink);
	box-shadow:
		var(--lg-card-shadow),
		inset 0 0 0 5px transparent,
		inset 0 0 0 6px var(--lg-card-edge-inner);
	-webkit-backdrop-filter: blur(10px) saturate(1.15);
	backdrop-filter: blur(10px) saturate(1.15);
	font-family: var(--lg-serif);
}

@media (prefers-reduced-motion: no-preference) {
	:root .for-login .page-card,
	:root .for-forgot .page-card,
	:root .for-signup .page-card,
	:root .for-email-login .page-card,
	:root .for-login-with-email-link .page-card,
	:root .for-reset-password .page-card { animation: lg-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes lg-rise {
		from { opacity: 0; transform: translateY(14px); }
		to { opacity: 1; transform: none; }
	}
}
@media (prefers-reduced-motion: reduce) {
	.invalid-login { animation: none !important; }
}

/* the artwork: a poster above the form on a phone, beside it on a desk */
:root:root:root .page-card .page-card-head {
	align-items: center;
	gap: 18px;
}
:root:root:root .page-card .page-card-head img.app-logo {
	/* the flyer, whatever src the template printed (login_signup.js also sets
	   the address and the alt text; this is the no-flash half of that) */
	content: url(/assets/foodservice/brand/golden-guild-flyer.webp);
	display: block;
	width: min(300px, 78%);
	max-width: 100%;
	max-height: none;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	box-shadow:
		0 0 0 1px var(--lg-card-edge),
		0 14px 32px rgba(0, 0, 0, .42);
}
:root:root:root .page-card .page-card-head-text { align-items: center; text-align: center; }

:root:root:root .page-card .page-card-head h4 {
	font-family: var(--lg-display);
	font-size: clamp(26px, 6.4vw, 31px);
	/* Yeseva One has one weight; asking for bold would only smear it */
	font-weight: 400;
	letter-spacing: .005em;
	line-height: 1.12;
	color: var(--lg-ink);
}
:root:root:root .page-card .page-card-head h4::after {
	content: "";
	display: block;
	width: 72px;
	height: 2px;
	margin: 12px auto 0;
	background: linear-gradient(90deg, transparent, var(--lg-deco), transparent);
}
:root:root:root .page-card .page-card-subtitle {
	font-family: var(--lg-serif);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: .01em;
	color: var(--lg-ink-soft);
}

/* desk: poster on the left, the form on the right */
@media (min-width: 960px) {
	:root .for-login .page-card,
	:root .for-forgot .page-card,
	:root .for-signup .page-card,
	:root .for-email-login .page-card,
	:root .for-login-with-email-link .page-card,
	:root .for-reset-password .page-card {
		max-width: 900px;
		min-height: 472px;
		padding: 28px 32px 28px calc(28px + 416px + 40px);
		justify-content: center;
	}
	:root:root:root .page-card .page-card-head { align-items: stretch; }
	:root:root:root .page-card .page-card-head img.app-logo {
		position: absolute;
		left: 28px;
		top: 50%;
		transform: translateY(-50%);
		width: 416px;
		max-width: none;
	}
	:root:root:root .page-card .page-card-head-text { align-items: flex-start; text-align: left; }
	:root:root:root .page-card .page-card-head h4::after { margin-left: 0; margin-right: 0; background: linear-gradient(90deg, var(--lg-deco), transparent); }
}

@media (max-width: 575.98px) {
	:root .for-login .page-card,
	:root .for-forgot .page-card,
	:root .for-signup .page-card,
	:root .for-email-login .page-card,
	:root .for-login-with-email-link .page-card,
	:root .for-reset-password .page-card {
		min-height: 0;
		border-radius: 14px;
		border: 1px solid var(--lg-card-edge);
		padding: 22px 20px 26px;
	}
	:root:root:root .page-card .page-card-head img.app-logo { width: min(270px, 74%); }
	/* the light/dark pill is fixed in the top right corner; start below it */
	body:has(.page-card) .page-content-wrapper { padding: 58px 12px 24px; align-items: flex-start; }
}

/* ------------------------------------------------------------------ fields */

:root:root:root .page-card .page-card-body { gap: 16px; }

:root:root:root .page-card label,
:root:root:root .page-card .form-label {
	font-family: var(--lg-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--lg-ink);
}

:root:root:root .page-card .page-card-body input[type="text"],
:root:root:root .page-card .page-card-body input[type="email"],
:root:root:root .page-card .page-card-body input[type="password"] {
	height: 46px;
	min-height: 46px;
	padding-top: 8px;
	padding-bottom: 8px;
	border: 1px solid var(--lg-input-edge);
	border-radius: 8px;
	background-color: var(--lg-input-bg);
	color: var(--lg-ink);
	font-family: inherit;
	font-size: 16px;
	box-shadow: none;
	transition: border-color .12s ease, box-shadow .12s ease;
}
:root:root:root .page-card .page-card-body ::placeholder { color: var(--lg-placeholder); opacity: 1; }
:root:root:root .page-card .page-card-body input:hover { border-color: var(--lg-link); }
:root:root:root .page-card .page-card-body input:focus,
:root:root:root .page-card .page-card-body input:focus-visible {
	outline: 3px solid var(--lg-focus);
	outline-offset: 2px;
	border-color: var(--lg-focus);
	box-shadow: none;
}
/* the browser's own autofill paints a pale field that a dark card cannot
   take; paint ours over it instead */
:root:root:root .page-card input:-webkit-autofill,
:root:root:root .page-card input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--lg-ink);
	caret-color: var(--lg-ink);
	-webkit-box-shadow: 0 0 0 60px var(--lg-card) inset;
	box-shadow: 0 0 0 60px var(--lg-card) inset;
	border-color: var(--lg-input-edge);
}
:root:root:root .page-card .page-card-body .field-icon,
:root:root:root .page-card .page-card-body .toggle-password { fill: var(--lg-icon); }
:root:root:root .page-card .page-card-body .toggle-password:hover { fill: var(--lg-link); }

:root:root:root .page-card .page-card-body.invalid input[type="text"],
:root:root:root .page-card .page-card-body.invalid input[type="email"],
:root:root:root .page-card .page-card-body.invalid input[type="password"],
:root:root:root .page-card .form-group.invalid input[type="text"],
:root:root:root .page-card .form-group.invalid input[type="email"],
:root:root:root .page-card .form-group.invalid input[type="password"] { border-color: var(--lg-str-red); }

/* messages */
:root:root:root .page-card .login-error-banner,
:root:root:root .page-card .login-success-banner {
	padding: 10px 12px;
	border-radius: 8px;
	font-family: var(--lg-serif);
	font-size: 15px;
	line-height: 1.35;
}
:root:root:root .page-card .login-error-banner { background-color: var(--lg-err-bg); color: var(--lg-err-ink); }
:root:root:root .page-card .login-error-banner svg { fill: var(--lg-err-ink); }
:root:root:root .page-card .login-success-banner { background-color: var(--lg-ok-bg); color: var(--lg-ok-ink); }
:root:root:root .page-card .login-success-banner svg { fill: var(--lg-ok-ink); }
:root:root:root .page-card .field-error,
:root:root:root .page-card .password-mismatch-message { color: var(--lg-str-red); font-family: var(--lg-serif); }
:root:root:root .page-card .password-hint,
:root:root:root .page-card .password-strength-message,
:root:root:root .page-card .page-card-actions .resend-link,
:root:root:root .page-card .page-card-actions .resend-link a {
	font-family: var(--lg-serif);
	color: var(--lg-ink-soft);
}
:root:root:root .page-card .password-hint svg { fill: var(--lg-icon); }

:root:root:root .page-card .password-strength-bar-track { background: var(--lg-track); }
:root:root:root .page-card .password-strength-label.strength-red { color: var(--lg-str-red); }
:root:root:root .page-card .password-strength-label.strength-orange { color: var(--lg-str-orange); }
:root:root:root .page-card .password-strength-label.strength-blue { color: var(--lg-str-blue); }
:root:root:root .page-card .password-strength-label.strength-green { color: var(--lg-str-green); }
:root:root:root .page-card .password-strength-bar-fill.strength-red { background: var(--lg-str-red); }
:root:root:root .page-card .password-strength-bar-fill.strength-orange { background: var(--lg-str-orange); }
:root:root:root .page-card .password-strength-bar-fill.strength-blue { background: var(--lg-str-blue); }
:root:root:root .page-card .password-strength-bar-fill.strength-green { background: var(--lg-str-green); }

/* ------------------------------------------------------------------- links */

:root:root:root .page-card .forgot-password-message > *,
:root:root:root .page-card .forgot-password-message a,
:root:root:root .page-card a[href*="forgot"],
:root:root:root .page-card .sign-up-message,
:root:root:root .page-card .sign-up-message a,
#fs-signup-link,
#fs-signup-link a {
	font-family: var(--lg-serif);
	font-size: 15px;
	letter-spacing: .01em;
}
:root:root:root .page-card .forgot-password-message a,
:root:root:root .page-card a[href*="forgot"],
:root:root:root .page-card .sign-up-message a,
#fs-signup-link a {
	color: var(--lg-link);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	font-weight: 600;
}
:root:root:root .page-card .forgot-password-message a:hover,
:root:root:root .page-card .sign-up-message a:hover,
#fs-signup-link a:hover { text-decoration-thickness: 2px; }
:root:root:root .page-card a:focus-visible,
#fs-signup-link a:focus-visible {
	outline: 3px solid var(--lg-focus);
	outline-offset: 3px;
	border-radius: 3px;
}
:root:root:root .page-card .sign-up-message,
#fs-signup-link { color: var(--lg-ink-soft); text-align: center; }

/* login_signup.js's two notices, now inside the card */
#fs-signup-link { margin: 0; }
#fs-reset-notice {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--lg-err-bg);
	color: var(--lg-err-ink);
	font-family: var(--lg-serif);
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
}

/* ----------------------------------------------------------------- buttons
   Written one class deeper than Frappe's own (login.bundle.css) so they win
   whatever order the two sheets load in, including every hover/focus state
   that sheet restyles. */

:root body .page-card .page-card-actions .btn-login,
:root body .page-card .page-card-actions .btn-ldap-login,
:root body .page-card .page-card-actions .btn-signup {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--lg-btn);
	color: var(--lg-btn-ink);
	font-family: var(--lg-serif);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.1;
	box-shadow: none;
	transition: background-color .12s ease;
}
:root body .page-card .page-card-actions .btn-login:hover,
:root body .page-card .page-card-actions .btn-login:active,
:root body .page-card .page-card-actions .btn-ldap-login:hover,
:root body .page-card .page-card-actions .btn-signup:not(:disabled):hover,
:root body .page-card .page-card-actions .btn-signup:not(:disabled):active {
	background: var(--lg-btn-hover);
	color: var(--lg-btn-ink);
	border-color: transparent;
	box-shadow: none;
}
:root body .page-card .page-card-actions .btn-login:focus,
:root body .page-card .page-card-actions .btn-signup:not(:disabled):focus {
	background: var(--lg-btn);
	color: var(--lg-btn-ink);
	box-shadow: none;
}
:root body .page-card .page-card-actions .btn-login:focus-visible,
:root body .page-card .page-card-actions .btn-signup:focus-visible,
:root body .page-card .page-card-actions .btn-login-option:focus-visible {
	outline: 3px solid var(--lg-focus);
	outline-offset: 3px;
}
:root body .page-card .page-card-actions .btn-signup:disabled {
	background: var(--lg-btn-off);
	color: var(--lg-btn-off-ink);
	opacity: 1;
}

:root body .page-card .page-card-actions .btn-login-option {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--lg-alt-edge);
	border-radius: 8px;
	background: transparent;
	color: var(--lg-ink);
	font-family: var(--lg-serif);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	box-shadow: none;
}
:root body .page-card .page-card-actions .btn-login-option:hover {
	background: var(--lg-alt-hover);
	border-color: var(--lg-alt-edge);
	color: var(--lg-ink);
}

/* ------------------------------------------------- the light/dark control
   theme.js builds a small fixed pill on these two pages. It carries its own
   surface (foodservice.css); here it only needs to stay above the poppies. */
.fs-theme-standalone { z-index: 1000; }

/* ------------------------------------------------------- /signup
   The request form is our own page, on the ordinary web template (navbar,
   footer, the app's own colours), so it keeps all of that. What it shares
   with the sign-in card is the ground behind it (above) and the poster above
   the form. The form itself becomes a panel in the page's OWN tokens (--card,
   --line, --tray: the light and dark sets signup.html already defines), so
   every text pair inside it is the one that page already measured. */
:root:root:root .su {
	position: relative;
	z-index: 1;
	margin-top: 26px;
	margin-bottom: 44px;
	padding: 26px 26px 34px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: color-mix(in srgb, var(--card) 95%, transparent);
	box-shadow: 0 18px 50px rgba(17, 11, 4, .22), 0 2px 8px rgba(17, 11, 4, .12);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
:root:root:root .su::before {
	content: "";
	display: block;
	width: min(240px, 64%);
	aspect-ratio: 1;
	margin: 0 auto 22px;
	border-radius: 8px;
	background: url(/assets/foodservice/brand/golden-guild-flyer.webp) center / cover no-repeat;
	box-shadow: 0 0 0 1px rgba(174, 94, 36, .55), 0 12px 28px rgba(0, 0, 0, .34);
}
:root:root:root .su h1 { font-family: var(--lg-display); font-weight: 400; }
:root:root:root .su h2 { font-family: var(--lg-heading); }
:root:root:root .su h1 { text-align: center; letter-spacing: -.005em; }
:root:root:root .su .sub { text-align: center; }
:root:root:root .su .kid { background: var(--tray); }
@media (max-width: 575.98px) {
	:root:root:root .su { margin: 14px 10px 32px; padding: 20px 16px 28px; }
}

/* ------------------------------------------------------ the house seal
   The one thing in this file that is not the sign-in pages: the seal
   (public/images/logo.svg, the round GG mark) on every website page. It is
   here, and not in foodservice.css, because this sheet is web-only
   (web_include_css) while foodservice.css is loaded on the desk as well, and
   the desk has a logo of its own. /login and /update-password draw no navbar,
   so the first rule never reaches them; they wear the flyer instead.

   The picture is a 128px raster in an SVG wrapper, so it is never drawn
   bigger than 48 CSS px. A background on a pseudo-element, not an <img>:
   it is decoration beside the trading name the link already says, so a
   screen reader has nothing extra to read. */

/* the top bar: the seal before the trading name. :not(.navbar-home) is the
   desk's brand, should this sheet ever reach it; :not(:has(img)) is a site
   whose Website Settings show a banner picture instead of the name, which
   needs no second mark */
.navbar .navbar-brand:not(.navbar-home):not(:has(img)) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.navbar .navbar-brand:not(.navbar-home):not(:has(img))::before {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	background: url(/assets/foodservice/images/logo.svg) center / contain no-repeat;
}
/* a 360px phone: the name, the seal and the menu button share one row, so the
   seal and the name each give a little rather than the name wrapping */
@media (max-width: 379.98px) {
	.navbar .navbar-brand:not(.navbar-home):not(:has(img)) { gap: 8px; font-size: 16px; }
	.navbar .navbar-brand:not(.navbar-home):not(:has(img))::before { width: 26px; height: 26px; }
}

/* the help documents: the seal above the masthead's first line. Every source
   in docs/ opens its <header> with an .eyebrow (the walkthrough's inside a
   .wrap), and the build scopes them all under .fs-help-doc */
.fs-help-doc header .eyebrow:first-child::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 0 14px;
	background: url(/assets/foodservice/images/logo.svg) center / contain no-repeat;
}

/* Print: the page is a form, and nobody prints it. But if they do, no ink
   goes on a dark ground. */
@media print {
	body:has(.page-card, #su) { background: #fff; }
	body:has(.page-card, #su)::before, body:has(.page-card, #su)::after { display: none; }
}
