html {
  height: 100%;
  line-height: 1.15;
  webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100%;
  background-color: #e8edf0;
  background-image: url("/img/bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

a {
  background-color: transparent;
}

.flex {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.bg-block {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #1b1b1b;
  z-index: 1;
  opacity: 0.5;
  /* Opacity for Modern Browsers */
  filter: alpha(opacity=50);
  /* Opacity for IE8 and lower */
  zoom: 1;
}

#auth-block {
  position: relative;
  margin: 100px 0;
  width: 530px;
  max-width: 90%;
  background: #FFFFFF;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1000;
}
#auth-block .logo {
  position: absolute;
  top: -36px;
  left: 50%;
  margin-left: -110px;
  font-size: 31px;
  text-align: center;
  line-height: 68px;
  color: #fff;
  font-weight: bold;
  width: 220px;
  height: 72px;
  background-color: #a4abb1;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.22);
}
#auth-block .logo span {
  display: block;
  height: 70px;
  line-height: 58px;
  font-size: 30px;
  text-align: center;
  color: #ffffff !important;
  font-weight: bold;
}
#auth-block .logo.load {
  background-image: url("/img/load.gif");
  background-size: 120px;
  background-repeat: no-repeat;
  background-position: center;
}
#auth-block .logo.load span {
  display: none;
}
#auth-block .form {
  min-height: 340px;
  padding-bottom: 32px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
#auth-block .form form {
  padding: 60px 94px 0;
}
#auth-block .form input {
  margin-top: 30px;
  padding: 0 15px;
  width: calc(100% - 30px);
  height: 40px;
  outline: none;
  font-size: 14px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: #ffffff !important;
  border: none;
}
#auth-block .form input::-moz-placeholder {
  color: #cccccc;
}
#auth-block .form input:-ms-input-placeholder {
  color: #cccccc;
}
#auth-block .form input::placeholder {
  color: #cccccc;
}
#auth-block .form .button {
  position: relative;
  margin-top: 40px;
}
#auth-block .form .button button {
  width: 100%;
  height: 48px;
  background-color: #b2243a;
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
}
#auth-block .links {
  padding-top: 15px;
  height: 92px;
  background-color: #FBFCFE;
  box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.15);
  border-radius: 0px 0px 26px 26px;
  text-align: center;
}
#auth-block .links a {
  display: inline-block;
  margin-top: 12px;
  font-family: Roboto;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 19px;
  color: #002E4B;
  text-decoration: none;
}
#auth-block .links a:hover {
  text-decoration: underline !important;
}

.auth-2fa {
  display: none;
}

.error {
  display: none;
  position: absolute;
  color: red;
  font-size: 12px;
}
.error.error-login, .error.error-password, .error.error-2fa {
  margin-top: 5px;
}
.error.error-status, .error.error-ip {
  top: -15px;
}

#static-block {
  padding: 40px 0;
  font-family: Roboto;
  font-style: normal;
}
#static-block .block {
  position: relative;
  margin: 0 auto;
  width: 910px;
  max-width: calc(90% - 60px);
  background: #FFFFFF;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 26px;
  color: #002E4B;
}
#static-block .title {
  height: 92px;
  line-height: 92px;
  text-align: left;
  padding-left: 70px;
  box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.15);
  border-radius: 26px 26px 0px 0px;
  font-size: 24px;
  font-weight: bold;
}
#static-block .body {
  padding: 12px 40px 20px;
  font-size: 16px;
  line-height: 32px;
}
#static-block .body.privacy-policy p {
  text-indent: 20px;
}
#static-block .body .active {
  color: red;
}
#static-block .links {
  padding: 0px 40px 40px;
  text-align: right;
}
#static-block .links a {
  text-decoration: none;
  color: #3c8196;
}
#static-block .row {
  display: flex;
  flex-wrap: wrap;
  padding: 20px 8px 0;
}
#static-block .row a, #static-block .row span {
  width: 50%;
  text-align: center;
  height: 50px;
  line-height: 47px;
  border-bottom: 2px solid #B0BECE;
  text-decoration: none;
  color: #002E4B;
  font-weight: bold;
}
#static-block .row a.active, #static-block .row span.active {
  border-bottom: 3px solid #FFD200;
}

@media (max-width: 768px) {
  #auth-block .form {
    min-height: 310px;
  }
  #auth-block .form form {
    padding: 50px 20px 0;
  }
  #auth-block .form .button {
    margin-top: 30px;
  }

  #static-block {
    padding: 20px 0;
  }
  #static-block .block {
    max-width: calc(98% - 10px);
  }
  #static-block .title {
    height: 72px;
    line-height: 74px;
    padding-left: 0px;
    font-size: 20px;
    text-align: center;
  }
  #static-block .body {
    padding: 12px 10px 20px;
    line-height: 24px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #auth-block .form {
    min-height: 320px;
  }
  #auth-block .form form {
    padding: 55px 70px 0;
  }
  #auth-block .form .button {
    margin-top: 30px;
  }
}
