body {
  margin: 0;
  height: 100vh;
  width: 100%;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1px;
  background: #ccc;
  color: #000;
  line-height: normal;
}

a,
input,
button {
  font-family: "Source Sans 3", sans-serif;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow: auto;
  animation: opacity-in 0.5s ease-in-out;
}

.main-wrapper.hidden {
  display: none;
}

.main-wrapper .header-wrapper {
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-size: 42px;
  letter-spacing: 2px;
  margin: 30px 0;
}

.main-wrapper .header-wrapper .logo {
  display: flex;
  align-items: center;
}

.main-wrapper .header-wrapper .logo img {
  padding-top: 2px;
  height: 40px;
}

.main-wrapper .header-wrapper .white {
  color: #fff;
}

.main-wrapper .header-wrapper .server-word {
  display: flex;
  align-items: center;
  color: #333;
}

.main-wrapper .header-wrapper .server-word .trademark {
  color: #666666;
  font-size: 24px;
  padding-bottom: 12px;
  padding-right: 8px;
  margin-left: -2px;
}

.main-wrapper .header-wrapper .x-sign {
  transform: scale(1.3, 1);
}

.main-wrapper .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  width: calc(100% - 40px);
  max-width: 400px;
}

.main-wrapper .content-wrapper #title {
  width: 100%;
  font-weight: 400;
  font-size: 24px;
}

.main-wrapper .content-wrapper #title.hidden {
  display: none;
}

.main-wrapper .content-wrapper #message-container {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 100%;
}

.main-wrapper .content-wrapper #message-container.error {
  color: #ec392e;
}

.main-wrapper .content-wrapper #message-container.hidden {
  display: none;
}

.main-wrapper .content-wrapper #form-wrapper {
  width: 100%;
  font-size: 16px;
}

.main-wrapper .content-wrapper #form-wrapper.hidden {
  display: none;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  margin-top: 14px;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .item {
  margin-bottom: 3px;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .item-label {
  position: absolute;
  top: 27px;
  left: 0;
  color: #656565;
  font-weight: 400;
  font-size: 14px;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .input-item.animated + .item-label {
  transition: top 0.2s ease-in-out, left 0.2s ease-in-out, color 0.2s ease-in-out;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .item-label.error {
  color: #ec392e !important;
  letter-spacing: 0;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .input-item {
  font-size: 16px;
  line-height: 1em;
  padding: 5px 0;
  color: #222222;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid #9e9e9e;
  border-left: none;
  border-radius: 0;
  text-indent: 0;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 18px 0 0 0;
  transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .input-item:focus {
  outline: none;
  border-bottom: 2px solid #fff;
  color: #000;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .input-item:not(:focus) + .item-label:hover {
  cursor: text;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .input-item:focus + .item-label {
  position: absolute;
  top: 3px;
  left: 0;
  color: #fff;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .input-item:-webkit-autofill + .item-label {
  position: absolute;
  top: 3px;
  left: 0;
  transition: none !important;
}

.main-wrapper .content-wrapper #form-wrapper .item-wrapper .input-item:not(:placeholder-shown) + .item-label {
  position: absolute;
  top: 3px;
  left: 0;
}

.main-wrapper .content-wrapper #form-wrapper #submit-button {
  display: flex;
  margin-top: 20px;
  border-radius: 0;
  outline: none;
  border: 1px solid #9e9e9e;
  padding: 8px 20px;
  font-size: 14px;
  margin-left: auto;
  font-weight: 400;
  color: #000;
  background: #fff;
}

.main-wrapper .content-wrapper #form-wrapper #submit-button:focus {
  border: 1px solid #006ece;
  color: #006ece;
  background: #f2f9ff;
}

.main-wrapper .content-wrapper #form-wrapper #submit-button:hover {
  cursor: pointer;
  border: 1px solid #006ece;
  color: #006ece;
  background: #f2f9ff;
}

.main-wrapper .content-wrapper #bottom-line {
  margin-top: 30px;
  font-weight: 400;
}

.main-wrapper .content-wrapper #bottom-line.hidden {
  display: none;
}

.main-wrapper .content-wrapper #bottom-line .sign-in-link {
  text-decoration: none;
  color: #006ece;
}

.main-wrapper .content-wrapper #bottom-line .sign-in-link:hover {
  color: #005cb3;
  cursor: pointer;
}

.loader {
  position: fixed;
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  bottom: 50%;
  height: 100%;
  width: 100%;
  top: 0;
  border: none;
}

.loader.hidden {
  display: none;
}

.loader .spinner {
  position: relative;
  width: 50px;
  height: 50px;
}

.loader .spinner:before {
  position: absolute;
  width: 50px;
  height: 50px;
  margin: 0;
  content: "";
  box-sizing: border-box;
  top: 0;
  left: 0;
  z-index: 1002;
  font-size: 10px;
  border-left: 1px solid;
  border-radius: 50%;
  animation: spinner .7s linear infinite;
}

@media (max-width: 480px) {
  .main-wrapper .header-wrapper {
    transform: scale(0.7);
  }
}

@media (max-width: 360px) {
  .main-wrapper .header-wrapper {
    transform: scale(0.5);
  }
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

@keyframes opacity-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
