/* XSAITE: страница входа в оформлении десктопного клиента «Почта XSAITE» */
body.task-login {
  color: #e9eef8;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 50% 42%, rgba(32, 46, 78, .60), rgba(8, 13, 26, 0) 72%),
    linear-gradient(180deg, #080d1a 0%, #141c34 100%) !important;
  background-attachment: fixed !important;
  overflow: auto;
}

/* звёзды космической темы на странице входа не нужны */
body.task-login::before {
  display: none !important;
}

body.task-login #layout {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  background: transparent !important;
}

body.task-login #layout-content {
  background: transparent !important;
}

body.task-login #layout-content::before {
  content: "";
  display: block;
  width: 150px;
  height: 20px;
  margin: 10vh auto 18px;
  background: url("/plugins/regbutton/balls.svg") center / contain no-repeat;
}

body.task-login #logo {
  content: url("/plugins/regbutton/logo.svg");
  position: static;
  top: auto;
  display: block;
  margin: 0 auto 22px;
  max-height: 64px;
  filter: none !important;
}

body.task-login #login-form {
  position: static;
  top: auto;
  width: calc(100% - 48px);
  max-width: 420px;
  margin: 0 auto 40px;
  padding: 28px 30px 24px;
  text-align: left;
  background: rgba(19, 26, 44, .92) !important;
  border: 1px solid rgba(80, 110, 160, .47) !important;
  border-radius: 22px !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.task-login #login-form table,
body.task-login #login-form tbody {
  display: block;
  width: 100%;
}

body.task-login #login-form tr {
  display: block;
  margin-bottom: 16px;
}

body.task-login #login-form td.title,
body.task-login #login-form td.input {
  display: block;
  padding: 0;
}

/* иконки input-group от Elastic: убираем, поля как в приложении */
body.task-login #login-form .input-group-prepend {
  display: none !important;
}

body.task-login #login-form .form-control {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  color: #e9eef8 !important;
  background: #0b101d !important;
  border: 1px solid rgba(80, 110, 160, .47) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: 16px;
}

body.task-login #login-form .form-control:focus {
  color: #e9eef8 !important;
  background: #0d1424 !important;
  border-color: #4cc9f0 !important;
  box-shadow: 0 0 0 2px rgba(76, 201, 240, .18) !important;
  outline: none;
}

body.task-login #login-form .form-control::placeholder {
  color: #6f7f9c;
}

body.task-login #login-form input:-webkit-autofill,
body.task-login #login-form input:-webkit-autofill:hover,
body.task-login #login-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0b101d inset;
  -webkit-text-fill-color: #e9eef8;
  caret-color: #e9eef8;
}

body.task-login #login-form .formbuttons {
  margin: 22px 0 0;
}

body.task-login #login-form .button.mainaction {
  width: 100%;
  padding: 12px 16px;
  color: #fff !important;
  background: rgba(76, 201, 240, .16) !important;
  background-image: none !important;
  border: 1.2px solid #4cc9f0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
}

body.task-login #login-form .button.mainaction:hover,
body.task-login #login-form .button.mainaction:focus {
  color: #fff !important;
  background: rgba(76, 201, 240, .28) !important;
  border-color: #7ad9f7 !important;
  box-shadow: none !important;
}

body.task-login #login-footer {
  color: #6f7f9c;
  margin-top: 14px;
  font-size: 0;
}

body.task-login #login-footer > div {
  margin-top: 0;
  padding: 0;
  background: transparent !important;
  border-radius: 0;
}

body.task-login #login-footer .btn-outline-secondary {
  display: block;
  padding: 10px 12px;
  color: #9aabc6 !important;
  background: rgba(255, 255, 255, .03) !important;
  border: 1px solid rgba(80, 110, 160, .40) !important;
  border-radius: 10px !important;
  font-size: 14px;
  letter-spacing: 0;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

body.task-login #login-footer .btn-outline-secondary:hover {
  color: #fff !important;
  background: rgba(76, 201, 240, .12) !important;
  border-color: #4cc9f0 !important;
  box-shadow: none !important;
}

@media (max-height: 720px) {
  body.task-login #layout-content::before {
    margin-top: 5vh;
  }
}
