/*
	Auth shell (Login, Forgot password, Reset password, Two-step verification).
	Light theme only. Desktop (>=960px): form on the left, garage hero photo on the right
	(URL injected from Auth.master as --auth-hero-photo, so phones never download it).

	Brand colors come from the site-wide `--color-accent*` variables (User.master.colorSchemes.css),
	so a brand change applies here too. Only neutrals are overridden below.
*/

body.auth {
	box-sizing: border-box;
	max-width: none;
	width: auto;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	min-height: 100dvh;
	color-scheme: light;
	background-color: #f3f6fb;
	color: #1c2430;

	--color-background       : #f3f6fb;
	--color-foreground       : #1c2430;
	--color-container4       : #e7eef8;
	--color-control-border   : #c5d0e0;

	/* Share of the viewport width taken by the hero on desktop; the form panel gets the rest. The loading spinner uses it too. */
	--auth-hero-basis        : 52%;
}

.authShell {
	display: flex;
	align-items: stretch;
	min-height: 100vh;
	min-height: 100dvh;
}

.authHero {
	display: none;
}

.authPanel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 1.5rem 1.25rem 1.25rem;
	overflow: auto;
}

.authPanelBody {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	justify-content: safe center;
	box-sizing: border-box;
	width: 100%;
}

.authSignUp {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 26rem;
	margin: 2.5rem 0 0;
	padding: 0.85rem 1rem;
	border: 1px solid #e1e8f2;
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: 0 16px 40px rgba( 16, 42, 84, 0.10 );
	color: #1c2430;
}
	.authSignUpCopy {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: 0.1rem;
		min-width: 0;
		margin: 0;
	}
		.authSignUpCopy strong {
			font-size: 0.9375rem;
			font-weight: 700;
			line-height: 1.3;
			color: #1c2430;
		}
		.authSignUpCopy span {
			font-size: 0.8125rem;
			font-weight: 400;
			line-height: 1.35;
			color: #4a5d78;
		}
	body.auth .authSignUp a {
		flex: 0 0 auto;
		padding: 0.5rem 0.95rem;
		border-radius: 5px;
		background-color: var(--color-accent, #1356b4);
		color: #ffffff;
		font-size: 0.875rem;
		font-weight: 700;
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
	}
		body.auth .authSignUp a:hover {
			background-color: var(--color-accent-dark, #0e3f86);
			color: #ffffff;
			text-decoration: none;
		}

.authLogo {
	display: block;
	position: relative;
	margin: 0 0 1.25rem;
	line-height: 0;
	transition: all 2s ease-in-out;
}
	.authLogo img {
		display: block;
		width: 100%;
		max-width: 17.5rem;
		height: auto;
	}
	.authLogo > span {
		position: absolute;
		cursor: pointer;
		transition: all 2s ease-in-out;
		background-image: url("/images/Logo/logoArrowOne.png");
		background-image: var(--image-logo-arrow);
		background-position: center center;
		background-repeat: no-repeat;
	}

html.sandbox body.auth .authLogo > span {
	display: none;
}

.authCard {
	box-sizing: border-box;
	width: 100%;
	max-width: 26rem;
	padding: 1.75rem 1.5rem 1.5rem;
	border: 1px solid #e1e8f2;
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: 0 16px 40px rgba( 16, 42, 84, 0.10 );
	color: #1c2430;
}

.authFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 26rem;
	margin: 1.25rem 0 0;
	padding: 0 0.25rem;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
	font-size: 0.875rem;
}

body.auth .authFooter {
	padding: 0 0.25rem;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
}

body.auth .authFooter a:not(.button),
body.auth .authCard a:not(.button) {
	color: var(--color-accent);
	font-weight: 600;
	text-decoration: none;
}
	body.auth .authFooter a:not(.button):hover,
	body.auth .authCard a:not(.button):hover {
		text-decoration: underline;
	}

@media (min-width: 960px) {
	.authHero {
		display: flex;
		flex: 1 1 var(--auth-hero-basis);
		align-items: center;
		justify-content: flex-start;
		box-sizing: border-box;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 3rem 2.5rem;
		position: sticky;
		top: 0;
		overflow: hidden;
		/* Photo URL is injected from Auth.master as --auth-hero-photo, only inside this
		   min-width query, so phones never request the file. */
		background-color: #0c3a78;
		background-image:
			linear-gradient( 90deg, rgba( 8, 32, 72, 0.55 ) 0%, rgba( 8, 32, 72, 0.28 ) 38%, rgba( 8, 32, 72, 0.05 ) 62%, transparent 100% ),
			var(--auth-hero-photo, none);
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
		color: #ffffff;
	}

	.authPanel {
		flex: 1 1 calc( 100% - var(--auth-hero-basis) );
		padding: 2.5rem 2rem;
	}

	.authHeroInner {
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 26rem;
	}

	.authHeroCopy {
		max-width: 26rem;
	}

	.authHeroKicker {
		display: inline-block;
		margin: 0 0 1rem;
		padding: 0.3rem 0.75rem;
		border: 1px solid rgba( 255, 255, 255, 0.28 );
		border-radius: 999px;
		background-color: rgba( 255, 255, 255, 0.10 );
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: rgba( 255, 255, 255, 0.92 );
	}

	.authHeroText {
		margin: 0;
		max-width: 24rem;
		font-size: 1.0625rem;
		line-height: 1.55;
		color: rgba( 255, 255, 255, 0.92 );
		text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.30 );
	}

	.authHeroFeatures {
		display: flex;
		flex-direction: column;
		gap: 0.85rem;
		margin: 1.75rem 0 0;
		padding: 0;
		list-style: none;
	}
		.authHeroFeatures > li {
			display: flex;
			align-items: center;
			gap: 0.75rem;
			margin: 0;
			padding: 0;
			font-size: 0.9375rem;
			line-height: 1.35;
			color: rgba( 255, 255, 255, 0.94 );
		}

	.authHeroFeatureIcon {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 2.25rem;
		height: 2.25rem;
		border-radius: 5px;
		background-color: rgba( 255, 255, 255, 0.14 );
		color: #ffffff;
	}
		.authHeroFeatureIcon svg {
			display: block;
		}
}

