:root {
	--bg: #0f1116;
	--bg-soft: #161925;
	--panel: #121524;
	--ink: #f4f5ff;
	--muted: #a6acc1;
	--line: #2f3650;
	--brand: #3ef0c3;
	--brand-ink: #021813;
	--good: #64d89a;
	--bad: #ff8b88;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Manrope", sans-serif;
	color: var(--ink);
	background: linear-gradient(150deg, #0d1018 0%, #11182b 100%);
	min-height: 100vh;
	padding: 1.2rem;
}

.noise {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(#ffffff0f 0.6px, transparent 0.6px);
	background-size: 4px 4px;
	opacity: 0.22;
}

.halo {
	position: fixed;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.52;
	pointer-events: none;
}

.halo-a {
	width: 360px;
	height: 360px;
	background: #22ffc1;
	top: -130px;
	left: -90px;
	animation: floatA 9s ease-in-out infinite alternate;
}

.halo-b {
	width: 420px;
	height: 420px;
	background: #4d7dff;
	bottom: -170px;
	right: -140px;
	animation: floatB 10s ease-in-out infinite alternate;
}

@keyframes floatA {
	from {
		transform: translateY(0px);
	}
	to {
		transform: translateY(22px);
	}
}

@keyframes floatB {
	from {
		transform: translateY(0px);
	}
	to {
		transform: translateY(-24px);
	}
}

.topbar {
	max-width: 1080px;
	margin: 0 auto 1rem auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.brand {
	font-family: "Archivo Black", sans-serif;
	letter-spacing: 0.03em;
	font-size: 1.16rem;
}

.admin-link {
	color: var(--ink);
	text-decoration: none;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #ffffff10;
	font-weight: 600;
}

.layout {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 1rem;
}

.hero,
.auth-card {
	border: 1px solid var(--line);
	border-radius: 20px;
	backdrop-filter: blur(10px);
	background: linear-gradient(160deg, #151a2bcc, #0f1424d4);
	box-shadow: 0 22px 44px #0000005e;
}

.hero {
	padding: clamp(1.25rem, 3vw, 2.2rem);
	animation: rise 0.45s ease-out both;
}

.auth-card {
	padding: 1rem;
	animation: rise 0.6s ease-out both;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0px);
	}
}

.eyebrow {
	margin: 0 0 0.7rem 0;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8ee8d1;
	font-weight: 700;
}

h1,
h2 {
	margin: 0;
}

h1 {
	font-family: "Archivo Black", sans-serif;
	font-size: clamp(2.4rem, 7vw, 4rem);
	line-height: 0.98;
}

.lead {
	margin: 1rem 0 0 0;
	max-width: 52ch;
	font-size: 1.03rem;
	line-height: 1.6;
	color: var(--muted);
}

.chips {
	margin-top: 1.2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chips span {
	padding: 0.36rem 0.7rem;
	border: 1px solid #3b4263;
	border-radius: 999px;
	font-size: 0.82rem;
	color: #d2d8ed;
	background: #ffffff08;
}

.tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.42rem;
	margin-bottom: 0.75rem;
}

.tab {
	font: inherit;
	padding: 0.56rem 0.6rem;
	border-radius: 11px;
	border: 1px solid var(--line);
	background: #0f1322;
	color: #ced4ea;
	cursor: pointer;
	font-weight: 600;
}

.tab.active {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--brand-ink);
}

.form {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.sub {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted);
}

label {
	margin-top: 0.34rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #cfd5ec;
}

input,
button {
	font: inherit;
}

input {
	width: 100%;
	padding: 0.7rem 0.72rem;
	border-radius: 11px;
	border: 1px solid #39405d;
	background: #0c1221;
	color: var(--ink);
}

input:focus {
	outline: none;
	border-color: #4af6cb;
	box-shadow: 0 0 0 3px #3ef0c330;
}

button {
	margin-top: 0.55rem;
	padding: 0.68rem 0.74rem;
	border-radius: 11px;
	border: 1px solid transparent;
	background: var(--brand);
	color: var(--brand-ink);
	font-weight: 700;
	cursor: pointer;
}

button:hover {
	filter: brightness(0.96);
}

button:disabled {
	opacity: 0.58;
	cursor: not-allowed;
}

.feedback {
	margin: 0.34rem 0 0 0;
	min-height: 1.2rem;
	font-size: 0.84rem;
}

.feedback.good {
	color: var(--good);
}

.feedback.bad {
	color: var(--bad);
}

.session-row {
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid #2b334d;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem;
}

#session-state {
	margin: 0;
	font-size: 0.84rem;
	color: #bec5dd;
}

.ghost {
	background: #ffffff08;
	color: #e4e8f7;
	border-color: #3b4360;
	padding: 0.48rem 0.75rem;
}

.hidden {
	display: none;
}

@media (max-width: 960px) {
	.layout {
		grid-template-columns: 1fr;
	}
}
