:root {
	--background: #dcd7cd;
	--background-secondary: #fff;
	--text: #111;
	--primary: #004b4b;
	--primary-contrast: #fff;
	--error-bg: #cc241d80;
	--error-text: #fff;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #222;
		--background-secondary: #333;
		--text: #ccc;
	}
}

* {
	box-sizing: border-box;
}

body {
	background: var(--background);
	color: var(--text);
	margin: 0;
	padding: 0;
	font-family: sans;
}

main.login-main {
	width: 40ch;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

form.login-form {
	border: 3px solid #111;
	margin-top: calc(50vh-50%);
	padding: .5em;
	box-shadow: 0 0 1em #0008;
}

.login-title {
	font-size: 2rem;
	font-weight: .6;
	margin: 0;
	margin-bottom: 1rem;
}

.login-page-logo {
	height: 7em;
	display: block;
	margin: auto;
	margin-top: 1rem;
}


.login-form > input {
	display: block;
	width: 100%;
	margin-top: 1em;
	font-size: 1rem;
	background: var(--background-secondary);
	color: var(--text);
	border: none;
	padding: .3em;
	box-shadow: 0 0 1em #0008;
}

.login-error {
	background: var(--error-bg);
	color: var(--error-text);
	border-left: 3px solid  #cc241d;
	margin: .3em 0;
	padding: .1em .7ch;
}

.login-form > input.primary-form-button {
	background-color: var(--primary);
	color: var(--primary-contrast);
	border: none;
	transition: box-shadow .5s, transform .1s;
}

.primary-form-button:hover {
	box-shadow: 0 0 .7em #0008;
	transform: scale(99%);
}

.footer {
	position: absolute;
	left: 0;
	bottom: 0.25em;
	width: 100%;
	text-align: center;
}
