/* Guest screens: login, register, lost password.
   Prefix every rule with de-auth- so they are easy to find and tweak. */

.de-auth-page {
	--de-auth-gold: #d4b56a;
	--de-auth-gold-dim: #a88746;
	--de-auth-blood: #a71f2e;
	--de-auth-blood-hot: #be2838;
	--de-auth-ink: #efe8dc;
	--de-auth-muted: #8e877c;
	--de-auth-line: rgba(199, 162, 86, 0.38);
	--de-auth-card-bg: #12141a;
	--de-auth-card-width: 420px;
	--de-auth-card-pad: 28px;
	--de-auth-card-radius: 2px;
	--de-auth-bg-image: url("../images/index/landing-bg.jpg");
	--de-auth-bg-position: 32% 46%;
	--de-auth-font: "Libre Franklin", "Franklin Gothic Medium", "Segoe UI", system-ui, sans-serif;
	--de-auth-display: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
	--de-auth-body: "Newsreader", Georgia, "Times New Roman", serif;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
	font-family: var(--de-auth-font);
	color: var(--de-auth-ink);
	letter-spacing: 0;
	background: #050505;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.de-auth-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-color: #050505;
	background-image: var(--de-auth-bg-image);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: var(--de-auth-bg-position);
}

.de-auth-scrim {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(5, 5, 7, 0.18) 0%, rgba(5, 5, 7, 0.28) 42%, rgba(5, 5, 7, 0.72) 100%),
		linear-gradient(180deg, rgba(5, 5, 7, 0.2) 0%, rgba(5, 5, 7, 0.08) 36%, rgba(5, 5, 7, 0.45) 100%);
}

.de-auth-shell {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 32px 6vw 32px 24px;
}

.de-auth-hero,
.de-auth-foot {
	display: none;
}

