body {
	background: linear-gradient(to bottom, #080808, #1D1127);
	background-attachment: fixed;

	scrollbar-width: none;

	margin: 0;
	color: #FFF;
	font-family: Inter, sans-serif;
	font-weight: 500;
	height: 100vh;
}

main {
	display: flex;
	opacity: 0;
	pointer-events: none;

	transition: opacity 0.5s ease;
}

*::selection {
	color: #1D1127;
	background: #BBB;
}

.box-shadow {
	box-shadow: 0 4px 8px var(--shadow);
}

.text-shadow {
	text-shadow: 0 4px 8px var(--shadow);
}

header {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;

	--shadow: #0000001A;
}

.logo {
	width: 100%;
	height: 64px;
	filter: drop-shadow(0 4px 8px var(--shadow));
	transform: scale(1, -1);
}

h1 {
	user-select: none;
	text-align: center;
	margin-top: 16px;
	margin-bottom: 32px;
}

#input {
	width: 290px;
	height: 36px;
	background: #FFFFFF0D;
	border-radius: 32px;
	color: #FFF;
	font-family: inherit;
	font-size: 16px;
	font-weight: inherit;
	border: 2px solid #FFFFFF1A;
	padding: 0 14px;
	box-sizing: border-box;

	transition: border-color 0.15s ease;

	&::placeholder {
		color: #FFFFFF33;
	}
}

#input:focus-visible {
	outline: none;
	border-color: #FFFFFF54;
}

#checkboxContainer {
	user-select: none;
	display: flex;
	gap: 8px;
	padding-top: 12px;
	padding-bottom: 32px;
	padding-left: 16px;
}

#checkboxContainer input {
	display: none;
}

#checkboxContainer .check {
	height: 14px;
	width: 14px;
	background: #FFFFFF0D;
	border: 2px solid #FFFFFF1A;
	border-radius: 5px;
	margin-top: 1px;
}

#checkboxContainer .check::after {
	content: "";
	opacity: 0;
	background: #FFFFFFA0;
	position: absolute;
	width: 10px;
	height: 10px;
	margin: 2px;
	border-radius: 2px;

	transition: 0.05s ease;
}

#checkboxContainer:has(input:checked)>.check::after {
	opacity: 1;
}

#loading {
	pointer-events: none;
	user-select: none;

	height: 48px;
	display: flex;
	gap: 8px;
	margin-top: 16px;
	padding-left: 16px;

	transition: opacity 0.2s ease;
}

#loading:has(#states:empty) {
	transition: none;
	opacity: 0;
	position: absolute;
}

.throbber {
	margin-top: 2px;
	width: 16px;
	height: 16px;
	border: 2px solid #FFF;
	border-bottom-color: transparent;
	border-radius: 50%;
	display: inline-block;
	box-sizing: border-box;
	animation: spin 0.75s linear infinite;
}

.error>.throbber {
	animation: none;
	border-color: #F00A;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

#states {
	color: #FFFFFF33;
	display: flex;
	flex-direction: column;
	justify-content: end;
	overflow: hidden;
	height: 1px;
	margin-top: -6px;
	mask-image: linear-gradient(to top, #000, #000 calc(100% - 12px), transparent 100%);

	transition: height 0.2s ease;
}

#states>span {
	transition: color 0.2s ease;

	&:first-child {
		color: #FFF;
	}
}

.error>#states> :first-child {
	color: #F00A;
}

.background {
	opacity: 0;
}

.background,
.background>* {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;

	transition: backdrop-filter 0.5s ease, opacity 0.3s ease-out;
}

.background>.blur {
	backdrop-filter: blur(128px);
	background: #0005;
}

.background>#banner {
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.background:has(#banner[style='background-image: url("");']) {
	display: none;
}

main>div:has(section:empty) {
	display: none;
}

footer {
	width: 100vw;
	position: fixed;
	bottom: 0;
	color: #FFFFFF80;
	text-align: center;
	padding: 16px 0;
}

footer>a {
	color: inherit;
}

footer>a:hover {
	color: #FFF;
}

@media (max-width: 460px) {
	footer>br {
		display: block !important;
	}

	footer>.dot {
		display: none;
	}
}

@media (prefers-color-scheme: light) {
	body {
		background: linear-gradient(to bottom, #C6BCCE, #55217D);
	}

	#input {
		border-color: #FFF4;

		&:focus-visible {
			border-color: #FFFA;
		}

		&::placeholder {
			color: #FFF6;
		}
	}

	#checkboxContainer .check {
		border-color: #FFF5;
	}

	#checkboxContainer .check::after {
		background: #FFF;
	}

	.error>.throbber,
	.error>#states> :first-child {
		filter: drop-shadow(0 0 5px #0005);
		border-color: #F00;
		color: #F00;
	}
}