*, *::before, *::after {
	box-sizing: border-box;
	background: none;
}
* {
	outline: none;
}
.clear::after {
	content: "";
	display: block;
	clear: both;
}
.spacer {
	flex-grow: 1;
}
.valign {
	display: flex;
	flex-direction: column;
}
.valign::before, .valign::after {
	content: "";
	display: block;
	flex-grow: 1;
}

a {
	color: inherit;
	text-decoration: underline;
}


h1 {
	margin: 0 0 0.7em;
	font-size: 2rem;
	line-height: 1em;
	font-weight: normal;
  text-align: center;
}


html {
	height: 100%;
	font-size: 1.2vw;
}
body {
	height: 100%;
	margin: 0;
	font-family: "Open Sans";
	font-size: 1rem;
	line-height: 1.5em;
	color: #222;
}


#page {
	height: 100%;
}
.wrapper {
  position: relative;
  margin: auto;
  margin-top: 3vw;
}

#logo {
  display: block;
  position: absolute;
  bottom: 100%;
  margin: auto;
  width: 25vw;
  margin-bottom: 1.5vw;
}
.box {
  display: block;
  position: relative;
  margin: auto;
  width: 25vw;
  padding: 2vw;
  border-radius: 0.4vw;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0.1vw 2.6vw rgba(0, 0, 0, 0.1);
}
.box input:not([type=submit]) {
  display: block;
  width: 100%;
  background: #F5F5F5;
  border: 0;
  padding: 0.5em 0.6em;
  margin-bottom: 0.6em;
  font: inherit;
  border: 1px solid #F2F2F2;
}
.box input[type=password] {
  letter-spacing: 0.1em;
}
.box.error {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
}

.submit_wrapper {
  display: flex;
  flex-direction: row;
}
.submit_wrapper .info {
  flex-grow: 1;
  margin-top: 0.5em;
  color: #CD554C;
}


#footer {
	position: absolute;
	width: 100%;
	margin-top: 0.5em;
	font-size: 0.8rem;
	text-align: center;
	opacity: 0.4;
}
#footer a {
	text-decoration: none;
}
#footer a:hover {
	text-decoration: underline;
}

#error {
  position: fixed;
	z-index: 5;
  top: 0.8em;
  left: 0;
  width: 100%;
  text-align: center;
  color: #CD554C;
  animation: fadein 1s;
}

#submit {
  flex-grow: 0;
  flex-shrink: 0;
	display: inline-block;
	margin-top: 0.2em;
	padding: 0.3em 1em;
	background: #4CCD6C;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0.3vw;
	color: #fff;
	font: inherit;
	cursor: pointer;
	opacity: 0.9;
}
#submit:not([disabled]):hover {
	opacity: 1;
}
#submit[disabled] {
	opacity: 0.5;
	cursor: default;
}

@keyframes fadein {
    from { top: 0; opacity: 0; }
    to   { top: 0.8em; opacity: 1; }
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}