.de-auth-card {
	width: min(100%, var(--de-auth-card-width));
	padding: var(--de-auth-card-pad) var(--de-auth-card-pad) 28px;
	background: var(--de-auth-card-bg);
	border: 1px solid var(--de-auth-line);
	border-radius: var(--de-auth-card-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.de-auth-kicker {
	margin: 0 0 8px;
	color: var(--de-auth-gold);
	font-family: var(--de-auth-display);
	font-size: 16px;
	font-weight: 500;
	font-style: italic;
	letter-spacing: 0.01em;
	text-transform: none;
}

.de-auth-title {
	margin: 0 0 8px;
	font-family: var(--de-auth-display);
	font-size: 42px;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: #fff;
	line-height: 1.05;
}

.de-auth-brand-title .de-auth-title::after {
	content: "";
	display: block;
	width: 28px;
	height: 1px;
	margin-top: 14px;
	background: var(--de-auth-gold);
}

.de-auth-masthead {
	margin: 0;
	font-family: var(--de-auth-display);
	font-size: clamp(42px, 12.5vw, 58px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 0.9;
	color: #fff;
	text-shadow: 0 2px 32px rgba(0, 0, 0, 0.8);
}

.de-auth-masthead em {
	font-style: italic;
	font-weight: 500;
}

.de-auth-masthead::after {
	content: "";
	display: block;
	width: 28px;
	height: 1px;
	margin-top: 16px;
	background: var(--de-auth-gold);
}

.de-auth-lede {
	margin: 0 0 20px;
	color: var(--de-auth-muted);
	font-family: var(--de-auth-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.de-auth-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 18px;
}

.de-auth-nav-link {
	color: var(--de-auth-muted);
	font-size: 13px;
	text-decoration: none;
	padding-bottom: 4px;
}

.de-auth-nav-link:hover {
	color: #fff;
}

.de-auth-nav-link-active {
	color: #fff;
	box-shadow: inset 0 -2px 0 var(--de-auth-gold);
}

.de-auth-form {
	margin: 0;
}

.de-auth-field {
	margin: 0 0 12px;
}

.de-auth-label {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--de-auth-muted);
}

.de-auth-input,
.de-auth-card input[type="text"],
.de-auth-card input[type="password"],
.de-auth-card input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	background: rgba(8, 9, 12, 0.88);
	color: #fff;
	font-size: 16px;
	font-family: inherit;
}

.de-auth-input:focus,
.de-auth-card input:focus {
	outline: 1px solid var(--de-auth-gold-dim);
	border-color: var(--de-auth-gold-dim);
}

.de-auth-input:-webkit-autofill,
.de-auth-card input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	caret-color: #fff;
	box-shadow: 0 0 0 1000px #0c0d10 inset;
	transition: background-color 99999s ease-out;
}

.de-auth-submit,
.de-auth-card button,
.de-auth-card input[type="submit"] {
	margin-top: 8px;
	width: 100%;
	padding: 13px 12px;
	border: 0;
	border-radius: 2px;
	background: var(--de-auth-blood);
	color: #fff;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.01em;
	text-transform: none;
	font-family: inherit;
	cursor: pointer;
}

.de-auth-submit:hover,
.de-auth-card button:hover,
.de-auth-card input[type="submit"]:hover {
	background: var(--de-auth-blood-hot);
}

.de-auth-flash {
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 2px;
	font-size: 14px;
	line-height: 1.4;
}

.de-auth-flash-error {
	color: #efe6dc;
	background: rgba(167, 31, 46, 0.2);
	border: 1px solid rgba(201, 106, 106, 0.28);
}

.de-auth-flash-ok {
	color: #c8d4c0;
	background: rgba(122, 158, 108, 0.12);
	border: 1px solid rgba(122, 158, 108, 0.28);
}

.de-auth-block {
	margin: 0 0 8px;
	font-size: 16px;
	color: var(--de-auth-ink);
}

.de-auth-block-sub,
.de-auth-hint {
	margin: 0;
	color: var(--de-auth-muted);
	font-size: 13px;
	line-height: 1.5;
}

.de-auth-hint a {
	color: var(--de-auth-gold);
	text-decoration: none;
}

.de-auth-hint a:hover {
	color: #fff;
}

/* Tablet: keep the card off the car, pull the skyline in a bit. */
@media (max-width: 960px) {
	.de-auth-page {
		--de-auth-bg-position: 48% 44%;
	}

	.de-auth-shell {
		padding: 28px 5vw;
	}

	.de-auth-scrim {
		background:
			linear-gradient(180deg, rgba(5, 5, 7, 0.28) 0%, rgba(5, 5, 7, 0.55) 100%),
			linear-gradient(90deg, rgba(5, 5, 7, 0.2) 0%, rgba(5, 5, 7, 0.55) 100%);
	}
}

/* Phone: title screen on the photo. No card, no tabs. */
@media (max-width: 720px) {
	.de-auth-page {
		--de-auth-bg-position: 30% 38%;
		overflow-y: auto;
	}

	.de-auth-shell {
		flex-direction: column;
		justify-content: flex-end;
		align-items: stretch;
		padding: 0 22px calc(22px + env(safe-area-inset-bottom, 0px));
	}

	.de-auth-hero {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		justify-content: flex-end;
		box-sizing: border-box;
		min-height: 44vh;
		padding: calc(32px + env(safe-area-inset-top, 0px)) 2px 8px;
	}

	.de-auth-page-register .de-auth-hero,
	.de-auth-page-lost .de-auth-hero {
		min-height: 22vh;
		padding-bottom: 4px;
	}

	.de-auth-hero .de-auth-kicker {
		margin-bottom: 10px;
		text-shadow: 0 1px 16px rgba(0, 0, 0, 0.9);
	}

	.de-auth-scrim {
		background:
			linear-gradient(180deg, rgba(5, 5, 7, 0.2) 0%, rgba(5, 5, 7, 0.02) 26%, rgba(5, 5, 7, 0.18) 48%, rgba(5, 5, 7, 0.78) 78%, rgba(5, 5, 7, 0.92) 100%);
	}

	.de-auth-card {
		width: 100%;
		flex: 0 0 auto;
		padding: 12px 0 0;
		background: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.de-auth-kicker-card,
	.de-auth-nav,
	.de-auth-page .de-pwa-hint {
		display: none !important;
	}

	.de-auth-brand-title .de-auth-title,
	.de-auth-page-register .de-auth-title,
	.de-auth-page-lost .de-auth-title {
		display: none;
	}

	.de-auth-title {
		font-size: 28px;
		margin-bottom: 6px;
		text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
	}

	.de-auth-lede {
		margin: 0 0 22px;
		font-size: 17px;
		color: #efe8dc;
		text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
	}

	.de-auth-field {
		margin: 0 0 16px;
	}

	.de-auth-page-register .de-auth-lede {
		margin-bottom: 14px;
	}

	.de-auth-page-register .de-auth-field {
		margin: 0 0 10px;
	}

	.de-auth-label {
		margin-bottom: 4px;
		font-size: 12px;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
		color: #cfc8bc;
		text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
	}

	.de-auth-input,
	.de-auth-card input[type="text"],
	.de-auth-card input[type="password"],
	.de-auth-card input[type="email"] {
		min-height: 44px;
		padding: 10px 0 11px;
		background: transparent;
		border: 0;
		border-bottom: 1px solid rgba(243, 239, 231, 0.38);
		border-radius: 0;
		color: #fff;
		font-size: 17px;
		caret-color: var(--de-auth-gold);
	}

	.de-auth-page-register .de-auth-input,
	.de-auth-page-register .de-auth-card input[type="text"],
	.de-auth-page-register .de-auth-card input[type="password"],
	.de-auth-page-register .de-auth-card input[type="email"] {
		min-height: 40px;
		padding: 6px 0 8px;
	}

	.de-auth-input:focus,
	.de-auth-card input:focus {
		outline: 0;
		border-bottom-color: var(--de-auth-gold);
		box-shadow: none;
	}

	.de-auth-input:-webkit-autofill,
	.de-auth-card input:-webkit-autofill {
		box-shadow: 0 0 0 1000px transparent inset;
		-webkit-box-shadow: 0 0 0 1000px transparent inset;
	}

	.de-auth-submit,
	.de-auth-card button,
	.de-auth-card input[type="submit"] {
		min-height: 50px;
		margin-top: 10px;
		letter-spacing: 0.01em;
		border-radius: 2px;
		box-shadow: none;
	}

	.de-auth-foot {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		margin: 18px 0 0;
	}

	.de-auth-foot a {
		color: #cfc8bc;
		font-size: 13px;
		letter-spacing: 0.04em;
		text-decoration: none;
		text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
	}

	.de-auth-foot a:hover {
		color: var(--de-auth-gold);
	}

	.de-auth-flash {
		background: rgba(8, 9, 12, 0.55);
	}
}

@media (max-width: 420px) {
	.de-auth-page {
		--de-auth-bg-position: 32% 34%;
	}
}

/* Short landscape phones: keep the form, drop the tall poster. */
@media (max-width: 720px) and (max-height: 560px) {
	.de-auth-hero {
		min-height: 0;
		padding-top: 16px;
		padding-bottom: 8px;
	}

	.de-auth-masthead {
		font-size: 28px;
	}

	.de-auth-kicker-card,
	.de-auth-brand-title .de-auth-title {
		display: none;
	}
}

@media (min-width: 1400px) {
	.de-auth-page {
		--de-auth-bg-position: 28% 48%;
	}

	.de-auth-shell {
		padding-right: 10vw;
	}
}

.de-pwa-hint {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--de-auth-line);
}

html.is-pwa .de-pwa-hint {
	display: none;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
	.de-auth-page {
		min-height: 100dvh;
		overscroll-behavior: none;
	}
}

.de-auth-page .de-pwa-hint {
	display: none;
}
