*,
*:after,
*:before {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.clearfix:after {
	content: "";
	display: table;
	clear: both;
}

html, body
{
	position: absolute;
	height: 100%;
	width: 100%;
	background: rgb(243, 243, 243);
	color: rgba(0,0,0,0.6);
	font-family: Roboto,sans-serif;
	user-select: none;
}

#login {
	position: relative;
	top: calc(50% - 70px);
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	margin: 0 auto;

	height: 410px;
	width: 95%;
	max-width: 400px;
	min-width: 200px;
	padding: 10px;

	background: white;
	border-radius: 3px;
	box-shadow: 0 1px 5px 0 rgba(0,0,0,0.26);
}

#login > a > svg {
	position: relative;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	float: right;
	cursor: pointer;
}

#login .container {
	display: block;
	max-width: 240px;
	margin: 0 auto;
}

#login .container span {
	display: block;
	font-size: 0.9em;
	text-align: center;
}

#bottombar {
	padding: 0 15px;
	height: 30px;
	line-height: 30px;
}

.form-group {
	position: relative;
	margin: 35px auto 20px;
}

.form-control {
	display: block;
	height: 36px;
	width: 100%;
	border: none;
	border-radius: 0;
	font-size: 0.9em;
	font-family: inherit;
	font-weight: 300;
	padding: 0;
	background-color: transparent;
	box-shadow: none;
	border-bottom: 1px solid rgba(117, 117, 117, 0.15);
}

.form-control:focus {
	border-bottom: 2px solid #971d20;
	outline: none;
	box-shadow: none;
}

.float-label {
	position: absolute;
	left: 0;
	top: 10px;
	font-size: 1em;
	color: #999;
	font-weight: 300;
	transition: 0.2s ease all;
}

.form-control:focus ~ .float-label, .form-control:valid ~ .float-label {
	top: -15px;
	font-size: 0.75em;
	color: #971d20;
}

.form-group .error-onjuist,
.form-group .error {
	position: absolute;
	width: 100%;
	left: 0;
	top: 38px;
	font-size: 0.7em;
	color: #d34336;
	font-weight: 300;
	transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) all;
	opacity: 0;
}

.form-group .error svg,
.form-group .error-onjuist svg {
	position: absolute;
	right: 0;
	width: 15px;
	height: 15px;
	float: right;
	fill: #d34336;
}

.form-group[data-error="true"] .float-label {
	color: #d34336;
}

.form-group[data-error="true"] .form-control {
	border-bottom: 1px solid #971d20;
}

.form-group[data-error="true"] .form-control:focus {
	border-bottom: 2px solid #971d20;
}

.form-group[data-error="true"] .error,
.form-group[data-loginerror="true"] .error-onjuist {
	opacity: 1;
}

input[type="checkbox"]
{
	display: none;
	visibility: hidden;
}

input[type="checkbox"] + label
{
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 500;
	transition: 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

input[type="checkbox"] + label:before
{
	display: inline-block;
	content: "";
	line-height: 30px;
	vertical-align: middle;
	margin: 0 10px 3px 0;
	width: 18px;
	height: 18px;
	background-color: #fff;
	border: 2px solid #5a5a5a;
	border-radius: 2px;
}

input[type=checkbox]:checked + label:before
{
	background-image: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIwcHgiIGhlaWdodD0iMTVweCIgdmlld0JveD0iMCAwIDIwIDE1Ij4NCjxwb2x5Z29uIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iNy4xNDMsMTQuOTM4IDAsNy43OTYgMi4wMjEsNS43NzYgNy4xNDMsMTAuODk4IDE3Ljk3OSwwLjA2MiAyMCwyLjA4MiAiLz4NCjwvc3ZnPg0K');
	background-color: #971d20;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 11px auto;
	border-color: #971d20;
}

button[type="submit"] {
	position: relative;
	float: right;
	font-family: inherit;
	font-weight: 100;
	font-size: 0.9em;
	border: 0;
	padding: 5px 15px;
	margin-left: 10px;
	cursor: pointer;
	background: #971d20;
	color: #fff;
	box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}

button[type="submit"]:focus {
	outline: none;
}

[data-ripple] {
	position: relative;
	overflow: hidden;
	transition: box-shadow .4s;
	cursor: inherit;
}

[data-ripple] .touch {
	background: rgba(255, 255, 255, 0.1);
	pointer-events: none;
	border-radius: 100%;
}

.logo {
	display: block;
	height: 120px;
	margin: 20px auto 20px;
}

label {
	cursor: text;
}

/* On screen height X with #login height Y, the top of #login T is at (X - Y) / 2.
   We want to fall over to the fixed positioning when #login is 75px from the top,
   so set T = 75px and solve for X to get the max-height value here. */
@media (max-height: 560px), (max-height: 580px) and (max-width: 300px) {
	#login {
		position: relative;
		top: auto;
		transform: none;
		margin-top: 5px;
	}
}

@media (max-width: 300px) {
	#login {
		height: 430px;
	}

	#bottombar {
		padding: 0;
		margin: 25px auto 20px;
	}

	button[type="submit"] {
		float: none;
		width: 100%;
	}
}
