:root {
	--background: #f5f7fb;
	--surface: #ffffff;
	--surface-soft: #eef3f8;
	--accent: #0f6f73;
	--accent-strong: #0a4d50;
	--color: #172033;
	--muted: #677489;
	--border: #dbe4ee;
	--error: #c73535;
	--focus: rgba(15, 111, 115, .18);
	--shadow: 0 20px 55px rgba(20, 36, 58, .14);
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	width: 100%;
	background:
		linear-gradient(135deg, rgba(15, 111, 115, .11), rgba(245, 247, 251, 0) 42%),
		linear-gradient(180deg, #ffffff 0%, var(--background) 100%);
	color: var(--color);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
	overflow-y: auto;
}

body::before {
	content: "W-wereld";
	position: fixed;
	top: 26px;
	left: 28px;
	z-index: 1;
	color: var(--accent-strong);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .2px;
}

h1 {
	margin: 0 0 18px;
	font-size: 36px;
	line-height: 1.08;
	color: #102033;
}

.hidden {
	position: absolute;
	left: -1000%;
	top: -1000%;
	height: 0;
	width: 0;
	pointer-events: none;
	opacity: 0;
}

.formWrapper {
	min-height: 100vh;
	width: 100%;
	display: grid;
	align-items: center;
	justify-content: center;
	padding: 86px 18px 40px;
}

form,
body > h1,
body > .btn,
body > .errorcontainer,
body > .errcontainer {
	position: relative;
	z-index: 2;
}


form h1 {
	margin: 0 0 12px;
	font-size: 32px;
}

.inputblock {
	position: relative;
	display: block;
	padding: 14px 0;
	clear: both;
}

.inputblock input {
	width: 100%;
	padding: 12px 13px;
	box-sizing: border-box;
	display: block;
	background: #fff;
	outline: none;
	font-family: inherit;
	font-size: 15px;
	color: var(--color);
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-top: 7px;
	transition: border-color .2s, box-shadow .2s;
}

.inputblock input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--focus);
}

.inputblock label {
	display: block;
	font-size: 12px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .7px;
	font-weight: 700;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: auto;
	padding: 11px 20px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	border: 1px solid var(--accent);
	border-radius: 6px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	text-align: center;
	text-decoration: none;
	transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

form .btn {
	margin-top: 10px;
}

.btn:hover,
.btn:active {
	background: var(--accent-strong);
	border-color: var(--accent-strong);
	color: #fff;
	box-shadow: 0 10px 22px rgba(15, 111, 115, .2);
}

.btn:active {
	transform: translateY(1px);
}

.errcontainer,
.errorcontainer {
	margin: 0 0 14px;
	padding: 0;
	font-size: 14px;
	opacity: 1;
	transition: opacity .3s;
}

.err,
.errorcontainer p {
	margin: 8px 0;
	color: var(--error);
	font-weight: 650;
}

.err ul {
	list-style-type: none;
	margin: 0;
	padding-inline-start: 0;
}

.wave {
	display: none;
}

form a {
	position: relative;
	margin: 14px 0 0;
	line-height: 1.4em;
	display: inline-block;
	color: var(--accent-strong);
	text-decoration: none;
	font-weight: 650;
	transition: color .2s;
}

.errorcontainer a {
	display: inline;
	line-height: normal;
	text-decoration: underline;
	color: inherit;
}

form a::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -2px;
	height: 1px;
	background: currentColor;
	width: 0;
	transform: translateX(-50%);
	transition: width .25s;
}

form a:hover::before {
	width: 100%;
}

form a:hover {
	color: var(--accent);
}

.loader {
	height: 64px;
	width: 64px;
	position: fixed;
	top: calc(50% - 32px);
	left: calc(50% - 32px);
	border: 3px solid var(--surface-soft);
	border-left: 3px solid var(--accent);
	border-radius: 50%;
	animation: loader 1s linear infinite;
}

@keyframes loader {
	to {
		transform: rotate(360deg);
	}
}

.message {
	width: min(92vw, 620px);
	margin: 110px auto 0;
	padding: 34px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: rgba(255, 255, 255, .96);
	box-shadow: var(--shadow);
	text-align: center;
}

.message h2 {
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.15;
	color: #102033;
}

body > h1 {
	width: min(92vw, 620px);
	margin: 120px auto 18px;
	font-size: 36px;
	text-align: center;
}

body > .btn {
	margin: 10px 8px;
}

body > h1 + .btn {
	margin-left: calc(50% - 132px);
}

@media (max-width: 620px) {
	body::before {
		top: 18px;
		left: 18px;
		font-size: 16px;
	}

	.formWrapper {
		padding-top: 72px;
	}

	form,
	.message {
		padding: 24px;
	}

	form h1,
	h1,
	body > h1 {
		font-size: 28px;
	}

	.btn {
		width: 100%;
	}

	body > h1 + .btn {
		margin-left: 18px;
	}

	body > .btn {
		width: calc(100% - 36px);
		margin: 8px 18px;
	}
}
