html, body {
  background: #F9F9F9;
}

html, body {
  font-family: 'Fira Sans', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Source Han Sans', 'WenQuanYi Micro Hei', sans-serif;
  font-weight: 300;
}

html[lang^="zh"] body, html[lang^="zh"] .reset.checkbox label {
  font-weight: 400;
}

html[lang^="zh"] .button, html[lang^="zh"] h3 {
  font-weight: 600;
}

@keyframes shake {
  from,
  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
  }

  20%,
  40%,
  60%,
  80% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }
}

.shake {
  -webkit-animation-name: shake;
  animation-name: shake;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.container {
  width: 420px;
}

.container.user {
  margin: 50px auto 20px auto;
  background: white;
  padding: 0 0 40px 0;
  border-radius: 10px;
  border: 1px solid #EEE;
  box-shadow: 0px 2px 0px #EFEFEF;
  overflow: hidden;
}

.container.user .logo {
  background-color: #2b9472;
  background-image: url("user-header.abde4a12076c.svg");
  background-repeat: no-repeat;
  background-position: top;
  display: block;
  height: 130px;
}

.container.user header {
  margin: 40px 50px 20px 50px;
}

.user-form {
  margin: 0 50px;
}

.user-input {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 10px;
  overflow: hidden;
  border-bottom: 2px #DDD solid;
}

.user-input input,
.user-input select {
  border: none;
  outline: none;
  position: absolute;
  left: 0;
  top: 10px;
  width: 100%;
  height: 40px;
  line-height: 24px;
  box-sizing: border-box;
  background: transparent;
  padding: 0;
  font-size: 16px;
  z-index: 10;
  font-weight: 500;
}

.user-input input:-webkit-autofill {
  box-shadow: 0 0 0 30px white inset;
}

.user-input input:invalid {
  box-shadow: none;
}

.user-input label {
  position: absolute;
  left: 0px;
  top: 10px;
  line-height: 40px;
  color: #999;
  transition: .1s linear all;
  font-weight: 300;
  font-size: 16px;
  z-index: 9;
}

.user-input.required label:after {
  content: " *";
  color: #f00;
}

.user-input:has(input:focus) label,
.user-input:has(input:not(:placeholder-shown)) label,
.user-input select + label {
  font-size: 12px;
  top: -10px;
  z-index: 11;
}

.user-input:has(.password-toggle) input {
  padding-right: 36px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 10px;
  height: 40px;
  width: 36px;
  border: none;
  background: transparent;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: pointer;
  z-index: 12;
}

.password-toggle:focus:not(:focus-visible) {
  outline: none;
}

.password-toggle:hover,
.password-toggle:focus {
  color: #555;
}

.button {
  display: block;
  background: #2ebb8c;
  color: white;
  margin: 30px 0 5px 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 5px;
}

.button:hover, .button:focus {
  text-decoration: none;
  color: white;
  background-color: #39c395;
}

.button:disabled {
  opacity:.65;
  cursor: not-allowed;
}

.sep {
  width: 100px;
  height: 2px;
  background-color: #DDD;
  margin: 10px auto 25px auto;
}

.reset {
  margin: 10px 0;
  color: #AAA;
  font-size: 12px;
}

.reset.checkbox label {
  font-weight: 300;
  padding: 0;
  user-select: none;
}

.reset.checkbox input {
  position: static;
  margin: 0;
  margin-right: 2px;
}

.button.github {
  background-color: #53585F;
}

.button.github:hover, .button.github:focus {
  background-color: #5e636b;
}

.github .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("github.9833fbe40973.svg");
  background-size: 100%;
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -2px;
}

.user-form .alert {
  margin: 20px -50px;
  padding: 20px 50px;
  border-radius: 0px;
  border-left: none;
  border-right: none;
}

.user-form .alert ul {
  list-style-position: outside;
  list-style-type: square;
  padding: 0;
}

.user-form .alert ul:last-of-type {
  margin-bottom: 0;
}

.user-form.text {
  font-size: 15px;
}

footer.container {
  padding: 0;
  display: flex;
  justify-content: space-between;
}

footer.container .btn-link, footer.container a {
  color: #AAA;
}

footer.container. btn-link {
  padding: 0;
  outline: none;
}

.language-form {
  display: inline;
}

.language-form .language-icon{
  height: 1rem;
  width: auto;
  vertical-align: middle;
}

.language-form .dropup {
  vertical-align: baseline;
}

.language-form button.dropdown-toggle {
  padding: 0;
  margin: 0;
  border: none;
  text-decoration: none;
}

.language-form .dropdown-item:active {
  color: #fff!important;
  background-color: #0d9155;
}

.two-fa-code {
  font-size: 0;
}

.two-fa-code .digit-input {
  font-size: 14px;
  display: inline-block;
  border: none;
  outline: none;
  width: 48px;
  height: 54px;
  margin-right: 6px;
  border-radius: 4px;
  border: 1px solid #DDD;
  background: white;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  vertical-align: top;
}

.two-fa-code .digit-input:last-child {
  margin-right: 0;
}

.two-fa-code.recovery .digit-input {
  width: 140px;
  margin-right: 0px;
  letter-spacing: .1em;
}

.two-fa-code.recovery .digit-input::placeholder {
  color: #CCC;
}

.two-fa-code.recovery .dash {
  display: inline-block;
  font-size: 28px;
  width: 38px;
  color: black;
  line-height: 54px;
  height: 54px;
  text-align: center;
  vertical-align: top;
}
