		* { box-sizing: border-box; }

		html, body { min-width: 320px; min-height: 100%; margin: 0; }

		body {
			display: grid;
			place-items: center;
			padding: 32px 16px;
			overflow: auto;
			background: #08080f;
			color: #f8f7fc;
			font-family: "Google Sans", sans-serif;
		}

		.background, .background::before, .background::after {
			position: fixed;
			inset: 0;
			pointer-events: none;
		}

		.background {
			background:
				radial-gradient(ellipse at 18% 8%, rgba(166, 0, 255, .2), transparent 36%),
				radial-gradient(ellipse at 83% 90%, rgba(122, 87, 255, .14), transparent 38%),
				#08080f;
		}

		.background::before {
			content: "";
			background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
			background-size: 44px 44px;
			mask-image: radial-gradient(circle at center, black, transparent 74%);
		}

		.background::after {
			content: "";
			background: radial-gradient(circle at 50% 45%, transparent 28%, rgba(0, 0, 0, .28) 100%);
		}

		.login {
			position: relative;
			width: min(456px, 100%);
			padding: 42px;
			overflow: hidden;
			border: 1px solid rgba(234, 195, 255, .18);
			border-radius: 26px;
			background: linear-gradient(145deg, rgba(27, 25, 39, .96), rgba(12, 12, 20, .96));
			box-shadow: 0 34px 100px rgba(0, 0, 0, .56), inset 0 1px rgba(255, 255, 255, .05);
			backdrop-filter: blur(22px);
		}

		.login::before {
			content: "";
			position: absolute;
			top: 0;
			left: 12%;
			width: 76%;
			height: 1px;
			background: linear-gradient(90deg, transparent, #eac3ff, transparent);
			opacity: .8;
		}

		.logo { display: block; width: 52px; height: 60px; margin: 0 auto 15px; object-fit: contain; }
		.wordmark { display: block; width: 100px; margin: 0 auto 10px; filter: brightness(0) invert(1); }
		.brand-kicker { margin: 0 0 32px; color: #a9a3b3; font-family: "Google Sans", sans-serif; font-size: 9px; letter-spacing: .15em; text-align: center; }

		h1 { margin: 0; font-size: 29px; font-weight: 700; letter-spacing: -.05em; text-align: center; }
		.subtitle { margin: 9px 0 27px; color: #aaa7b3; font-size: 14px; text-align: center; }

		label { display: block; margin: 17px 0 7px; color: #dedce6; font-size: 12px; font-weight: 600; }
		input:not([type="checkbox"]) {
			width: 100%;
			padding: 13px 14px;
			border: 1px solid #353343;
			border-radius: 12px;
			outline: none;
			background: rgba(8, 8, 15, .68);
			color: white;
			font: inherit;
			font-size: 14px;
			transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
		}

		input:not([type="checkbox"]):hover { border-color: #555163; }
		input:not([type="checkbox"]):focus { border-color: #c982ff; background: #10101a; box-shadow: 0 0 0 4px rgba(166, 0, 255, .14); }

		.submit {
			width: 100%;
			margin-top: 25px;
			padding: 13px;
			border: 0;
			border-radius: 12px;
			background: linear-gradient(135deg, #eac3ff, #b52bff 56%, #8d00dc);
			box-shadow: 0 10px 25px rgba(166, 0, 255, .24);
			color: #180022;
			font: inherit;
			font-weight: 700;
			cursor: pointer;
			transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
		}

		.submit:hover { box-shadow: 0 13px 30px rgba(166, 0, 255, .38); filter: brightness(1.06); transform: translateY(-1px); }
		.submit:active { transform: translateY(0); }
		button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #eac3ff; outline-offset: 3px; }

		.error { margin-bottom: 18px; padding: 11px 12px; border: 1px solid rgba(255, 150, 150, .28); border-radius: 11px; background: rgba(120, 35, 48, .22); color: #ffb2ba; font-size: 12px; }
		.register { margin-top: 20px; color: #aaa7b3; font-size: 12px; text-align: center; }
		.register button { border: 0; padding: 0; background: none; color: #e6c2ff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
		.register button:hover { color: white; text-decoration: underline; }

		.register-form { display: none; }
		.register-form.active { display: block; }
		.login-form.hidden { display: none; }

		.legal-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: #aaa7b3; font-size: 11px; line-height: 1.5; }
		.legal-consent input { width: 15px; height: 15px; min-height: 0; margin: 1px 0 0; accent-color: #b52bff; }
		.legal-consent a, .footer a { color: #e3bfff; text-decoration: none; }
		.legal-consent a:hover, .footer a:hover { color: white; text-decoration: underline; }

		.footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); color: #817c8e; font-family: "Google Sans", sans-serif; font-size: 9px; line-height: 1.7; text-align: center; }
		.luma-logo { display: block; width: 46px; height: auto; margin: 13px auto 0; filter: brightness(0) invert(1); opacity: .72; }

		@media (max-width: 520px) {
			body { padding: 16px; }
			.login { padding: 34px 24px 28px; border-radius: 22px; }
			.brand-kicker { margin-bottom: 27px; }
			h1 { font-size: 27px; }
		}

		@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

		:root[data-theme="light"] body {
			background: #f4f3f9;
			color: #1c1b25;
		}

		:root[data-theme="light"] .background {
			background:
				radial-gradient(ellipse at 18% 8%, rgba(124, 108, 255, .16), transparent 36%),
				radial-gradient(ellipse at 83% 90%, rgba(124, 108, 255, .1), transparent 38%),
				#f4f3f9;
		}

		:root[data-theme="light"] .background::before {
			background-image: linear-gradient(rgba(30, 25, 60, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 25, 60, .04) 1px, transparent 1px);
		}

		:root[data-theme="light"] .login {
			border-color: var(--line, #e3e0ec);
			background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(246, 244, 252, .97));
			box-shadow: 0 34px 100px rgba(72, 62, 138, .18), inset 0 1px rgba(255, 255, 255, .8);
		}

		:root[data-theme="light"] .login::before {
			background: linear-gradient(90deg, transparent, var(--accent-bright, #a79dff), transparent);
		}

		:root[data-theme="light"] .wordmark {
			filter: brightness(0);
		}

		:root[data-theme="light"] .brand-kicker,
		:root[data-theme="light"] .subtitle,
		:root[data-theme="light"] .register,
		:root[data-theme="light"] .legal-consent {
			color: #565462;
		}

		:root[data-theme="light"] h1 {
			color: #1c1b25;
		}

		:root[data-theme="light"] label {
			color: #3c3a46;
		}

		:root[data-theme="light"] input:not([type="checkbox"]) {
			border-color: #d8d5e4;
			background: #ffffff;
			color: #1c1b25;
		}

		:root[data-theme="light"] input:not([type="checkbox"]):hover { border-color: #c3bed6; }
		:root[data-theme="light"] input:not([type="checkbox"]):focus {
			border-color: var(--accent);
			background: #ffffff;
			box-shadow: 0 0 0 4px var(--accent-glow-soft);
		}

		:root[data-theme="light"] .submit {
			background: linear-gradient(135deg, var(--accent-bright, #a79dff), var(--accent, #7c6cff));
			color: #ffffff;
			box-shadow: 0 10px 25px var(--accent-glow);
		}

		:root[data-theme="light"] .error {
			border-color: rgba(208, 60, 60, .28);
			background: rgba(255, 235, 235, .7);
			color: #b3263a;
		}

		:root[data-theme="light"] .register button { color: var(--accent-dim, #4c3fb8); }
		:root[data-theme="light"] .register button:hover { color: #1c1b25; }

		:root[data-theme="light"] .legal-consent input { accent-color: var(--accent, #7c6cff); }
		:root[data-theme="light"] .legal-consent a,
		:root[data-theme="light"] .footer a { color: var(--accent-dim, #4c3fb8); }
		:root[data-theme="light"] .legal-consent a:hover,
		:root[data-theme="light"] .footer a:hover { color: #1c1b25; }

		:root[data-theme="light"] .footer { color: #83808e; }
		:root[data-theme="light"] .luma-logo { filter: brightness(0); opacity: .6; }
	

/* ---- Redesigned login ------------------------------------------------ */

body { padding: 24px 16px; }

.shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 456px);
	gap: 56px;
	align-items: center;
	width: min(960px, 100%);
}

.login { width: 100%; padding: 36px 40px 30px; }

.pitch { padding: 8px 0; }

.pitch-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.pitch-logo { width: 36px; height: 42px; object-fit: contain; }
.pitch-wordmark { width: 82px; filter: brightness(0) invert(1); }

.pitch h2 {
	margin: 0 0 26px;
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -.045em;
	line-height: 1.08;
	background: linear-gradient(135deg, #fff 30%, #eac3ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pitch-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.pitch-list li { padding-left: 16px; border-left: 2px solid rgba(181, 43, 255, .55); }
.pitch-list strong { display: block; margin-bottom: 2px; font-size: 14px; }
.pitch-list span { color: #aaa7b3; font-size: 13px; line-height: 1.5; }
.pitch-luma { display: block; width: 46px; margin-top: 38px; filter: brightness(0) invert(1); opacity: .55; }

.login-brand { display: none; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.login-brand .logo { width: 30px; height: 35px; margin: 0; }
.login-brand .wordmark { width: 78px; margin: 0; }

.tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 22px;
	padding: 4px;
	border: 1px solid #2b2938;
	border-radius: 13px;
	background: rgba(8, 8, 15, .6);
}

.tabs button {
	padding: 9px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #aaa7b3;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: rgba(181, 43, 255, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(213, 167, 255, .3); }

.blacklink-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 13px;
	border: 1px solid #4a4660;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.blacklink-button:hover { border-color: #c982ff; background: rgba(181, 43, 255, .14); transform: translateY(-1px); }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 2px; color: #817c8e; font-size: 11px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .09); }

.login-form form, .register-form form { margin-top: -4px; }

.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.reveal {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	padding: 5px 9px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #c9a0ee;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
}
.reveal:hover { color: #fff; }

.strength { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 11px; color: #817c8e; }
.strength-bar { flex: 0 0 90px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .09); }
.strength-bar i { display: block; width: 0; height: 100%; border-radius: 4px; background: #ff6b6b; transition: width .2s ease, background .2s ease; }

.footer { margin-top: 24px; padding-top: 16px; }

@media (max-width: 860px) {
	.shell { grid-template-columns: minmax(0, 456px); justify-content: center; }
	.pitch { display: none; }
	.login-brand { display: flex; }
}

@media (max-width: 520px) {
	.login { padding: 28px 22px 24px; }
}

:root[data-theme="light"] .pitch h2 { background: linear-gradient(135deg, #1c1b25 30%, var(--accent, #7c6cff)); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .pitch-wordmark,
:root[data-theme="light"] .pitch-luma { filter: brightness(0); }
:root[data-theme="light"] .pitch-list span { color: #565462; }
:root[data-theme="light"] .pitch-list li { border-left-color: var(--accent, #7c6cff); }
:root[data-theme="light"] .tabs { border-color: #e3e0ec; background: #eceaf4; }
:root[data-theme="light"] .tabs button { color: #565462; }
:root[data-theme="light"] .tabs button:hover { color: #1c1b25; }
:root[data-theme="light"] .tabs button[aria-selected="true"] { background: #fff; color: #1c1b25; box-shadow: 0 1px 4px rgba(72, 62, 138, .18); }
:root[data-theme="light"] .blacklink-button { border-color: #d8d5e4; background: #fff; color: #1c1b25; }
:root[data-theme="light"] .blacklink-button:hover { border-color: var(--accent, #7c6cff); background: #f6f4fc; }
:root[data-theme="light"] .divider { color: #83808e; }
:root[data-theme="light"] .divider::before, :root[data-theme="light"] .divider::after { background: #e3e0ec; }
:root[data-theme="light"] .reveal { color: var(--accent-dim, #4c3fb8); }
:root[data-theme="light"] .reveal:hover { color: #1c1b25; }
:root[data-theme="light"] .strength { color: #83808e; }
:root[data-theme="light"] .strength-bar { background: #e3e0ec; }

html, body { min-height: 100vh; }
body { display: flex; align-items: center; justify-content: center; }


/* ---- Login v3: Blacklink branding + product preview ------------------ */

/* Blacklink button follows nova.blacklink.net: amber on near-black, Syne. */
.blacklink-button {
	gap: 10px;
	padding: 14px;
	border: 1px solid #ffb020;
	border-radius: 12px;
	background: #ffb020;
	box-shadow: 0 8px 26px rgba(255, 176, 32, .26);
	color: #1f1400;
	font-family: "Syne", "Google Sans", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
}

.blacklink-button:hover {
	border-color: #ffc04d;
	background: #ffc04d;
	box-shadow: 0 12px 32px rgba(255, 176, 32, .38);
	transform: translateY(-1px);
}

.blacklink-button:active { transform: translateY(0); }

.blacklink-button:focus-visible { outline-color: #ffb020; }

.bl-mark {
	width: 22px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("blacklink.svg") center / contain no-repeat;
	mask: url("blacklink.svg") center / contain no-repeat;
}

:root[data-theme="light"] .blacklink-button {
	border-color: #ffb020;
	background: #ffb020;
	color: #1f1400;
}

:root[data-theme="light"] .blacklink-button:hover {
	border-color: #ffc04d;
	background: #ffc04d;
}

/* Calmer card and nicer inputs */
.login {
	border-color: rgba(255, 255, 255, .09);
	background: linear-gradient(160deg, rgba(24, 23, 36, .94), rgba(11, 11, 19, .96));
}

.login::before { background: linear-gradient(90deg, transparent, rgba(255, 176, 32, .7), rgba(181, 43, 255, .5), transparent); }

.divider { margin: 18px 0 4px; }

.submit { margin-top: 22px; }

/* Pitch side */
.pitch h2 em {
	font-style: normal;
	background: linear-gradient(135deg, #eac3ff, #b52bff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pitch h2 {
	margin-bottom: 14px;
	font-size: 40px;
	background: none;
	color: #fff;
}

:root[data-theme="light"] .pitch h2 { color: #1c1b25; background: none; }

.pitch-lead {
	max-width: 400px;
	margin: 0 0 20px;
	color: #aaa7b3;
	font-size: 15px;
	line-height: 1.55;
}

.pitch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }

.pitch-chips li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
	color: #dedce6;
	font-size: 12.5px;
	font-weight: 500;
}

.pitch-chips svg { width: 15px; height: 15px; fill: none; stroke: #c982ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.preview {
	max-width: 400px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 18px;
	background: rgba(14, 14, 24, .8);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(181, 43, 255, .35);
	transform: rotate(-1.2deg);
}

.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #817c8e; font-size: 11px; }
.preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.preview-bar span { margin-left: 6px; }

.bubble { margin: 12px 14px; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.bubble.user { margin-left: 56px; border: 1px solid rgba(213, 167, 255, .25); background: rgba(181, 43, 255, .18); color: #fff; }
.bubble.aero { padding: 2px 4px; color: #cfccd8; }
.bubble.aero .typing-line b { color: #fff; }

.code-chip { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .04); color: #817c8e; font-size: 11px; }
.chip-btn { padding: 3px 10px; border: 1px solid rgba(213, 167, 255, .35); border-radius: 7px; background: rgba(181, 43, 255, .18); color: #eac3ff; }

.game { position: relative; height: 92px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-top: 0; border-radius: 0 0 10px 10px; background: #05050a; }
.game .dot { position: absolute; top: 44px; width: 12px; height: 12px; border-radius: 4px; background: #35ffb0; box-shadow: 0 0 10px #35ffb0; animation: slither 3.2s linear infinite; }
.game .d2 { animation-delay: .1s; opacity: .85; }
.game .d3 { animation-delay: .2s; opacity: .7; }
.game .d4 { animation-delay: .3s; opacity: .55; }
.game .food { position: absolute; top: 20px; right: 38px; width: 10px; height: 10px; border-radius: 50%; background: #ff5fa2; box-shadow: 0 0 12px #ff5fa2; animation: pulse 1.4s ease-in-out infinite; }

@keyframes slither { 0% { left: -14px; } 100% { left: 100%; } }
@keyframes pulse { 50% { transform: scale(1.35); } }

:root[data-theme="light"] .pitch-lead { color: #565462; }
:root[data-theme="light"] .pitch-chips li { border-color: #e3e0ec; background: #fff; color: #3c3a46; }
:root[data-theme="light"] .pitch-chips svg { stroke: var(--accent, #7c6cff); }
:root[data-theme="light"] .preview { border-color: #e3e0ec; background: #fff; box-shadow: 0 30px 70px -30px rgba(72, 62, 138, .35); }
:root[data-theme="light"] .preview-bar { border-color: #eceaf4; color: #83808e; }
:root[data-theme="light"] .preview-bar i { background: #d8d5e4; }
:root[data-theme="light"] .bubble.user { color: #1c1b25; background: rgba(124, 108, 255, .14); border-color: rgba(124, 108, 255, .3); }
:root[data-theme="light"] .bubble.aero { color: #3c3a46; }
:root[data-theme="light"] .bubble.aero .typing-line b { color: #1c1b25; }
:root[data-theme="light"] .code-chip { border-color: #e3e0ec; background: #f6f4fc; color: #83808e; }
:root[data-theme="light"] .chip-btn { color: var(--accent-dim, #4c3fb8); background: rgba(124, 108, 255, .12); border-color: rgba(124, 108, 255, .3); }
:root[data-theme="light"] .login { border-color: #e3e0ec; background: linear-gradient(160deg, #fff, #f6f4fc); }

@media (max-width: 860px) {
	.preview, .pitch-chips { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.game .dot, .game .food { animation: none; }
	.game .dot { left: 30%; }
}

/* Light theme contrast */
:root[data-theme="light"] .submit {
	background: linear-gradient(135deg, #8b7bff, #5b46e8);
	box-shadow: 0 10px 25px rgba(91, 70, 232, .28);
	color: #fff;
}

:root[data-theme="light"] .pitch h2 em {
	background: linear-gradient(135deg, #8b3dff, #5b46e8);
	-webkit-background-clip: text;
	background-clip: text;
}
