/* login */
.login-home {
  .home-head {
    background-color: transparent;
    border: none;
  }

  .head-logo {
    position: absolute;
    width: 140px;
    height: 24px;
    top: 48px;
    left: 48px;
    background-image: url(../images/bg-logo.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .home-body {
    background-image: url(../images/bg-login.png);
    background-repeat: no-repeat;
    background-size: cover;
    overflow: auto;
  }
  .login-action {
    position: absolute;
    top: 50px;
    right: 20px;
    z-index: auto;

    &-btn {
      display: inline-block;
      vertical-align: top;
      border: 1px solid #fff;
      border-radius: 5px;
      padding: 6px 10px;
      line-height: 1;
      color: #fff;
      margin-left: 10px;
      cursor: pointer;

      > i {
        margin-right: 5px;
      }

      &:hover {
        opacity: 0.8;
      }
    }
  }
}

.login {
  position: absolute;
  width: 748px;
  height: 372px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.login-spin {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 100%;
  text-align: center;
  padding-top: 266px;

  background-image: url(../images/bg-login-spin.png);
  background-repeat: no-repeat;
  background-position: 0 20px;
  background-size: 100% auto;
  overflow: auto;

  > h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    margin-bottom: 14px;
    color: var(--color-text-dark);
  }
  > h4 {
    font-weight: 400;
    font-size: 20px;
    color: #8c8c8c;
    line-height: 28px;
    font-style: normal;
  }
}

.login-body {
  position: absolute;
  right: 0;
  top: 0;
  padding: 32px;
  width: 344px;
  height: 372px;
  background: #ffffff;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  border: 1px solid #e5e6eb;

  .login-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;

    &-title {
      font-weight: bold;
      font-size: 24px;
      color: #262626;
      line-height: 32px;
    }
    &-subtitle {
      font-weight: 400;
      font-size: 16px;
      color: #8c8c8c;
      line-height: 24px;
      margin-top: 4px;
    }
  }

  .login-btn {
    height: 32px;
    padding: 5px 16px;
    border-radius: 4px;
    line-height: 20px;
    text-align: center;

    &:hover {
      color: var(--color-primary);
      border-color: var(--color-primary);
    }
  }
  .btn-setting {
    &::before {
      content: '';
      display: inline-block;
      vertical-align: middle;
      margin-right: 3px;
      margin-top: -2px;
      width: 16px;
      height: 16px;
      background-image: url(../images/icon-setting.png);
      background-size: 100% 100%;
    }

    &:hover {
      &::before {
        background-image: url(../images/icon-setting-act.png);
      }
    }
  }
  .login-submit {
    width: 100%;
    border-radius: 4px;
    margin-top: 4px;
  }
}
