:root {
	--bg: #f3efe7;
	--panel: #244b35;
	--panel-deep: #1f422f;
	--green: #397447;
	--green-dark: #244b35;
	--text: #254734;
	--muted: #7b8379;
	--line: #ded6ca;
	--danger: #9c3f43;
	--danger-bg: #f6e4df;
	--success: #2c6841;
	--success-bg: #e3efe4;
	--shadow-soft: 0 20px 70px rgba(18, 45, 30, .22);
	--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
}

body {
	min-height: 100vh;
	display: grid;
	place-items: stretch;
}

body.has-login-modal {
	overflow: hidden;
}

.br-pref-large-text {
	font-size: 112.5%;
}

.br-pref-high-contrast {
	--bg: #fffaf0;
	--text: #142119;
	--muted: #4f5b52;
	--line: #b8ad9d;
}

.br-pref-reduced-motion *,
.br-pref-reduced-motion *::before,
.br-pref-reduced-motion *::after {
	scroll-behavior: auto !important;
	transition-duration: .01ms !important;
	animation-duration: .01ms !important;
}

.login-shell {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(480px, 48.6vw) 1fr;
	background: var(--bg);
}

.login-form-side {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 58px 68px 42px;
}

.top-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.brand {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	text-decoration: none;
}

.brand img {
	display: block;
	width: 154px;
	height: auto;
}

.language-switcher {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	min-height: 40px;
	border: 1px solid rgba(31, 42, 36, .12);
	border-radius: 8px;
	background: #f7f3ea;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .52);
}

.language-switcher a {
	min-width: 30px;
	min-height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	color: rgba(31, 42, 36, .68);
	text-decoration: none;
	font-size: 11px;
	font-weight: 900;
}

.language-switcher a:hover {
	color: var(--green-dark);
	background: rgba(57, 104, 72, .08);
}

.language-switcher a.is-active {
	background: var(--green);
	color: #fff;
}

.form-wrap {
	width: 100%;
	max-width: 496px;
	margin-top: clamp(72px, 12vh, 138px);
}

.eyebrow {
	margin: 0 0 16px;
	color: #767f75;
	font-size: 13px;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 700;
}

h1 {
	margin: 0 0 38px;
	font-size: 50px;
	line-height: .98;
	letter-spacing: 0;
	font-weight: 760;
	color: var(--green-dark);
}

.login-alert {
	margin: 0 0 18px;
	padding: 13px 15px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
}

.login-alert.is-error {
	background: var(--danger-bg);
	color: var(--danger);
	border: 1px solid rgba(156, 63, 67, .20);
}

.login-alert.is-ok {
	background: var(--success-bg);
	color: var(--success);
	border: 1px solid rgba(44, 104, 65, .18);
}

.login-form {
	display: grid;
	gap: 18px;
}

.field {
	display: grid;
	gap: 8px;
}

label {
	font-size: 15px;
	color: #7a8278;
	font-weight: 500;
}

.input-wrap {
	position: relative;
}

input[type="email"],
input[type="password"],
input[type="text"] {
	width: 100%;
	height: 58px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 254, 249, .76);
	color: #243c2f;
	padding: 0 18px;
	font: inherit;
	font-size: 17px;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder {
	color: #7f8980;
}

input:focus {
	background: #fffdf9;
	border-color: rgba(57, 116, 71, .48);
	box-shadow: 0 0 0 4px rgba(57, 116, 71, .10);
}

.password-toggle {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #6f7a70;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	padding: 6px;
}

.form-row {
	margin-top: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.remember {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #3f4a42;
	font-size: 16px;
	line-height: 1.2;
}

.remember input {
	appearance: none;
	width: 22px;
	height: 22px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fffdf9;
	display: grid;
	place-content: center;
	margin: 0;
	flex: 0 0 auto;
}

.remember input::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 3px;
	transform: scale(0);
	transition: transform .12s ease;
	background: var(--green);
}

.remember input:checked::before {
	transform: scale(1);
}

.forgot,
.footer-links button {
	appearance: none;
	-webkit-appearance: none;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	font: inherit;
	cursor: pointer;
	padding: 0;
}

.forgot {
	color: var(--green);
	text-decoration: none;
	font-weight: 650;
	font-size: 15px;
	white-space: nowrap;
}

.forgot:hover,
.footer-links button:hover {
	color: var(--green-dark);
	text-decoration: underline;
}

.primary-btn,
.secondary-btn {
	height: 58px;
	width: 100%;
	border-radius: 14px;
	font: inherit;
	font-size: 16px;
	font-weight: 750;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.primary-btn {
	margin-top: 10px;
	border: 0;
	color: #fff;
	background: var(--green);
	box-shadow: 0 14px 28px rgba(57, 116, 71, .18);
}

.primary-btn:hover {
	transform: translateY(-1px);
	background: #326941;
	box-shadow: 0 18px 34px rgba(57, 116, 71, .22);
}

.primary-btn span {
	margin-left: 8px;
}

.divider {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 14px;
	margin: 30px 0 20px;
	color: #7b8279;
	font-size: 14px;
}

.divider::before,
.divider::after {
	content: "";
	height: 1px;
	background: var(--line);
}

.secondary-btn {
	border: 1px solid var(--line);
	background: rgba(255, 254, 249, .40);
	color: #151b18;
}

.secondary-btn:hover {
	transform: translateY(-1px);
	background: #fffdf8;
}

.signup-line {
	margin: 16px 0 0;
	text-align: center;
	color: #6f7a70;
	font-size: 14px;
	font-weight: 650;
}

.signup-line a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	border: 1px solid rgba(57, 116, 71, .20);
	border-radius: 12px;
	background: rgba(57, 116, 71, .06);
	color: var(--green);
	text-decoration: none;
}

