/* Chenggongyi split-screen WordPress login page - V1.0.4 */
body.login {
  --cgysp-primary: #173d6a;
  --cgysp-primary-deep: #102b4c;
  --cgysp-blue: #08769a;
  --cgysp-accent: #b90020;
  --cgysp-text: #1e2d40;
  --cgysp-muted: #718198;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f5f7fb;
  color: var(--cgysp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Left brand panel */
body.login::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 49%;
  background:
    radial-gradient(circle at 18% 14%, rgba(8, 118, 154, .10), transparent 26rem),
    radial-gradient(circle at 84% 88%, rgba(185, 0, 32, .055), transparent 25rem),
    linear-gradient(145deg, #ffffff 0%, #f8fbfe 58%, #eef4f9 100%);
  border-right: 1px solid #e3eaf2;
  z-index: 0;
}
body.login::after {
  content: "";
  position: fixed;
  width: 460px;
  height: 460px;
  left: -240px;
  bottom: -250px;
  border: 1px solid rgba(23, 61, 106, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(23, 61, 106, .018), 0 0 0 84px rgba(23, 61, 106, .014);
  pointer-events: none;
  z-index: 0;
}

/* Brand logo and supporting copy */
body.login #login h1 {
  position: fixed;
  z-index: 1;
  left: 6.5vw;
  top: 50%;
  width: min(37vw, 520px);
  margin: 0;
  text-align: center;
  transform: translateY(-50%);
}
body.login #login h1 a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  margin: 0;
  padding: clamp(170px, 17vw, 218px) 0 0;
  overflow: visible;
  background-image: url("chenggongyi-logo.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(100%, 460px) auto;
  border: 0;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  text-indent: 0;
}
body.login #login h1 a::before {
  content: "客户建站协作系统";
  display: block;
  margin: 0;
  color: var(--cgysp-primary);
  font-size: 25px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .06em;
}
body.login #login h1 a::after {
  content: "从客户资料收集，到品牌视觉、网站结构与页面确认";
  display: block;
  margin-top: 12px;
  color: #748399;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
}

/* Right login column */
body.login #login {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: min(430px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 9vw 0 auto;
  padding: 34px 0;
}
body.login #loginform,
body.login #lostpasswordform,
body.login #registerform,
body.login #resetpassform {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 31px 31px 27px;
  border: 1px solid #e0e7ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 22px 60px rgba(24, 48, 78, .10), 0 2px 8px rgba(24, 48, 78, .035);
}
body.login #loginform::before {
  content: "欢迎登录";
  display: block;
  margin: 0 0 6px;
  color: #1b2b40;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -.025em;
}
body.login #loginform::after {
  content: "登录后管理客户资料、品牌方案与建站项目。";
  display: block;
  margin-top: 18px;
  color: #8793a3;
  font-size: 12px;
  line-height: 1.7;
}
body.login label {
  color: #3b4b61;
  font-size: 13px;
  font-weight: 650;
}
body.login .login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  box-sizing: border-box;
  min-height: 47px;
  margin-top: 7px;
  padding: 10px 13px;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  background: #fbfcfe;
  color: #1f2937;
  font-size: 15px;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.login .login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-color: #6b91bb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(41, 101, 161, .12);
  outline: none;
}
body.login .button.wp-hide-pw { min-height: 42px; color: #63748a; }
body.login .forgetmenot { margin-top: 5px; }
body.login .forgetmenot label { color: #68778b; font-weight: 500; }
body.login .submit { margin-top: 17px; }
body.login .wp-core-ui .button-primary,
body.login .button-primary {
  display: inline-flex;
  float: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  padding: 10px 16px;
  border: 1px solid var(--cgysp-primary);
  border-radius: 9px;
  background: linear-gradient(135deg, #1d4b7d, var(--cgysp-primary-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 6px 14px rgba(23, 61, 106, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
body.login .wp-core-ui .button-primary:hover,
body.login .button-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 9px 18px rgba(23, 61, 106, .22);
  transform: translateY(-1px);
}
body.login .wp-core-ui .button-primary:focus { box-shadow: 0 0 0 3px rgba(41, 101, 161, .2); }
body.login #nav,
body.login #backtoblog {
  margin: 15px 0 0;
  padding: 0;
  text-align: center;
}
/* Root URL intentionally redirects to login, so the default back-to-blog link is redundant. */
body.login #backtoblog { display: none; }
body.login #nav a,
body.login #backtoblog a {
  color: #61748c;
  font-size: 12px;
  text-decoration: none;
}
body.login #nav a:hover,
body.login #backtoblog a:hover { color: var(--cgysp-primary); }
body.login .privacy-policy-page-link { margin: 18px auto 0; }
body.login .message,
body.login .success,
body.login #login_error {
  box-sizing: border-box;
  border: 1px solid #e1e8f0;
  border-left-width: 4px;
  border-radius: 9px;
  box-shadow: 0 5px 18px rgba(24, 48, 78, .04);
}
body.login .language-switcher {
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
}
body.login .language-switcher label .dashicons { color: #75859a; }
body.login .language-switcher select {
  max-width: 100%;
  border-color: #d7e0ea;
  border-radius: 7px;
}
body.login #login .privacy-policy-page-link { text-align: center; }

@media (max-width: 900px) and (min-width: 701px) {
  body.login #login { width: min(390px, calc(100% - 40px)); margin-right: 5vw; }
  body.login #login h1 { left: 4vw; width: 39vw; }
  body.login #login h1 a::before { font-size: 22px; }
  body.login #login h1 a::after { font-size: 12px; }
}

@media (max-width: 700px) {
  body.login { background: #f4f7fb; }
  body.login::before {
    width: 100%;
    height: 225px;
    border-right: 0;
    border-bottom: 1px solid #e3eaf2;
  }
  body.login::after { width: 240px; height: 240px; left: -145px; bottom: auto; top: -135px; }
  body.login #login {
    display: block;
    width: calc(100% - 32px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 176px 0 28px;
  }
  body.login #login h1 {
    position: absolute;
    top: 18px;
    left: 50%;
    width: min(82vw, 290px);
    margin: 0;
    transform: translateX(-50%);
  }
  body.login #login h1 a {
    min-height: 145px;
    padding-top: 101px;
    background-size: min(100%, 250px) auto;
  }
  body.login #login h1 a::before { font-size: 18px; line-height: 1.4; }
  body.login #login h1 a::after { margin-top: 5px; font-size: 11px; line-height: 1.6; }
  body.login #loginform,
  body.login #lostpasswordform,
  body.login #registerform,
  body.login #resetpassform { padding: 25px 22px 22px; border-radius: 15px; }
  body.login #loginform::before { font-size: 21px; }
  body.login #loginform::after { margin-top: 15px; }
  body.login .language-switcher { margin-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  body.login *, body.login *::before, body.login *::after { transition: none !important; }
}
