* {
  box-sizing: border-box;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    PingFang SC,
    Microsoft YaHei,
    sans-serif;
}
html,
body {
  margin: 0;
  padding: 0;
  -webkit-app-region: drag;
  overflow: hidden;
}
.error {
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
}
.login .switch {
  width: 400px;
  height: 420px;
  max-width: calc(100vw - 40px) !important;
  margin: 0 auto;
  border-radius: 3%;
  border: 1px solid rgb(0 0 0 / 10%);
  overflow: hidden;
  margin-top: calc(50vh - 210px);
  max-width: calc(100% - 80px);
  /* box-shadow: 0px 1px 6px rgb(0 0 0 / 50%); */
}
.login .privacy {
  position: absolute;
  left: 0;
  top: -1em;
  background: #fff;
  padding: 1em;
  font-size: 1.1em;
  line-height: 1.5em;
  opacity: 0;
  transition-duration: 1s;
  transition-property: opacity;
  transition-timing-function: ease-in-out;
  pointer-events: none;
}
.login .privacy.show {
  opacity: 1;
  pointer-events: auto;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.login .privacy.history.show {
  pointer-events: auto;
  opacity: 1;
}

.login .privacy .closebar {
  position: sticky;
  width: calc(100% + 2em);
  top: 0;
  height: 2.5em;
  overflow: hidden;
  margin-left: -1em;
  margin-top: -1em;
  line-height: 2.5em;
  background: #fff;
  font-size: 1.2em;
  text-align: center;
  display: flex;
  justify-items: center;
  align-items: center;
}

.login .privacy .closebar .title {
  width: 100%;
  margin-top: 0.5em;
  margin-left: 60px;
  text-indent: -60px;
}
.login .privacy .closebar .close {
  width: 2em;
  height: 2em;
  padding: 0;
  margin: 0;
  line-height: 2em;
  text-indent: -10em;
  position: absolute;
  -webkit-app-region: none;
}
.login .privacy .closebar .close::before {
  display: block;
  content: ' ';
  width: 0.6em;
  height: 0.6em;
  border: none;
  left: 1.35em;
  top: 0.6em;
  position: absolute;
  cursor: pointer;
  border-top: 3px solid #0e0d0d;
  border-left: 3px solid #0e0d0d;
  text-indent: -999px;
  overflow: hidden;
  transform: rotate(-45deg) skew(5deg);
  z-index: 999;
}

.login .privacy.mac .closebar {
  margin-top: 0;
  height: 3em;
  padding-top: 1.5em;
}
.login .privacy.mac .closebar .title {
  margin-top: -2em;
}
.login .privacy.mac .closebar .close {
  top: 2em;
}
.login .privacy.mac .closebar .close:before {
  top: 0;
}
.login .switch .tabs {
  display: flex;
  justify-content: space-around;
  line-height: 54px;
  font-size: 18px;
  border-bottom: 1px solid rgb(0 0 0 / 5%);
  background-color: rgb(149 157 166 / 11%);
  -webkit-app-region: no-drag !important;
}
.login .switch .tabs .tab {
  cursor: pointer;
  width: 50%;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  color: rgb(0 0 0 /50%);
}
.login .switch .tabs .active {
  font-weight: 700;
  color: rgb(0, 0, 0);
}
.login .switch .form {
  position: relative;
}
.login .switch .form .item {
  opacity: 0;
  pointer-events: none;
  transition: ease-in-out 0.5s;
  position: relative;
}
.login .switch .form .item .success {
  width: 160px;
  position: absolute;
  top: 50px;
  left: 120px;
  display: none;
}
.login .switch .form .item.scaned .success,
.login .switch .form .item.success .success {
  display: block;
}
.login .switch .form .item.scaned:before {
  content: '';
  background: rgba(0, 0, 0, 0.05);
  display: block;
  width: 100%;
  height: calc(100% + 90px);
  position: absolute;
  top: -20px;
  z-index: 0;
  pointer-events: none;
}
.login .switch .form .item.scaned .qrcode,
.login .switch .form .item.scaned .tips {
  z-index: 2;
}
.login .switch .form .item.wechat .expires {
  width: 160px;
  position: absolute;
  top: 50px;
  left: 120px;
  display: none;
}
.login .switch .form .item.wechat.refresh .expires {
  display: block;
}
.login .switch .form .item.active {
  opacity: 1;
  pointer-events: auto;
}
.login .switch .form .item.email {
  position: absolute;
  left: 0;
  top: 16px;
  width: 100%;
  height: 100%;
}
.login .switch .form .item.email .form-item {
  position: relative;
  width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 45px;
}
.login .switch .form .item.email .form-item label {
  display: block;
  line-height: 30px;
  font-size: 16px;
  user-select: none;
}
.login .switch .form .item.email .form-item input {
  width: 100%;
  height: 40px;
  border-radius: 5px;
  outline: none;
  box-shadow: none;
  border: 1px solid rgb(0 0 0 /30%);
  font-size: 16px;
  text-indent: 5px;
  margin-bottom: 26px;
}
.login .switch .form .item .agreement {
  position: absolute;
  line-height: 1em !important;
  width: 100%;
  text-align: left;
  top: -0.7em;
  font-size: 0.8em;
}

.login .switch .form .item.email .agreement .checkbox {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.5em 0 0;
  padding: 0;
  transform: translateY(3px);
}

.login .switch .form .item.email .agreement .pribtn {
  color: #007930;
  padding-left: 0.5em;
  cursor: pointer;
}
.login .switch .form .item.email .agreement .forget {
  color: #5e5e5e;
  padding-left: 0.5em;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0.2em;
}
.login .switch .form .item.email .form-item .verify-btn {
  color: #007930;
  cursor: pointer;
  position: absolute;
  top: 40px;
  right: 16px;
  line-height: 30px;
}
.login .switch .form .item .tips {
  text-align: center;
}
.login .switch .form .item.email .form-item .error-tips {
  position: absolute;
  width: 100%;
  bottom: -15px;
  left: 10px;
  font-size: 12px;
  color: red;
  display: none;
}
.login .switch .form .item .qrcode {
  width: 260px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  z-index: 3;
  -webkit-app-region: no-drag !important;
}
.login .form .form-item {
  -webkit-app-region: no-drag !important;
}
.login .switch .form .item.success .form-item {
  pointer-events: none;
  opacity: 0.3;
}
.login .switch .form .item.email .form-result {
  position: absolute;
  left: 0;
  top: -36px;
  width: 100%;
  height: calc(100% + 64px);
  background: #f3f4f530;
  align-content: center;
  justify-content: center;
  display: none;
}
.login .switch .form .item.email.success .form-result {
  display: flex;
}

.login .switch .form .item .form-result .tips {
  position: absolute;
  top: 220px;
  color: green;
}

.login .switch .form .item.email .form-item .submit-btn {
  width: 100%;
  line-height: 36px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 1px 0 3px #2c6d45;
  background-color: #007930;
  color: white;
  font-size: 16px;
  letter-spacing: 10px;
  cursor: pointer;
  margin-top: 22px;
}
.login .switch .form .item.email .register-btn {
  line-height: 1em;
  margin-top: 1.2em;
  margin-bottom: 0;
  text-align: center;
  color: #5e5e5e;
  cursor: pointer;
  -webkit-app-region: none;
}
.login .switch .form.register .item .form-item {
  display: flex;
  flex-wrap: nowrap;
}
.login .switch .form.register .item .form-item label {
  min-width: 4em;
  white-space: nowrap;
  line-height: 40px;
}
.login .switch .form.register .item .form-item .error-tips {
  left: 62px;
  bottom: -10px;
}