body.auth .authCard h1,
body.auth .authCard h2,
body.auth .authCard h3 {
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-shadow: none;
	color: var(--color-accent-dark);
}

body.auth .authHeroTitle {
	/* Keep hero heading white; do not inherit .authCard heading color. */
	margin: 0 0 1rem;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #ffffff;
	text-wrap: balance;
	text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.35 );
}

body.auth .authCard section,
body.auth .authCard section.pageHeader {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
}
body.auth .authCard section.pageHeader {
	margin: 0 0 1.5rem;
}
	body.auth .authCard section.pageHeader > h1,
	body.auth .authCard section.pageHeader > h2 {
		font-size: 1.75rem;
		line-height: 1.2;
	}

body.auth .authCard fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
	min-inline-size: 0;
}

body.auth .authCard legend {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

body.auth .authCard .field {
	max-width: none;
	margin: 0 0 1rem;
}

body.auth .authCard .field > label {
	display: block;
	margin: 0 0 0.4rem;
	float: none;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1c2430;
}

body.auth .authCard .field > label.required > span {
	display: none;
}

body.auth .authCard .authIntro,
body.auth .authCard .fieldHint {
	margin: 0 0 1rem;
	color: #4a5d78;
	font-size: 0.9375rem;
	line-height: 1.45;
	font-weight: 400;
	max-width: none;
}

body.auth .authCard .field > .fieldHint {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
}

.authInput {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	padding: 0 0.65rem 0 0.75rem;
	border: 1px solid #c5d0e0;
	border-radius: 5px;
	background-color: #ffffff;
}

body.auth .authCard .authInput > input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.7rem 0.15rem;
	border: 0;
	border-radius: 0;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #1c2430 !important;
	font: inherit;
	font-size: 1rem;
	line-height: 1.3;
}

body.auth .authCard .authInput > input:-webkit-autofill,
body.auth .authCard .authInput > input:-webkit-autofill:focus {
	-webkit-text-fill-color: #1c2430;
	caret-color: #1c2430;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
}

body.auth .authInput input:focus,
body.auth .authInput input:focus-visible {
	outline: none;
}

body.auth .authInput:has( input:focus-visible ) {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px var(--color-accent-hover);
}

.authInputIcon {
	display: flex;
	flex: 0 0 auto;
	color: #5c7190;
}
	.authInputIcon svg {
		display: block;
	}

.authRevealPassword,
body.auth .authInput > button.toggle-password {
	box-sizing: border-box;
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	padding: 0.25rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	color: var(--color-accent);
	line-height: 0;
}
	body.auth .authInput > button.toggle-password {
		padding: 0.25rem 0.45rem;
		font-size: 0.875rem;
		font-weight: 600;
		line-height: 1.2;
	}
	body.auth .authRevealPassword:not(:disabled):hover,
	body.auth .authInput > button.toggle-password:not(:disabled):hover {
		background-color: var(--color-accent-pale);
		color: var(--color-accent-dark);
		box-shadow: none;
	}

.authRevealPassword .authIconEyeOff {
	display: none;
}
.authRevealPassword.isRevealed .authIconEye {
	display: none;
}
.authRevealPassword.isRevealed .authIconEyeOff {
	display: block;
}

body.auth .authCard .capsLockHint {
	min-height: 1.2em;
	margin: 0.35rem 0 0;
	padding: 0;
	color: #8a5a12;
	font-size: 0.8125rem;
	line-height: 1.3;
}
	body.auth .authCard .capsLockHint:empty {
		display: none;
	}

.authOptions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 1rem;
}

.authOptions > .authForgot {
	margin: 0;
	flex: 0 0 auto;
	text-align: right;
	white-space: nowrap;
}

.authForgot {
	margin: 0;
	font-size: 0.875rem;
}

