html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f5f7fa;
  color: #243447;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

input,
button {
  font-family: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(380px, 520px);
  background: #f5f7fa;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 72px;
  background: #1f3a5f;
  color: #ffffff;
}

.brand-mark {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 40px;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-kicker,
.panel-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-kicker {
  color: #8fd6c8;
}

.login-brand h1 {
  max-width: 620px;
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-desc {
  max-width: 560px;
  margin: 22px 0 0;
  color: #c6d4e5;
  font-size: 16px;
  line-height: 1.8;
}

.security-list {
  list-style: none;
  padding: 0;
  margin: 46px 0 0;
  max-width: 560px;
}

.security-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef5fb;
  font-size: 15px;
}

.security-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31b89f;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: #ffffff;
  box-shadow: -20px 0 50px rgba(31, 58, 95, 0.08);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.panel-kicker {
  color: #637083;
}

.panel-head h2 {
  margin: 0;
  color: #1f3a5f;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.panel-head p {
  margin: 10px 0 0;
  color: #637083;
  font-size: 14px;
  line-height: 1.6;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  overflow: hidden;
}

.language-switch a {
  display: block;
  min-width: 44px;
  padding: 9px 10px;
  color: #425166;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  border-left: 1px solid #d6dde8;
}

.language-switch a:first-child {
  border-left: 0;
}

.language-switch a:hover {
  background: #eef4f8;
  color: #1f3a5f;
}

.language-switch a.is-active {
  background: #1f8f7a;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.language-switch a.is-active:hover {
  background: #187966;
  color: #fff;
}

.formLogin {
  width: 100%;
}

.sysError {
  display: none;
  min-height: 20px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f2b8b5;
  border-radius: 8px;
  background: #fff3f2;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
}

.loginList {
  margin-bottom: 18px;
}

.loginList label {
  display: block;
  margin-bottom: 8px;
  color: #35465b;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.loginText {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #ffffff;
  color: #223044;
  font-size: 14px;
  line-height: 44px;
  padding: 0 13px;
  outline: none;
}

.loginText:focus {
  border-color: #1f8f7a;
  box-shadow: 0 0 0 3px rgba(31, 143, 122, 0.12);
}

.password-field {
  position: relative;
}

.password-field .loginText {
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  height: 30px;
  min-width: 70px;
  border: 0;
  border-radius: 6px;
  background: #eef4f8;
  color: #1f3a5f;
  cursor: pointer;
  font-size: 12px;
}

.password-toggle:hover {
  background: #dfeaf1;
}

.dynamic-code-field .loginText {
  letter-spacing: 3px;
  font-weight: 700;
}

.field-helper {
  margin: 7px 0 0;
  color: #6b7788;
  font-size: 12px;
  line-height: 1.5;
}

.hidden-field {
  display: none;
}

.verify-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  align-items: center;
}

.verify-row img {
  width: 132px;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  object-fit: cover;
}

.login-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #d6e8e4;
  border-radius: 8px;
  background: #f2fbf8;
  color: #44546a;
  font-size: 12px;
  line-height: 1.5;
}

.login-security-note strong {
  color: #1f3a5f;
  font-weight: 700;
}

.login-security-note em {
  color: #1f8f7a;
  font-style: normal;
}

.loginBtn {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #1f8f7a;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.loginBtn:hover {
  background: #187966;
}

.loginBtn:disabled {
  background: #95a3b5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: auto;
    padding: 28px 24px;
  }

  .brand-mark {
    margin-bottom: 20px;
  }

  .login-brand h1 {
    font-size: 28px;
  }

  .brand-desc {
    margin-top: 14px;
    font-size: 14px;
  }

  .security-list {
    display: none;
  }

  .login-panel {
    padding: 30px 24px 40px;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .panel-head {
    display: block;
  }

  .language-switch {
    margin-top: 18px;
  }

  .panel-head h2 {
    font-size: 24px;
  }

  .verify-row {
    grid-template-columns: 1fr;
  }

  .verify-row img {
    width: 100%;
  }
}
