/* ==========================================================================
	Base
========================================================================== */

* {
	box-sizing: border-box;
}

:root {
	--text: #e2e8f0;
	--text-strong: #f8fafc;
	--muted: #cbd5e1;
}


/* ==========================================================================
	Animations
========================================================================== */

@keyframes bgmove {
	0% {
		background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
	}

	50% {
		background-position: 8% 4%, 92% 8%, 48% 96%, 0 0;
	}

	100% {
		background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
	}
}

@keyframes barshine {
	0% {
		left: 205px;
		opacity: 0;
	}

	62.5% {
		left: 205px;
		opacity: 0;
	}

	66% {
		left: 205px;
		opacity: .65;
	}

	97% {
		left: calc(100% - 245px);
		opacity: .65;
	}

	100% {
		left: calc(100% - 245px);
		opacity: 0;
	}
}


/* ==========================================================================
	Layout
========================================================================== */

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

body {
	height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: Arial, sans-serif;
	color: var(--text);
	background:
		radial-gradient(1200px 700px at 15% 10%, rgba(59, 130, 246, .18), transparent 60%),
		radial-gradient(900px 600px at 85% 20%, rgba(99, 102, 241, .14), transparent 60%),
		radial-gradient(700px 500px at 50% 100%, rgba(14, 165, 233, .10), transparent 60%),
		linear-gradient(180deg, #0f172a 0%, #111827 45%, #020617 100%);
	background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
	background-attachment: fixed;
	animation: bgmove 30s ease-in-out infinite;
	overflow: hidden;
}

main {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
}

.center-lift {
	transform: translateY(-7vh);
}


/* ==========================================================================
	Topbar
========================================================================== */

.topbar {
	position: relative;
	z-index: 2;
	overflow: hidden;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 32px;
	background: linear-gradient(180deg, rgba(15, 23, 42, .70), rgba(15, 23, 42, .48));
	border-bottom: 1px solid rgba(148, 163, 184, .12);
	box-shadow:
		0 14px 38px rgba(0, 0, 0, .22),
		inset 0 1px 0 rgba(255, 255, 255, .06);
	backdrop-filter: blur(16px);
}

.topbar::before {
	content: "";
	position: absolute;
	top: -70%;
	left: 205px;
	width: 120px;
	height: 240%;
	opacity: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, .05),
		rgba(147, 197, 253, .22),
		rgba(255, 255, 255, .05),
		transparent
	);
	filter: blur(.5px);
	transform: rotate(13deg);
	animation: barshine 24s linear infinite;
}

.logo {
	position: relative;
	z-index: 1;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-strong);
	letter-spacing: .02em;
	text-shadow:
		0 0 14px rgba(59, 130, 246, .28),
		0 0 28px rgba(99, 102, 241, .18);
}


/* ==========================================================================
	Buttons
========================================================================== */

.btn {
	position: relative;
	z-index: 1;
	padding: 10px 18px;
	background: linear-gradient(135deg, #3b82f6, #6366f1);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(59, 130, 246, .22);
	transition:
		transform .18s ease,
		box-shadow .18s ease,
		filter .18s ease;
}

.btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 16px 38px rgba(59, 130, 246, .30);
}

.btn-full {
	width: 100%;
}


/* ==========================================================================
	Index page
========================================================================== */

.index-page .hero {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
}

.index-page .hero h1 {
	font-size: 52px;
	line-height: 1.16;
	margin: -35px 0 12px;
	color: var(--text-strong);
	letter-spacing: -.025em;
	text-shadow:
		0 0 18px rgba(59, 130, 246, .30),
		0 0 42px rgba(99, 102, 241, .18),
		0 16px 48px rgba(0, 0, 0, .42);
}

.index-page .hero p {
	color: var(--muted);
	margin: 0 0 20px;
	font-size: 24px;
	text-shadow:
		0 0 18px rgba(59, 130, 246, .18),
		0 10px 32px rgba(0, 0, 0, .35);
}

.index-page .auth-container {
	display: none;
	flex: 1;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.index-page .auth-box {
	transform: translateY(-7vh);
	width: 100%;
	max-width: 320px;
}

.index-page .auth-box h2 {
	margin: 0 0 20px;
	text-align: center;
	color: var(--text-strong);
	text-shadow:
		0 0 18px rgba(59, 130, 246, .30),
		0 0 42px rgba(99, 102, 241, .16);
}

.index-page .input {
	width: 100%;
	padding: 11px 12px;
	margin-bottom: 15px;
	border-radius: 9px;
	border: 1px solid rgba(148, 163, 184, .16);
	background: rgba(2, 6, 23, .42);
	color: #e2e8f0;
	outline: none;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.index-page .input::placeholder {
	color: #94a3b8;
}


/* ==========================================================================
	Error page
========================================================================== */

.error-page .error-main {
	margin-top: -35px;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
}

.error-page #err {
	margin: 0;
	font-size: clamp(7rem, 18vw, 12rem);
	line-height: .9;
	font-weight: 800;
	color: var(--text-strong);
	letter-spacing: -.015em;
	text-shadow:
		0 0 18px rgba(59, 130, 246, .34),
		0 0 46px rgba(99, 102, 241, .22),
		0 22px 62px rgba(0, 0, 0, .62);
}

.error-page .msg {
	margin-top: 22px;
	margin-left: 11px;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	color: var(--muted);
	letter-spacing: .08em;
	text-shadow:
		0 0 18px rgba(59, 130, 246, .22),
		0 12px 34px rgba(0, 0, 0, .42);
}
