body.login {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: stretch;
  background: #fff;
  color: #101010;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.login *,
body.login *::before,
body.login *::after {
  box-sizing: border-box;
}

body.login::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50vw;
  max-width: 560px;
  min-width: 430px;
  background:
    radial-gradient(circle at 48% 18%, rgba(0, 91, 255, .62), transparent 20%),
    radial-gradient(circle at 60% 78%, rgba(0, 65, 180, .45), transparent 34%),
    linear-gradient(145deg, #050a27 0%, #070b31 58%, #06124b 100%);
  z-index: 0;
}

body.login::after {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  width: 260px;
  height: 260px;
  border-radius: 0 260px 0 0;
  background: rgba(0, 82, 217, .48);
  z-index: 1;
}

.ncc-auth-left {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50vw;
  max-width: 560px;
  min-width: 430px;
  z-index: 2;
  color: #fff;
}

.ncc-auth-left__logo {
  position: absolute;
  left: 60px;
  top: 42px;
  display: block;
}

.ncc-auth-left__logo img {
  width: 180px;
  height: auto;
}

.ncc-auth-left__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ncc-auth-left__icon {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.ncc-auth-left__title {
  width: 312px;
  height: auto;
  margin-top: 28px;
}

.ncc-auth-left__rows {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

#login {
  position: relative;
  z-index: 3;
  width: 432px;
  margin: 0 12vw 0 auto;
  padding: 18vh 0 0;
}

.login h1 {
  display: none;
}

.login form,
.login .message,
.login .notice,
.login #login_error {
  width: 432px;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.login form {
  padding: 0;
}

.login form::before {
  content: "欢迎登录";
  display: block;
  margin-bottom: 28px;
  color: #101010;
  font-size: 20px;
  font-weight: 700;
}

body.login-action-register form::before {
  content: "欢迎注册";
}

body.login-action-lostpassword form::before {
  content: "找回密码";
}

.login label {
  display: none;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  width: 100%;
  min-height: 40px;
  margin: 0 0 26px;
  padding: 0 14px;
  border: 1px solid #dcdfe6;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: #101010;
  font-size: 14px;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
  border-color: #1f63ff;
  box-shadow: none;
  outline: 0;
}

.login #user_login::placeholder,
.login #user_pass::placeholder,
.login #user_email::placeholder {
  color: #c6d0dd;
}

.login .forgetmenot {
  float: none;
  margin: -6px 0 22px;
  color: #4e5969;
  font-size: 14px;
}

.login .forgetmenot label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  border-color: #dcdfe6;
  border-radius: 0;
  box-shadow: none;
}

.login .submit {
  margin: 0;
}

.wp-core-ui .button-primary,
.login .button.wp-hide-pw {
  border-radius: 2px;
}

.wp-core-ui .button-primary {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: #1f63ff;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-shadow: none;
  box-shadow: none;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background: #0052d9;
  box-shadow: none;
}

.login .button.wp-hide-pw {
  top: 2px;
  right: 4px;
  color: #86909c;
}

.login #nav {
  width: 432px;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #86909c;
  font-size: 14px;
}

.login #backtoblog {
  display: none;
}

.login #nav a {
  color: #0052d9;
  text-decoration: none;
}

.login #nav a:hover {
  color: #1f63ff;
}

.login .privacy-policy-page-link {
  display: none;
}

.login::after {
  content: "Copyright© 2026 NCC All rights reserved. | 沪ICP备12039260号-46 | 国家反计算机入侵和防病毒研究中心";
  position: fixed;
  left: calc(50vw + 120px);
  right: 80px;
  bottom: 40px;
  color: #86909c;
  font-size: 13px;
  text-align: center;
}

.login .message,
.login .notice,
.login #login_error {
  margin-bottom: 24px;
  padding: 12px 14px;
  border-left: 3px solid #1f63ff;
  background: #f7faff;
  color: #4e5969;
}

body.login-action-register .message {
  display: none;
}

@media (max-width: 960px) {
  body.login {
    display: block;
    min-height: 100vh;
    background: #fff;
  }

  body.login::before,
  body.login::after {
    display: none;
  }

  .ncc-auth-left {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 260px;
    background:
      radial-gradient(circle at 54% 24%, rgba(0, 91, 255, .52), transparent 22%),
      linear-gradient(145deg, #050a27 0%, #071146 100%);
    overflow: hidden;
  }

  .ncc-auth-left::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(0, 82, 217, .5);
  }

  .ncc-auth-left__logo {
    left: 24px;
    top: 24px;
  }

  .ncc-auth-left__logo img {
    width: 160px;
  }

  .ncc-auth-left__content {
    top: 72px;
  }

  .ncc-auth-left__icon {
    width: 112px;
    height: 112px;
  }

  .ncc-auth-left__title {
    width: 190px;
    margin-top: 8px;
  }

  .ncc-auth-left__rows {
    display: none;
  }

  #login {
    width: min(432px, calc(100vw - 40px));
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 96px;
  }

  .login form,
  .login .message,
  .login .notice,
  .login #login_error,
  .login #nav {
    width: 100%;
  }

  .login::after {
    left: 20px;
    right: 20px;
    bottom: 24px;
    line-height: 1.6;
  }
}

@media (max-width: 520px) {
  .ncc-auth-left {
    height: 220px;
  }

  .ncc-auth-left__logo img {
    width: 142px;
  }

  .ncc-auth-left__content {
    top: 70px;
  }

  .ncc-auth-left__icon {
    width: 92px;
    height: 92px;
  }

  .ncc-auth-left__title {
    width: 164px;
  }

  #login {
    width: calc(100vw - 48px);
    padding-top: 32px;
  }

  .login form::before {
    margin-bottom: 22px;
    font-size: 19px;
  }

  .login form .input,
  .login input[type="text"],
  .login input[type="password"],
  .login input[type="email"] {
    margin-bottom: 18px;
  }

  .login #nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .login::after {
    font-size: 12px;
  }
}
