$family_zh: 'PingFangSC-Regular', 'Microsoft YaHei', 'PingFangSC', 'Helvetica', sans-serif, 'Arial' !important;
$family_us: 'Helvetica', 'PingFangSC-Regular', 'Microsoft YaHei', 'STHeiti', sans-serif, 'Arial' !important;

.login {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 21;
  display: flex;
  justify-content: center;
  align-items: center;

  & * {
    box-sizing: content-box;
  }

  &-popup {
    width: 335px;
    padding: 0 24px 18px;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    position: relative;
  }

  &-title {
    font-family: 'PingFangSC-Medium';
    font-size: 20px;
    line-height: 20px;
    padding: 48px 0 8px;
    color: #333;
    letter-spacing: 0;
    margin: 0;
    font-weight: normal;
  }

  &-desc {
    padding-bottom: 8px;
    font-size: 12px;
    line-height: 12px;
    font-family: $family_zh;
    color: #999;
    letter-spacing: 0;
    margin: 0;
  }

  &-close {
    width: 16px;
    height: 16px;
    padding: 16px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
  }

  &-error {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 14px;

    &-text {
      display: block;
      position: relative;
      box-sizing: border-box;
      font-family: $family_zh;
      font-size: 12px;
      color: #f04;
      letter-spacing: 0;
      line-height: 12px;
      padding-left: 4px;
    }

    &-img {
      width: 14px;
      height: 14px;
    }
  }

  &-button {
    color: #fff;
    text-align: center;
    border: none;
    background: #1996f9;
    box-shadow: 0 22px 17px -18px rgba(25, 150, 249, 0.9);
    font-family: $family_zh;
    letter-spacing: 0;
    box-sizing: border-box;
    margin: 28px auto 12px;
    font-size: 16px;
    display: block;
    width: 276px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    cursor: pointer;
    padding: 0;

    &:focus {
      outline: none;
    }

    &:active {
      outline: none;
    }

    &-disabled {
      background: #aaa;
      pointer-events: none;
      box-shadow: 0 22px 16px -18px rgba(0, 0, 0, 0.32);
    }
  }

  &-box {
    width: 287px;
    display: flex;
    margin: 0 auto;
    position: relative;
    justify-content: left;
    border-bottom: 1px solid #f0f0f8;
  }

  &-prefix {
    height: 54px;
    font-size: 14px;
    appearance: none;
    border: none;
    background: none;
    position: relative;
    color: #333;
    padding-right: 12px;
    font-family: $family_zh;

    &:focus {
      outline: none;
    }

    &-wraper {
      margin-right: 14px;
      position: relative;

      &::before,
      &::after {
        width: 8px;
        content: '';
        height: 1px;
        position: absolute;
        top: 50%;
        background: #ccc;
      }

      &::before {
        right: 5px;
        transform: rotate(45deg);
      }

      &::after {
        right: 0;
        transform: rotate(-45deg);
      }
    }
  }

  &-input {
    height: 14px;
    font-size: 14px;
    font-family: $family_zh;
    line-height: 14px;
    border: none;
    width: 100%;
    position: relative;
    color: #333;
    padding: 20px 0;

    &:focus {
      outline: none;
    }
  }

  &-smscode {
    font-size: 14px;
    height: 14px;
    line-height: 14px;
    width: 70px;
    text-align: right;
    right: 0;
    font-family: $family_zh;
    letter-spacing: 0;
    position: absolute;
    color: #1996f9;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;

    &-disabled {
      color: #999;
      cursor: not-allowed;
    }

    &-wraper {
      position: relative;
      width: 116px;

      &::before {
        height: 14px;
        width: 1px;
        left: 0;
        content: '';
        position: absolute;
        top: 50%;
        background: #f0f0f8;
        transform: translateY(-50%);
      }
    }
  }
  // english start
  &-english {
    &-title {
      font-family: $family_us;
      font-size: 20px;
      color: #333;
      letter-spacing: 0;
      line-height: 20px;
      font-weight: normal;
      margin: 0;
      padding: 48px 0 16px;
    }

    &-input {
      @extend .login-input;

      font-family: $family_us;
    }

    &-smscode {
      @extend .login-smscode;

      font-family: $family_us;
    }

    &-button {
      @extend .login-button;

      font-family: $family_us;
    }

    &-wraper {
      @extend .login-smscode-wraper;

      width: 103px;
    }
  }
  // english end

  & input::-webkit-outer-spin-button,
  & input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
  }

  & input[type="number"] {
    -moz-appearance: textfield;
  }

  & input::-webkit-input-placeholder {
    color: #999;
    line-height: normal;
    font-size: 14px;
  }
}
