
html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*, *::before, *::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

body {
  color: #eee;
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
}

h2 {
  font-size: 30px;
}

.main {
  display: block;
  min-height: 300px;
  margin-right: auto;
  margin-left: auto;
  padding: 16px;
}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;

}

.flip {
  display: block;
  /* Fallback */
  display: flex;
  justify-content: center;
  text-align: center;
}

.login {
  display: block;
  max-width: 320px;
  margin: 16px auto;
  padding: 16px;
  font-size: 1.125em;
  background-color: #333;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#333));
  background-image: linear-gradient(to bottom, #444 0%, #333 100%);
  background-repeat: repeat-x;
  border: 10px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px 2px rgba(0, 0, 0, .25) inset;
}

.login-reveal {
  display: inline-block;
  min-width: 300px;
  min-height: 300px;
  margin-right: auto;
  margin-left: auto;
  padding: 24px 8px;
  border: none;
  cursor: pointer;
}

.login-reveal__img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.login__form {
  margin-right: auto;
  margin-left: auto;
}

.login__heading {
  clear: both;
  margin: 0 auto 24px;
  text-transform: uppercase;
}

.login__item {
  display: block;
  margin: 0 auto;
}

.login__item + .login__item {
  margin-top: 16px;
}

.login__item:last-child {
  margin-top: 21px;
}

.login__label {
  display: block;
  /* Fallback */
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 4px 0 8px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

/* IcoMoon.io */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.icon-user {
  width: .7142857142857142em;
}

.icon-lock {
  width: .6428571428571428em;
}

.login__icon {
  display: inline-block;
  /* Fallback */
  display: flex;
  flex: 0 1 auto;
  font-size: 1.25em;
  opacity: .8;
}

.login__description {
  display: inline-block;
  /* Fallback */
  display: flex;
  flex: 0 1 auto;
  padding-top: .125em;
  padding-left: .5em;
}

.login__input {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 8px;
  color: #222;
  background-color: #ddd;
  border: none;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3333) inset;
  -webkit-transition: background .25s ease-in-out;
  transition: background .25s ease-in-out;
}

.login__input:hover, .login__input:focus, .login__input:active {
  color: #000;
  background-color: #fff;
}

.login__submit {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 12px 16px;
  color: #111;
  /* Fallback */
  color: rgba(0, 0, 0, .875);
  font-size: 1.125em;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 0 -1px 2px rgba(255, 255, 255, .75);
  background-color: #bbb;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#bbb));
  background-image: linear-gradient(to bottom, #ddd 0%, #bbb 100%);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background .25s ease-in-out;
  transition: background .25s ease-in-out;
}

.login__submit:hover, .login__submit:focus {
  background-color: #ddd;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
  background-image: linear-gradient(to bottom, #fff 0%, #ddd 100%);
}

.login__submit:active {
  background-color: #fff;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#fff));
  background-image: linear-gradient(to bottom, #ddd 0%, #fff 100%);
}

.main {
  clear: both;
  margin-right: auto;
  margin-left: auto;
  padding: 16px 8px;
}

.main__wrapper {
  margin-right: auto;
  margin-left: auto;
}

/* Flip animation */
.flip-container {
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.flip-container.is-active .flip {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.flip {
  position: relative;
  -webkit-transition: -webkit-transform .5s ease-in-out;
  transition: transform .5s ease-in-out;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.login-reveal, .login {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.login-reveal {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transition: -webkit-transform .75s ease-in-out;
  transition: transform .75s ease-in-out;
}

.login-reveal:hover, .login-reveal:focus {
  -webkit-animation: .75s ease-in-out 0s 1 alternate both scale-bounce;
  animation: .75s ease-in-out 0s 1 alternate both scale-bounce;
}

@-webkit-keyframes scale-bounce {
  from {
      -webkit-transform: scale(1);
  }

  40% {
      -webkit-transform: scale(1.03125);
  }

  60% {
      -webkit-transform: scale(1);
  }

  to {
      -webkit-transform: scale(1.015625);
  }
}

@keyframes scale-bounce {
  from {
      transform: scale(1);
  }

  40% {
      transform: scale(1.03125);
  }

  60% {
      transform: scale(1);
  }

  to {
      transform: scale(1.015625);
  }
}

.login {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

form label.error {
  color: #fff;
  font-size: 20px;
  top: 100%;
  text-align: center;
  flex: 0 0 0;
  right: 0;
  left: 0;
}

.alert {
  padding: 10px;
}