.auth-shell {
	display: grid;
	min-height: 100vh;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	padding-bottom: clamp(3rem, 6vw, 4rem);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 236, 226, 0.72)),
		var(--color-bg);
}

.auth-stage {
	display: grid;
	width: min(100%, 62rem);
	min-height: min(42rem, calc(100vh - 2rem));
	border: 1px solid var(--color-border);
	border-radius: calc(var(--radius) + 4px);
	background: var(--color-surface);
	box-shadow: 0 28px 70px rgba(36, 22, 15, 0.14), 0 2px 8px rgba(36, 22, 15, 0.05);
	overflow: hidden;
}

.auth-visual {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(1rem, 1fr) auto;
	gap: var(--space-8);
	min-height: 16rem;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	overflow: hidden;
	background:
		linear-gradient(145deg, rgba(234, 208, 181, 0.2), rgba(29, 20, 16, 0) 42%),
		#1d1410;
	color: #ffffff;
}

.auth-visual::before {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(29, 20, 16, 0.08), rgba(29, 20, 16, 0.82)),
		linear-gradient(135deg, rgba(234, 208, 181, 0.22), rgba(29, 20, 16, 0) 52%);
	content: "";
	z-index: 1;
}

.auth-visual__mark {
	position: absolute;
	top: -7rem;
	right: -8rem;
	width: min(34rem, 78vw);
	height: auto;
	filter: invert(1);
	opacity: 0.1;
	z-index: 0;
}

.auth-visual__logo {
	position: relative;
	z-index: 2;
	width: min(100%, 15.5rem);
	height: auto;
}

.auth-visual__copy {
	position: relative;
	z-index: 2;
	display: grid;
	gap: var(--space-3);
	max-width: 22rem;
}

.auth-visual__eyebrow,
.auth-visual__title,
.auth-panel p {
	margin: 0;
}

.auth-visual__eyebrow {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0;
	text-transform: uppercase;
}

.auth-visual__title {
	color: #ffffff;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 850;
	line-height: 0.98;
}

.auth-panel {
	display: grid;
	align-content: center;
	padding: clamp(1.5rem, 5vw, 3.25rem);
}

.auth-brand {
	display: grid;
	gap: var(--space-6);
	margin-bottom: var(--space-5);
}

.auth-brand__copy {
	min-width: 0;
}

.auth-brand__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 1.7rem;
	margin: 0 0 var(--space-2);
	padding: 0 var(--space-3);
	border: 1px solid rgba(203, 163, 123, 0.36);
	border-radius: var(--radius);
	background: var(--color-primary-soft);
	color: var(--color-muted-strong);
	font-size: 0.75rem;
	font-weight: 850;
	letter-spacing: 0;
	text-transform: uppercase;
}

.auth-panel--login .auth-brand__eyebrow {
	margin-bottom: var(--space-4);
}

.auth-brand__title {
	margin: 0;
	color: var(--color-text);
	font-size: clamp(2.15rem, 4vw, 3.35rem);
	line-height: 0.96;
}

.auth-logo {
	width: min(100%, 18.5rem);
	height: auto;
}

.auth-tagline {
	max-width: 27rem;
	color: var(--color-muted);
	font-size: 1.08rem;
	line-height: 1.55;
}

.auth-actions {
	margin-top: var(--space-8);
}

.auth-credit {
	position: fixed;
	right: var(--space-4);
	bottom: var(--space-3);
	left: var(--space-4);
	color: var(--color-muted);
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
}

.auth-credit strong {
	color: var(--color-muted-strong);
	font-weight: 800;
}

.auth-panel .button {
	width: 100%;
	justify-content: center;
	text-align: center;
	font-weight: 800;
}

.auth-google-button {
	position: relative;
	min-height: 3.2rem;
	border-color: rgba(36, 22, 15, 0.16);
	background: var(--color-text);
	color: #ffffff;
	box-shadow: 0 14px 24px rgba(36, 22, 15, 0.14);
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-google-button:hover,
.auth-google-button:focus-visible {
	border-color: rgba(36, 22, 15, 0.28);
	background: #3a281d;
	color: #ffffff;
	box-shadow: 0 18px 30px rgba(36, 22, 15, 0.18);
	transform: translateY(-1px);
}

.auth-google-button__icon {
	padding: 0.14rem;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: #ffffff;
	flex: 0 0 auto;
}

.auth-return-button {
	min-height: 3rem;
}

.auth-note {
	margin-top: var(--space-4);
	color: var(--color-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.auth-panel .flash-stack {
	margin: var(--space-5) 0 0;
}

.auth-panel .flash {
	border-radius: var(--radius);
}

@media (min-width: 820px) {
	.auth-stage {
		grid-template-columns: minmax(18rem, 0.92fr) minmax(24rem, 1.08fr);
	}
}

@media (max-width: 819px) {
	.auth-stage {
		min-height: 0;
	}

	.auth-visual {
		min-height: 12rem;
	}

	.auth-visual__title {
		max-width: 18rem;
	}
}

@media (max-width: 640px) {
	.auth-shell {
		padding: var(--space-3);
	}

	.auth-brand {
		gap: var(--space-5);
		margin-bottom: var(--space-4);
	}

	.auth-logo {
		width: min(100%, 15.5rem);
	}

	.auth-tagline {
		font-size: 1rem;
	}

	.auth-actions {
		margin-top: var(--space-6);
	}
}

@media (prefers-reduced-motion: reduce) {
	.auth-google-button {
		transition: none;
	}

	.auth-google-button:hover,
	.auth-google-button:focus-visible {
		transform: none;
	}
}
