html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.background-layout {
  background-image: url("https://auth.services.adobe.com/img/canvas/Fotolia_235945493_XL.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  min-width: 840px;
  position: absolute;
  top: 0;
  left: 0;
}

.background-layout::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.login-layout {
  display: grid;
  position: relative;
  grid-template-rows: 60px min-content minmax(min-content, 1fr) minmax(35px,
      min-content);
  min-height: 100%;
}

.login-grid {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(12, 1fr);
  grid-row: 1 / 4;
  grid-column: 2 / 3;
  gap: 0 32px;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  align-items: center;
  margin: 0 auto;
}

.context-container {
  display: flex;
  align-items: center;
  height: 100%;
  grid-row: 1;
  grid-column: 2 / 6;
}

.context-logo {
  width: 200px;
  height: auto;
}

.login-detail-container {
  display: flex;
  align-items: center;
  height: 100%;
  width: 510px;
  grid-row: 1;
  grid-column: 7 / 12;
}

.login-detail {
  width: 100%;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid hsla(0, 0%, 100%, 0);
  padding: 40px 56px;
}

.login-page-instructions {
  color: #505050;
  font-size: 14px;
}

.login-page.form-group {
  margin-bottom: 21px;
}

.form-group {
  position: relative;
  min-height: 69px;
}

.spectrum-Heading-1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.mb-xs-1 {
  margin-bottom: 8px !important;
}

.mt-xs-1 {
  margin-top: 8px !important;
}

.mt-xs-2 {
  margin-top: 16px !important;
}

.mt-xs-3 {
  margin-top: 24px !important;
}

.mt-xs-4 {
  margin-top: 32px !important;
}

.tel-login-box,
.qrcode-login-box {
  height: 600px;
}

.spectrum-FieldLabel {
  display: block;
  box-sizing: border-box;
  padding: 4px 0 8px 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #464646;
}

.form-group .spectrum-TextField {
  height: 28px;
  padding-bottom: 0;
  padding-top: 0;
  font-size: small;
}

.code-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}

.code-TextField,
.spectrum-TextField {
  width: 100%;
  line-height: 1.15;
  background-color: #fff;
  color: #505050;
  box-sizing: border-box;
  border: 1px solid #cbcbcb;
  border-radius: 4px;
  padding: 5px 11px 7px;
  text-indent: 0;
  min-width: 48px;
  vertical-align: top;
  margin: 0;
  text-overflow: ellipsis;
  outline: 0;
}

.code-TextField {
  width: 75%;
}

.send-code {
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  margin: 0;
  vertical-align: top;
  line-height: 1.3;
  border-style: solid;
}

.send-code {
  height: auto;
  border-radius: 2px;
  border-radius: 4px;
  background-color: #fc473e;
  border-color: #fc473e;
  color: #fff;
  padding: 4px 10px;
}

.login-submit {
  display: flex;
  justify-content: space-between;
}

.spectrum-button {
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin: 0;
  border-style: solid;
  text-transform: none;
  vertical-align: top;
  text-decoration: none;
  line-height: 1.3;
}

.spectrum-button {
  border-width: 2px;
  border-style: solid;
  border-radius: 16px;
  min-height: 32px;
  height: auto;
  min-width: 72px;
  padding: 3.5px 14px 4.5px;
  font-size: 14px;
  font-weight: 700;
}

.spectrum-button--cta {
  background-color: #fc473e;
  border-color: #fc473e;
  color: #fff;
}

.spectrum-button-label {
  text-align: center;
  align-self: center;
  width: 100%;
  font-weight: lighter;
}

.rule-with-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
  margin: 24px 0;
}

.rule-with-text:after,
.rule-with-text::before {
  content: "";
  flex: 1;
  border-bottom: 1px solid #eaeaea;
}

.rule-with-text:not(:empty)::before {
  margin-right: 0.5em;
}

.rule-with-text:not(:empty)::after {
  margin-left: 0.5em;
}

.spectrum-ActionButton {
  /* 布局与显示 */
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  overflow: visible;
  margin: 0;
  cursor: pointer;

  /* 尺寸与间距 */
  width: 100%;
  height: 60px;
  min-width: 32px;
  padding: 15px;
  border-width: 2px;
  border-radius: 100px;
  margin-bottom: 15px;

  /* 字体样式 */
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  line-height: 1.3;
  user-select: none;

  /* 边框与背景 */
  border-style: solid;
  border-color: #eaeaea;
  background-color: #fff;
  color: #505050;

  /* 动画与过渡 */
  transition: background-color 0.13s ease-out, border-color 0.13s ease-out,
    color 0.13s ease-out, box-shadow 0.13s ease-out;
}

.spectrum-ActionButton-label {
  margin-left: 10px;
}

.ta-left {
  display: flex;
  align-items: center;
}

.forgetbtn {
  font-size: 14px;
}

.qrcode-login-box {
  text-align: center;
  position: relative;
}

.qrcode-login-box .iconwx {
  position: absolute;
  left: 80px;
  top: 80px;
  width: 42px;
  height: 42px;
  display: none;
}

.qrcode-login-box .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000;
  background-image: none;
  opacity: 0.8;
  z-index: 1;
}

.qrcode-login-box .tips {
  text-align: center;
  font-size: 14px;
  color: #999;
}

.qrcode-login-box .expire {
  position: absolute;
  width: 170px;
  height: 170px;
  line-height: 200%;
  font-size: 16px;
  display: none;
}

.qrcode-login-box .expire .refresh {
  position: absolute;
  z-index: 2;
  top: 30%;
  width: 100%;
  color: #fff;
}

.qrcode-login-box .expire .refresh a {
  padding: 5px 30px;
  color: #fff;
  border-radius: 3px;
  background-color: #fc473e;
  font-size: 16px;
  text-decoration: none;
}

.wxshowma {
  width: 204px;
  height: 204px;
  margin: 0 auto;
  display: block;
  position: relative;
  background: url(../images/loading.gif) center no-repeat;
}

.wxshowma .qrcode {
  width: 100%;
  height: 100%;
}

.login-footer {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  grid-row: 4 / 5;
  grid-column: 1 / 4;
  background-color: #fff;
  font-size: 12px;
  color: gray;
  border-top: 1px solid transparent;
  padding: 10px 16px;
  flex-wrap: wrap;

  span {
    color: #747474;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  a {
    color: #747474;
    padding-left: 1rem;
    padding-right: 1rem;
    border-left: 1px solid #d3d3d3;
  }
}

.spectrum-link {
  color: #fc473e;
  text-decoration: none;
  transition: color 0.13s ease-in-out;
}

@media (max-width: 1279px) {
  .login-detail-container {
    width: 460px;
  }

  .login-detail {
    padding: 16px 56px;
  }

  .spectrum-Heading-1 {
    font-size: 28px;
  }

  .login-page.form-group {
    margin-bottom: 14px;
  }

  .tel-login-box,
  .qrcode-login-box {
    height: 580px;
  }
}