.shim-layer {
  display: none;
  position: absolute;
  background: transparent;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.top-panel__auth-window {
  position: absolute;
  top: 39px;
  right: 10px;
  color: white;
  background: #68a8db;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s;
}

.top-panel__auth-window--translate {
  transform: translateY(-1000px);
}

.top-panel__auth-window--opacity {
  opacity: 1;
}

.top-panel__auth-container {
  width: 200px;
  padding: 10px 20px 15px 20px;
  box-sizing: content-box;
}

.top-panel__auth-window label {
  display: block;
  margin: 0 0 5px 0;
}

.top-panel__auth-window input[type="text"],
.top-panel__auth-window input[type="password"] {
  display: block;
  height: 28px;
  line-height: 28px;
  width: 100%;
  margin: 0 0 5px 0;
}

.top-panel__auth-window .button {
  background: #2b76b2;
  color: white;
}

.auth-window__submit-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sign-in-section__reference {
  padding: 0 !important;
  color: #ffffff !important;
  background: none !important;
  text-decoration: underline !important;
}

.sign-in-section__reference:hover {
  background: none !important;
}

.auth-window__text-field {
  border: 1px solid #2b76b2 !important;
}

.auth-window__window-error {
  background: #fdd;
  padding: 4px 7px;
  margin: 0 0 4px 0;
  color: #f00;
  font-size: 10pt;
  border-radius: 4px;
}

.sign-in-section__register,
.sign-in-section__register:hover {
  color: #fff;
  display: block;
  margin: 4px 0 0 0;
}

.auth-window__section-wrapper {
  text-align: right;
}

.auth-window__hint {
  display: block;
  margin-bottom: 10px;
}

.auth-window__window-error,
.auth-window__window-info {
  margin-top: 5px;
}

.auth-window__window-info {
  font-size: 10pt;
}

.auth-window__captcha-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.auth-window__captcha:hover:after {
  content: '\f021';
  display: inline-block;
  font-family: FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  color: #2b76b2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  width: 100px;
  height: 28px;
  background: #ffffff;
  left: 0;
  top: 0;
  text-align: center;
  line-height: 28px;
  font-size: 21px;
  opacity: 0.8;
  -webkit-transition: opacity ease-out 0.15s !important;
  -moz-transition: opacity ease-out 0.15s !important;
  -o-transition: opacity ease-out 0.15s !important;
  transition: opacity ease-out 0.15s !important;
}

.auth-window__captcha {
  padding: 0 !important;
}

.auth-window__captcha:hover {
  background: initial !important;
}

.auth-window__captcha:active:after {
  opacity: 1;
}

.auth-window__captcha-image {
  width: 100px;
  height: 28px;
  margin: 0 4px 0 0;
}

.top-login__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.top-login__social-icon {
  font-size: 17px;
  background: #fff;
  width: 36px;
  height: 23px;
  line-height: 24px;
  display: inline-block;
  text-align: center;
  border-radius: 4px;
  margin: 0 0 4px 0;
  flex: 1 36px;
}

.top-login__social-icon-gap {
  margin-left: 4px;
}

.top-login__social-icon--gosuslugi {
  width: 100%;
  height: 45px;
  line-height: 45px;
  font-size: 41px;
  display: flex;
  text-decoration: none;
  justify-content: center;
  flex: 1 100%;
}

.top-login__social-icon--gosuslugi span {
  font-size: 13pt;
  margin-left: 5px;
}

.auth-window__back-section {
  display: flex;
  justify-content: flex-end;
}

.auth-window__back-button:hover {
  color: #ffffff;
}

.auth-window__back-button .fa {
  padding: 0;
  font-size: 15pt;
  margin: 0 10px;
}

.auth-window__back-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding-right: 0;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  /* To make it work in the mobile version */
  .login-section-active {
    overflow: hidden;
  }

  .login-section-active .top-panel__auth-window {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
  }

  .login-section-active .top-panel__auth-container {
    width: initial;
  }
}
