/*global*/
html, body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}

body {
  font-family: PingFangSC-Regular,Microsoft YaHei,Arial,Helvetica,sans-serif;
  min-width: 500px;
  min-height: 500px;
}

.container {
  position: relative;
  height: 100%;
  width: 100%;
}

.container.bg1 {
  background: url(/login/images/bg1-a69493b3be7886ef6e761608b58bdef5.png) center center no-repeat;
  background-size: cover;
}

.container.bg2 {
  // background: url(https://yr-it.oss-cn-beijing.aliyuncs.com/bag/login/images/bg2.png) center center no-repeat;
  background-size: cover;
  background-color: #407acc;
}

.login-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 470px;
  height: 460px;
  background-color: #FFF;
  border-radius: 6px;
  box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.15);
}

.login-title {
  margin-top: 41px;
  color: #444;
  font-size: 28px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
}

.longin-number {
  margin: 41px auto 0 auto;
  width: 370px;
  height: 61px;
}

.longin-code {
  margin: 16px auto 0 auto;
  width: 370px;
  height: 61px;
}

.input-border input::-ms-clear {
  display: none;
}

.input-border input::-ms-reveal {
  display: none;
}

.input-border input {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 61px;
  padding: 0 21px;
  outline: none;
  border: 1px solid #B6B6B6;
  border: 1px solid rgba(208, 208, 208, 0.5);
  border-radius: 2px;
  background-color: #EDF1F6;
  color: #333;
  font-size: 18px;
  line-height: 61px;
}

.input-border input:active, .input-border input:focus {
  background-color: #FFF;
  border: 1px solid #1680E2;
}

.input-border input::-webkit-input-placeholder, .input-border textarea::-webkit-input-placeholder {
  color: #999;
  font-size: 18px;
  line-height: 61px;
  letter-spacing: 5px;
  text-align: left;
}

.input-border input:-moz-placeholder, .input-border textarea:-moz-placeholder {
  color: #999;
  font-size: 18px;
  line-height: 61px;
  letter-spacing: 5px;
  text-align: left;
}

.input-border input::-moz-placeholder, .input-border textarea::-moz-placeholder {
  color: #999;
  font-size: 18px;
  line-height: 61px;
  letter-spacing: 5px;
  text-align: left;
}

.input-border input:-ms-input-placeholder, .input-border textarea:-ms-input-placeholder {
  color: #999;
  font-size: 18px;
  line-height: 61px;
  letter-spacing: 5px;
  text-align: left;
}

.remember-code {
  margin: 22px auto 0 auto;
  width: 370px;
  height: 18px;
}

.remember-code label {
  color: #787E8C;
  font-size: 13px;
  line-height: 16px;
  vertical-align: top;
}

.remember-code input {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.remember-code input[type="checkbox"] + label::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  content: "\a0";
  display: inline-block;
  margin-right: 13px;
  padding-left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 1px;
  border: 1px solid #B6B6B6;
  border: 1px solid rgba(208, 208, 208, 0.8);
  background-color: #FFF;
  color: #FFF;
  font-size: 14px;
  font-weight: bold;
  line-height: 14px;
  vertical-align: top;
}

.remember-code input[type="checkbox"]:checked + label::before {
  content: "\2713";
  border: 1px solid #1680E2;
  background-color: #1680E2;
}

.login-button {
  margin: 39px auto 0 auto;
  width: 370px;
  height: 60px;
}

.large-button {
  width: 370px;
  height: 60px;
  border-radius: 2px;
  border: 0 none;
  outline: none;
  background: none;
  background-color: #1680E2;
  color: #FFF;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 1px;
  box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.15);
  vertical-align: middle;
  cursor: pointer;
}

.large-button:active {
  opacity: .8;
}

.container.bg2 .large-button {
  background-color: #746BDE;
}

@media all and (max-width: 1550px) {
  body {
    min-width: 350px;
    min-height: 350px;
  }
  .login-content {
    width: 334px;
    height: 327px;
  }
  .login-title {
    margin-top: 29px;
    font-size: 20px;
    line-height: 28px;
  }
  .longin-number {
    margin: 28px auto 0 auto;
    width: 263px;
    height: 44px;
  }
  .longin-code {
    margin: 16px auto 0 auto;
    width: 263px;
    height: 44px;
  }
  .input-border input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    font-size: 13px;
    line-height: 44px;
  }
  .input-border input::-webkit-input-placeholder, .input-border textarea::-webkit-input-placeholder {
    font-size: 13px;
    line-height: 44px;
    letter-spacing: 4px;
  }
  .input-border input:-moz-placeholder, .input-border textarea:-moz-placeholder {
    font-size: 13px;
    line-height: 44px;
    letter-spacing: 4px;
  }
  .input-border input::-moz-placeholder, .input-border textarea::-moz-placeholder {
    font-size: 13px;
    line-height: 44px;
    letter-spacing: 4px;
  }
  .input-border input:-ms-input-placeholder, .input-border textarea:-ms-input-placeholder {
    font-size: 13px;
    line-height: 44px;
    letter-spacing: 4px;
  }
  .remember-code {
    margin: 16px auto 0 auto;
    width: 263px;
    height: 15px;
  }
  .remember-code label {
    font-size: 11px;
    line-height: 13px;
  }
  .remember-code input[type="checkbox"] + label::before {
    margin-right: 11px;
    width: 13px;
    height: 13px;
    font-size: 11px;
    line-height: 11px;
  }
  .login-button {
    margin: 28px auto 0 auto;
    width: 263px;
    height: 43px;
  }
  .large-button {
    width: 263px;
    height: 43px;
    font-size: 14px;
    line-height: 14px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.15);
  }
}
