#err-box {
	display: none;
	text-align: center;
	background: #fdf3f3;
	padding: 6px;
	border: 1px solid #de4242;
	box-sizing: border-box;
	border-radius: 2px;
	color: #de4242;
	margin-bottom: 10px;
}

.flex, .flex-centered, .center-align, .center-justify {
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
}

body {
	height: 100vh;
	margin: 0;
	align-items: center;
	justify-content: center;
	background: #cfd9e3;
	font-family: 'Open Sans', sans-serif;
}

a {
	color: #2081d4;
	font-weight: bold;
	text-decoration: none;
}

.mt-5 {
	margin-top: 5px !important;
}

#main-wrapper {
	min-height: 100%;
	padding: 20px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
}

#main-box {
	flex-direction: column;
	transition: transform 300ms, opacity 300ms;
}

body.switcheroo #main-box {
	-webkit-transform: scale(0.8);
	-moz-transform: scale(0.8);
	-ms-transform: scale(0.8);
	transform: scale(0.8);
	opacity: 0;
}

#logreg-box {
	background: white;
	margin: 30px 0;
	padding: 15px;
	box-shadow: 2px 2px 3px rgba(0,0,0,0.1);
	border-radius: 3px;
	z-index: 1000;
	box-sizing: border-box;
	min-width: 300px;
}

#logreg-box.minified > * {
	display: none;
}

#logreg-box.minified #login-header {
	display: block !important;
	margin-top: 30px;
	transition: margin-top 200ms;
}

#logreg-header {
	text-align: center;
	font-size: 140%;
	color: #808a95;
	font-weight: bold;
}

#logreg-subtitle {
	font-weight: 200;
	text-align: center;
	color: #818fa2;
}

#logreg-subtitle:before {
	content: "";
	display: block;
	position: relative;
	width: 30px;
	border-bottom: 1px solid #a9b3be;
	left: 50%;
	margin: 7px -15px;
}

input {
	display: block;
	width: 100%;
	padding: 5px;
	font: inherit;
	text-align: center;
	margin-top: 10px;
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom: 2px solid #dee0e7;
	outline: none;
	box-sizing: border-box;
}

input:focus {
	border-color: #999;
}

input::-webkit-input-placeholder {
	font-weight: 200;
	font-size: 80%;
	text-transform: uppercase;
}

input::-moz-placeholder {
	font-weight: 200;
	font-size: 80%;
	text-transform: uppercase;
}

input:-ms-input-placeholder {
	font-weight: 200;
	font-size: 80%;
	text-transform: uppercase;
}

input:-moz-placeholder {
	font-weight: 200;
	font-size: 80%;
	text-transform: uppercase;
}

#confirm {
	position: relative;
	width: 36%;
	margin-top: 10px;
	left: 32%;
	border: none;
	font: inherit;
	text-transform: uppercase;
	padding: 7px;
	background: #247de0;
	color: white;
	font-weight: bold;
	font-size: 80%;
	border-radius: 3px;
	cursor: pointer;
	outline: none;
	box-sizing: border-box;
}

#confirm:focus {
	background: #275690;
}

#confirm[disabled] {
	background: #eee;
	color: #999;
	pointer-events: none;
}

#logreg-footer {
	text-align: center;
	font-size: 90%;
	color: #66717e;
}

#msg-loader {
	display: none;
	position: absolute;
	font-size: 20px;
	width: 5em;
	height: 3em;
	background: #f1f1f1;
	border-radius: 3em;
	box-shadow: 3px 3px rgba(0,0,0,0.1);
	pointer-events: none;
	opacity: 0;
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	-ms-transform: scale(0.3);
	transform: scale(0.3);
	transition: transform 300ms, opacity 300ms;
	z-index: 1000;
}

body.switcheroo #msg-loader {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

.loader-circle {
	position: relative;
	float: left;
	width: 0.7em;
	height: 0.7em;
	margin: 0 0.2em;
	left: 0.85em;
	top: 1.3em;
	border-radius: 50%;
	background: #9b9b9b;
	animation: bob 1s infinite;
}

.loader-circle:nth-of-type(2) {
	animation-delay: 100ms;
}

.loader-circle:nth-of-type(3) {
	animation-delay: 200ms;
}

@keyframes bob {
	25% {
		top: 0.7em;
	}
	50% {
		top: 1.45em;
	}
}

@media screen and (max-aspect-ratio: 1/1) {
	#logreg-header {
		font-size: 120%;
	}

	#logreg-footer {
		font-size: 85%;
	}
}

/*Validate style*/
.inp-container {
	position: relative;
}

.inp-container.focused[data-error]:before {
	content: "";
	display: block;
	position: absolute;
	left: 50%;
	bottom: 100%;
	margin-left: -7px;
	margin-bottom: -3px;
	border: 7px solid transparent;
	border-top-color: #c72d2d;
	pointer-events: none;
	z-index: 1000;
}

.inp-container.focused[data-error]:after {
	content: attr(data-error);
	display: block;
	position: absolute;
	left: 50%;
	bottom: 100%;
	margin-bottom: 10px;
	padding: 8px 10px;
	background: #c72d2d;
	border-radius: 3px;
	color: white;
	white-space: nowrap;
	font-size: 70%;
	line-height: 1;
	pointer-events: none;
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
	z-index: 1000;
}

input, textarea {
	display: block;
	width: 280px;
	padding: 5px;
	font: inherit;
	margin-bottom: 7px;
	outline: none;
	border-radius: 2px;
	box-sizing: border-box;
	background: #f9f9f9;
}

.inp:focus {
	border-color: #999;
}

.vi-error > .inp {
	border-color: #d54848;
	background: #fff5f5;
	color: #b53a3a;
}

.vi-error > .inp:focus {
	border-color: #a30c0c !important;
}

textarea {
	resize: vertical;
	min-height: 60px;
}

.inp::-webkit-input-placeholder { 
	color: #aaa;
}

.inp::-moz-placeholder {
	color: #aaa;
}

.inp:-ms-input-placeholder {
	color: #aaa;
}

.inp:-moz-placeholder {
	color: #aaa;
}

.vi-error > .inp::-webkit-input-placeholder { 
	color: #b53a3a;
}

.vi-error > .inp::-moz-placeholder {
	color: #b53a3a;
}

.vi-error > .inp:-ms-input-placeholder {
	color: #b53a3a;
}

.vi-error > .inp:-moz-placeholder {
	color: #b53a3a;
}

.logreg-btn {
	background: #5a98db;
	color: white;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 100%;
	padding: 7px 0;
	border: none;
	outline: none;
	margin-top: 15px;
	cursor: pointer;
	width: 100%;
	font-family: inherit;
}

.logreg-btn:focus {
	background: #427ab7;
}

.logreg-btn[disabled] {
	color: #ccc;
	background: #eee;
	cursor: not-allowed;
}

.logreg-box a, .tab a {
	display: block;
	text-align: center;
	text-decoration: none;
	margin-top: 15px;
	font-size: 90%;
	font-weight: bold;
	color: #5a98db;
}

[data-inptype="longtext"] {
	position: relative;
}

input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
	box-shadow: inset 0 0 0 50px #fdffe8;
	-webkit-text-fill-color: #717002;
	border-color: #d3e653;
}

.vi-error > input:-webkit-autofill,
.vi-error > textarea:-webkit-autofill,
.vi-error > select:-webkit-autofill {
	box-shadow: inset 0 0 0 50px #fff5f5;
}