.signup-line a::after {
	content: "→";
	font-weight: 800;
}

.signup-line a:hover {
	background: rgba(57, 116, 71, .10);
	color: var(--green-dark);
}

.footer-links {
	margin-top: auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	color: #7f877d;
	font-size: 15px;
}

.footer-links a {
	color: inherit;
	text-decoration: none;
}

.footer-links button {
	color: inherit;
}

.hero-side {
	position: relative;
	min-height: 100vh;
	background: var(--panel-deep);
	padding: 42px 48px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.hero-side::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(31, 66, 47, .70), rgba(31, 66, 47, .28)),
		url("/assets/img/breddr_coaster.svg") center / cover no-repeat;
	opacity: .92;
	z-index: 0;
}

.hero-card {
	position: relative;
	width: 100%;
	min-height: calc(100vh - 84px);
	overflow: hidden;
	isolation: isolate;
}

.hero-content,
.chips {
	position: absolute;
	z-index: 1;
}

.hero-content {
	left: 0;
	right: 0;
	top: 35%;
	transform: translateY(-50%);
	padding: 0 44px;
	max-width: 680px;
}

.hero-title {
	margin: 0 0 24px;
	font-size: 75px;
	line-height: .98;
	letter-spacing: 0;
	color: #ffffff;
	font-weight: 810;
}

.hero-title .muted {
	display: block;
	color: rgba(220, 235, 221, .68);
}

.hero-copy {
	max-width: 610px;
	margin: 0;
	color: rgba(230, 239, 228, .76);
	font-size: 22px;
	line-height: 1.45;
	letter-spacing: 0;
}

.chips {
	left: 44px;
	right: 44px;
	bottom: 38px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.chip {
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid rgba(232, 241, 230, .23);
	color: rgba(232, 241, 230, .74);
	background: rgba(255, 255, 255, .025);
	font-size: 15px;
	line-height: 1;
	backdrop-filter: blur(8px);
}

.login-modal[hidden] {
	display: none;
}

.login-modal {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: grid;
	place-items: center;
	padding: 24px;
}

.login-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 66, 47, .42);
	backdrop-filter: blur(8px);
}

.login-modal-panel {
	position: relative;
	width: min(440px, 100%);
	border: 1px solid rgba(31, 42, 36, .12);
	border-radius: 18px;
	background: #fbf8f0;
	box-shadow: var(--shadow-soft);
	padding: 30px;
	z-index: 1;
}

.login-modal-panel h2 {
	margin: 0 0 12px;
	color: var(--green-dark);
	font-size: 28px;
	line-height: 1.08;
	letter-spacing: 0;
}

.login-modal-panel p:not(.eyebrow) {
	margin: 0 0 22px;
	color: #617064;
	font-size: 15px;
	line-height: 1.5;
}

.login-modal-panel .primary-btn,
.login-modal-panel .secondary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.preference-list {
	display: grid;
	gap: 10px;
}

.preference-toggle {
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 254, 249, .58);
	color: var(--text);
	font-size: 15px;
	font-weight: 650;
}

.preference-toggle input {
	appearance: none;
	width: 42px;
	height: 24px;
	margin: 0;
	border: 1px solid rgba(31, 42, 36, .16);
	border-radius: 999px;
	background: #e7dfd1;
	position: relative;
	cursor: pointer;
}

.preference-toggle input::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fffdf9;
	box-shadow: 0 1px 4px rgba(31, 42, 36, .18);
	transition: transform .16s ease;
}

.preference-toggle input:checked {
	background: var(--green);
}

.preference-toggle input:checked::before {
	transform: translateX(18px);
}

.login-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fffdf9;
	color: var(--text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.cookie-notice {
	position: fixed;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 18;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: min(680px, calc(100vw - 48px));
	padding: 16px;
	border: 1px solid rgba(31, 42, 36, .12);
	border-radius: 16px;
	background: #fbf8f0;
	box-shadow: var(--shadow-soft);
}

.cookie-notice[hidden] {
	display: none;
}

.cookie-notice strong {
	display: block;
	margin-bottom: 4px;
	color: var(--green-dark);
	font-size: 14px;
}

.cookie-notice p {
	margin: 0;
	color: #617064;
	font-size: 13px;
	line-height: 1.45;
}

.cookie-accept {
	min-height: 38px;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: var(--green);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}

@media (max-width: 1060px) {
	.login-shell {
		grid-template-columns: 1fr;
	}

	.hero-side {
		display: none;
	}

	.login-form-side {
		min-height: 100vh;
		padding: 42px 28px 32px;
	}

	.form-wrap,
	.footer-links {
		max-width: 560px;
		width: 100%;
		margin-inline: auto;
	}

	.top-row {
		width: 100%;
		max-width: 560px;
		margin-inline: auto;
	}

	h1 {
		font-size: 46px;
	}
}

@media (max-width: 560px) {
	.login-form-side {
		padding: 28px 20px 26px;
	}

	.top-row {
		align-items: flex-start;
	}

	.language-switcher {
		top: 0;
		right: 0;
	}

	.brand img {
		width: 138px;
	}

	.form-wrap {
		margin-top: 64px;
	}

	h1 {
		font-size: 42px;
	}

	.form-row {
		align-items: flex-start;
	}

	.remember {
		font-size: 15px;
	}

	.footer-links {
		gap: 18px;
		font-size: 14px;
	}

	.cookie-notice {
		flex-direction: column;
		align-items: stretch;
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
	}
}