body.auth .authCard label.checkboxLabel {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.15rem 0.35rem 0.15rem 0;
	border-radius: 6px;
	font-size: 0.9375rem;
	font-weight: 600;
}
	body.auth .authCard label.checkboxLabel > input[type=checkbox] {
		width: 1rem;
		height: 1rem;
		margin: 0;
		accent-color: var(--color-accent);
	}
	body.auth .authCard label.checkboxLabel:hover {
		background-color: transparent;
		color: #1c2430;
	}

body.auth .authCard .actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	margin: 1.5rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
}
	body.auth .authCard .actions > button[type=submit],
	body.auth .authCard .actions > a.button {
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding: 0.6rem 1rem;
		/* Border width, radius, colors, shadow and :hover/:focus states are inherited from the site-wide buttons (Buttons2.css). */
		font-size: 1rem;
		line-height: 1.2;
		text-align: center;
	}

body.auth .authCard .authPasswordTools > button {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.55rem 1rem;
	background-color: #ffffff;
	color: var(--color-accent);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}
	body.auth .authCard .authPasswordTools > button:not(:disabled):hover {
		background-color: var(--color-accent-pale);
		border-color: var(--color-accent);
		color: var(--color-accent-dark);
		box-shadow: none;
	}

.authPasswordTools {
	margin-top: 0.65rem;
}

body.auth .authCard .authBackLink {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	text-align: center;
	color: #4a5d78;
}

body.auth .authCard ul.interPageMessages {
	display: block;
	align-items: stretch;
	box-sizing: border-box;
	margin: 0 0 1.25rem;
	padding: 0.85rem 2.5rem 0.85rem 1rem;
	/* Follow the site accent (a shop theme can be green, blue, ...) instead of a fixed blue,
	   and keep the text neutral so it doesn't clash with the tinted background. */
	border: 1px solid var(--color-accent-hover);
	border-left: 4px solid var(--color-accent);
	border-radius: 5px;
	background-color: var(--color-accent-pale);
	color: #1c2430;
	box-shadow: none;
	position: relative;
}
	body.auth .authCard ul.interPageMessages > li {
		margin: 0;
		padding: 0;
		font-size: 0.9375rem;
		font-weight: 500;
		line-height: 1.45;
	}
	body.auth .authCard ul.interPageMessages > li.closeInterPageMessages {
		position: absolute;
		top: 0.35rem;
		right: 0.35rem;
		margin: 0;
		padding: 0;
	}
		body.auth .authCard ul.interPageMessages > li.closeInterPageMessages > button {
			box-sizing: border-box;
			width: 1.75rem;
			height: 1.75rem;
			margin: 0;
			padding: 0;
			border: 0;
			border-radius: 8px;
			background: transparent;
			background-color: transparent;
			box-shadow: none;
			color: #5b6676;
			font-size: 1.25rem;
			font-weight: 600;
			line-height: 1;
			cursor: pointer;
		}
		body.auth .authCard ul.interPageMessages > li.closeInterPageMessages > button:not(:disabled):hover {
			background-color: var(--color-accent-hover);
			color: var(--color-accent-dark);
			box-shadow: none;
		}

body.auth .authCard div.errors,
body.auth .authCard .validationSummary {
	margin: 0 0 1rem;
}

body.auth .authCard p.errors,
body.auth .authCard span.errors {
	display: block;
	margin: 0.35rem 0 0;
}

body.auth .authCard small {
	display: block;
	margin-top: 0.35rem;
	color: #4a5d78;
	line-height: 1.4;
}

body.auth a:focus-visible,
body.auth button:focus-visible,
body.auth input:focus-visible,
body.auth .authLogo:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

body.auth .authInput input:focus-visible {
	outline: none;
}

/*
	Form submit spinner is appended to <body> and centered in the viewport. On the
	split auth layout that mid-point sits over the dark hero photo. Pin it to the
	form half instead so the default ring stays readable on the light panel.
*/
@media (min-width: 960px) {
	body.auth .loadingSpinner {
		/* The form panel is the remainder after the hero (see --auth-hero-basis). */
		left: 0;
		right: var(--auth-hero-basis);
	}

	/* Defensive: never show the marketing hero if an auth page is ever hosted in a popup. */
	html.isPopup body.auth .authHero {
		display: none;
	}
}

body.auth .authDivider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.25rem 0 1rem;
	color: #5b6676;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: lowercase;
}

body.auth .authDivider::before,
body.auth .authDivider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #d5dbe3;
}

body.auth .authCard a.googleButton {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid #747775;
	border-radius: 4px;
	background: #fff;
	background-color: #fff;
	box-shadow: none;
	color: #1f1f1f;
	font-family: Roboto, Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
}

body.auth .authCard a.googleButton:hover {
	background: #f8f9fa;
	background-color: #f8f9fa;
	color: #1f1f1f;
	text-decoration: none;
}

body.auth .authCard a.googleButton svg {
	flex: 0 0 auto;
	display: block;
}

