* {
	border: none;
	outline: none;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-webkit-font-smoothing: subpixel-antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-user-select: none;
	user-select: none;
}
body {
	margin: 0;
	height: 100vh;
	background-color: #04041a;
}
body::before {
	position: fixed;
	display: block;
	content: "";
	background-color: #002244;
	left: 50%;
	width: 100%;
	top: -50px;
	height: calc(100% + 100px);
	transform: rotate(-5deg);
	transform-origin: left center;
	will-change: left, transform, top, height;
}
body[logged]::before {
	animation: lanim1 1s linear forwards;
}
body, input, textarea, button {
	font: 16px/16px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	color: #ddd;
}
@keyframes lanim1 {
	0% {
		left: 50%;		
		transform: rotate(-5deg);
	}
	49% {
		left: 0;
		transform: rotate(0deg);
	}
	50% {
		top: 0;
		height: calc(100% + 100px);
	}
	100% {
		top: 0;
		left: 0;
		transform: rotate(0deg);
		height: 50px;
	}
}
div.loginpage {
	position: fixed;
	display: flex;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	justify-content: center;
	align-items: center;
}
div.loginpage div {
	position: relative;
	display: block;
	flex: 1;
	text-align: center;
}
img.loginavatar {
	width: 70%;
}
img.loginlogo {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 200px;
	transition: width 1s, top 1s;
}
body[logged] img.loginlogo {
	width: 120px;
	top: 13px;
}
div.loginform {
	position: absolute;
	display: block;
	width: 50%;
	max-width: 250px;
	min-width: 200px;
	left: 50%;
	transform: translateX(-50%);
	padding-bottom: 50px;
}
div.loginform input {
	position: relative;
	display: block;
	width: 100%;
	padding: 7px;
	background: none;
	border: none;
	border-bottom: 2px solid #333;
	margin-bottom: 15px;
	color: #fff;
}
div.loginform input:focus {
	border-bottom-color: #3886ba;
}
div.loginform input:-webkit-autofill {
	box-shadow: 0 0 0px 1000px #002244 inset;
	-webkit-text-fill-color: #fff;
	caret-color: #3B8FC5;
}
div.loginform button {
	position: absolute;
	display: block;
	right: 0;
	padding: 10px 25px;
	cursor: pointer;
	background-color: #3988bc;
	color: #fff;
	bottom: 0;
}
div.loginform button:hover {
	background-color: #94fe02;
	color: #000;
}
div.loginform button[disabled] {
	pointer-events: none;
	opacity: 0.5;
	filter: grayscale(1);
}
loginerror {
	position: absolute;
	display: block;
	left: 0;
	width: 100%;
	bottom: 200px;
	text-align: center;
	background-color: #e83a3a;
	padding: 20px;
	border-radius: 10px;
}
loginerror::after {
	position: absolute;
	display: block;
	content: "";
	width: 20px;
	height: 20px;
	background-color: #e83a3a;
	left: 10px;
	bottom: -7px;
	transform: rotate(60deg);
}
tmessage {
	position: absolute;
	display: block;
	left: 50%;
	width: 40%;
	top: 20%;
	color: #fff;
}