body {
  background: #fff !important;
}

.loginContainer {
  :global {
    .el-input__inner {
      background-color: transparent !important;
      border: 1px solid transparent !important
    }

    .el-input input:-webkit-autofill {
      background-color: transparent !important;
    }
  }
}

.loginInput {
  background-color: transparent !important;
}

/* 修复input 背景不协调 和光标变色 */
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
.loginBtn {
  background-color: #22B4A9;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  height: 50px;
  line-height: 50px;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.loginBtn.disabled {
  background-color: rgba(34, 180, 169, .5);
}

.loginContainer {
  :global {
    .el-input input {
      color: #fff !important;
      caret-color: #fff !important;
    }
  }

  :global {
    ::-webkit-input-placeholder {
      color: #B2B2B2;
      font-size: 14px;
    }

    ::-moz-placeholder {
      color: #B2B2B2;
      font-size: 14px;
    }

    :-ms-input-placeholder {
      color: #B2B2B2;
      font-size: 14px;
    }
  }
}

.remberBox {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  // margin-bottom: 30px;
  padding-top: 40px;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 14px;

  .dotWrap {
    width: 21px;
    height: 21px;
    background: url('./images/icon_checkbox_default.png') no-repeat center;
    background-size: contain;
    margin-right: 8px;
    position: relative;
    overflow: hidden;

    &.checked {
      background: url('./images/icon_checkbox.png') no-repeat center;
      background-size: contain;
    }
  }
}

@bg: #fff;
@light_gray: #000;
@cursor: #000;

// @supports (-webkit-mask: none) and (not (cater-color: @cursor)) {
//   .loginContainer {
//     :global {
//       .el-input input {
//         color: @cursor;

//         &::first-line {
//           color: @light_gray;
//         }
//       }
//     }
//   }
// }

// @supports (-webkit-mask: none) and (not (cater-color: @cursor)) {
//   .loginContainer {
//     :global {
//       .el-input input {
//         color: @cursor;
//       }
//     }
//   }
// }

/* reset element-ui css */
.loginContainer {
  :global {
    .el-input {
      display: inline-block;
      height: 47px;
      width: 85%;

      input {
        background: transparent !important;
        border: 0px;
        -webkit-appearance: none;
        border-radius: 0px;
        padding: 12px 5px 12px 15px;
        color: @light_gray;
        height: 47px;
        caret-color: @cursor;

        &:-webkit-autofill {
          box-shadow: 0 0 0px 1000px @bg inset !important;
          -webkit-text-fill-color: @cursor  !important;
        }
      }
    }
    .el-form-item__error {
      padding-top: 8px;
      padding-left: 54px;
    }

    .el-form-item {
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
  }

}

@bg: #fff;
@dark_gray: #000;
@light_gray: #eee;

.loginContainer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("./images/login-bg.jpg") no-repeat center left #202129;
  background-color: #202129;
  background-size: cover;

  .loginForm {
    width: 300px;
    border-radius: 15px;
    padding: 60px;
    color: #fff;
  }

  .tips {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;

    span {
      &:first-of-type {
        margin-right: 16px;
      }
    }
  }

  .svgContainer {
    padding: 6px 5px 6px 15px;
    vertical-align: middle;
    width: 20px;
    display: inline-block;
    .icon {
      width: 1em;
      height: 1em;
      vertical-align: -0.15em;
      fill: currentColor;
      overflow: hidden;
    }
  }

  .titleContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 22px;
    line-height: 30px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 30px;

    &::after {
      margin-top: 12px;
      display: inline-block;
      content: ' ';
      width: 25px;
      height: 4px;
      background: #22B4A9;
      margin-bottom: -2px;
    }
  }

  .showPwd {
    position: absolute;
    right: 10px;
    top: 7px;
    font-size: 14px;
    color: #6D7278;
    cursor: pointer;
    user-select: none;
    .icon {
      width: 14px;
      // vertical-align: -0.15em;
      height: 14px;
      overflow: hidden;
      margin-top: 12px;
    }
  }

  .loginHeader {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 18px;
    color: #6D7278;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    .logo {
      img {
        height: 40px;
      }
    }

    .line {
      display: inline-block;
      width: 1px;
      height: 20px;
      background: #979797;
      margin: 0 20px;
    }
  }

  .footer {
    margin-top: 40px;
    font-size: 14px;
    color: rgba(178, 178, 178, 0.5);
    width: 100%;
    text-align: center;
  }
}

.loginSection {
  margin-top: 40px;
  width: 840px;
  height: 520px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  .formBg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 420px;
    height: 100%;
    background: #fff;
    img {
      width: 357px;
    }
  }
}
