:root {
  --red-color: #d43831;
  --blue-color: #0f7ce4;
  --bg-color: #f4f4f4;
  --main-bg-color: #ffffff;
  --input-bg-color: #ffffff;
  --text-1-color: #2a2d2f;
  --text-2-color: #676e76;
  --text-3-color: rgba(0, 0, 0, 0.25);
  --line-color: #d9d9d9;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 100px;
  line-height: 1.2;
  -webkit-text-size-adjust: none;
}
body {
  margin: 0;
  min-height: 100%;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: var(--text-1-color);
  background: var(--bg-color);
}
.container {
  padding: 0.15rem 1.5rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar {
  background: var(--main-bg-color);
  border-bottom: 0.01rem solid var(--line-color);
}
.logo img {
  width: 1.18rem;
  height: 0.34rem;
  display: block;
}
.lang {
  width: auto;
  min-width: 1.75rem;
  padding: 0 0.32rem 0 0;
  border: none;
  color: var(--text-2-color);
  font-size: 0.12rem;
  line-height: 0.24rem;
  text-align: right;
  background-color: var(--main-bg-color);
  background-image: url("../../img/globe-55d5d6b12.svg");
  background-position: right center;
  background-size: 0.24rem 0.24rem;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
}
.lang option {
  color: var(--text-1-color);
}
.page-wrapper {
  width: 100%;
  margin: 0.3rem auto;
  max-width: 6.2rem;
}
.login-card {
  background: var(--main-bg-color);
}
.login-form {
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
}
.login-card h2 {
  margin: 0 0 0.32rem;
  color: var(--text-1-color);
  font-size: 0.16rem;
  font-weight: 700;
  text-align: center;
}
.field-group {
  position: relative;
  display: block;
}
.field-group + .field-group {
  margin-top: 0.16rem;
}
.required-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.1rem;
  height: 0.34rem;
  color: var(--red-color);
  font-size: 0.12rem;
  line-height: 0.24rem;
  transform: translate(-100%) translate(-0.06rem);
}
.field-group input {
  width: 100%;
  display: block;
  padding: 0.08rem 0.12rem;
  border: 0.01rem solid var(--line-color);
  border-radius: 0.02rem;
  color: var(--text-1-color);
  background: var(--input-bg-color);
  font-size: 0.16rem;
  line-height: 0.24rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-group input::placeholder {
  color: var(--text-3-color);
}
.field-group input:hover,
.field-group input:focus {
  border-color: var(--red-color);
  box-shadow: 0 0 0 0.02rem rgba(212, 56, 49, 0.2);
}
.field-group.has-error input {
  border-color: #ff2d63;
  box-shadow: 0 0 0 0.02rem rgba(255, 45, 99, 0.2);
}
.error-message {
  margin: 6px 0 0;
  color: #ff2d63;
  font-size: 12px;
  line-height: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.error-message[hidden] {
  display: none !important;
}
.error-message::before {
  content: "!";
  display: flex;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff2d63;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}
.form-error {
  margin-top: 8px;
}
.helper-row {
  display: flex;
  justify-content: flex-end;
  margin: 0.15rem 0 0.3rem;
}
.forgot-link {
  color: var(--blue-color);
  font-size: 0.14rem;
  text-decoration: none;
}
.forgot-link:hover {
  text-decoration: underline;
}
.btn {
  display: block;
  width: 100%;
  padding: 0.08rem 0.12rem;
  border-radius: 0.02rem;
  font-size: 0.16rem;
  line-height: 0.24rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--red-color);
  border: 0.01rem solid var(--red-color);
  color: #ffffff;
}
.btn-primary:disabled {
  cursor: wait;
  opacity: 0.8;
}
.loading-spinner {
  display: inline-block;
  width: 0.14rem;
  height: 0.14rem;
  margin-right: 0.08rem;
  vertical-align: -0.02rem;
  border: 0.02rem solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: login-spinner 0.7s linear infinite;
}
@keyframes login-spinner {
  to {
    transform: rotate(360deg);
  }
}
.btn-primary:hover {
  box-shadow: 0 0 0 0.02rem rgba(212, 56, 49, 0.2);
}
.btn-secondary {
  margin-top: 0.16rem;
  background: var(--main-bg-color);
  border: 0.01rem solid var(--line-color);
  color: var(--text-2-color);
}
.btn-secondary:hover {
  border-color: var(--red-color);
  color: var(--red-color);
  box-shadow: 0 0 0 0.02rem rgba(212, 56, 49, 0.2);
}
.policy-text {
  margin: 0.16rem 0.32rem;
  text-align: center;
  font-size: 0.14rem;
  color: var(--text-3-color);
}
.policy-text a {
  color: var(--blue-color);
  text-decoration: none;
}
.policy-text a:hover {
  text-decoration: underline;
}
.policy-text span {
  margin: 0 0.03rem;
}

@media (max-width: 1199px) {
  html {
    font-size: 50px;
  }
  .container {
    padding: 0.2rem 0.4rem;
  }
  .logo img {
    width: 1.6rem;
    height: 0.45rem;
  }
  .lang {
    min-width: 0.48rem;
    width: 0.48rem;
    padding: 0;
    font-size: 0.24rem;
    line-height: 0.4rem;
    color: transparent;
    text-shadow: none;
    overflow: hidden;
    background-position: center;
    background-size: 0.44rem 0.44rem;
  }
  .page-wrapper {
    margin: 0.6rem auto;
    max-width: none;
    width: 100%;
  }
  .login-card {
    width: 100%;
  }
  .login-form {
    width: 100%;
    padding: 0 0.28rem;
  }
  .login-card,
  .login-form {
    background: #f4f4f4;
  }
  .login-card h2 {
    font-size: 0.36rem;
  }
  .required-mark {
    font-size: 0.22rem;
  }
  .field-group + .field-group {
    margin-top: 0.24rem;
  }
  .field-group input {
    padding: 0.24rem;
    font-size: 0.26rem;
    line-height: 0.4rem;
  }
  .helper-row {
    margin: 0.3rem 0 0.6rem;
  }
  .forgot-link {
    font-size: 0.26rem;
  }
  .btn {
    padding: 0.24rem;
    font-size: 0.26rem;
    line-height: 0.4rem;
  }
  .policy-text {
    margin: 0.24rem 0 0.4rem;
    font-size: 0.22rem;
  }
}