body.page-template-custom-login-register { background: #fff; }

.custom-login-register {
  min-height: 0;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  padding-bottom: 25vh;
}


.login-register-container {
  display: flex;
  width: 1100px;
  height: 470px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  border: none;
  position: relative;
}

.login-left {
  width: 520px;
  min-width: 520px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-left img {
  width: 92%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
}

.login-right {
  flex: 1;
  min-width: 0;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.login-content {
  width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 410px;
  position: relative;
  padding-top: 12px;
}

.tab-switch {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  justify-content: center;
}
.tab-switch span {
  position: relative;
  cursor: pointer;
  padding-bottom: 5px;
  font-size: 21px;
  color: #222;
  font-weight: 600;
  background: none;
  line-height: 1.12;
}
.tab-switch span.active {
  color: #f97316;
}
.tab-switch span.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2.5px;
  background: #f97316;
  border-radius: 1px;
}

.login-form, .register-form { display: none; }
.login-form.active, .register-form.active { display: block; }

.login-form label,
.register-form label {
  font-size: 15px;
  color: #222;
  margin-bottom: 6px;
  font-weight: 600;
  display: block;
  letter-spacing: 0;
}

.pw-wrapper {
  position: relative;
  margin-bottom: 18px;
}
.pw-wrapper input[type="password"],
.pw-wrapper input[type="text"] {
  padding-right: 34px;
  margin-bottom: 0;
  font-size: 15px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  cursor: pointer;
  height: 22px;
  width: 22px;
  opacity: 0.65;
  border: none;
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-toggle:active,
.pw-toggle:focus,
.pw-toggle:visited {
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.pw-toggle::-moz-focus-inner {
  border: 0;
}
.pw-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.login-form input,
.register-form input {
  width: 100%;
  height: 38px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  border-radius: 2px;
  font-size: 15px;
  transition: border-color 0.2s;
}
.login-form input:focus,
.register-form input:focus {
  border-color: #f97316;
  outline: none;
}
.login-form button,
.register-form button {
  width: 90px;
  height: 36px;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  margin-top: 0;
  letter-spacing: 0.3px;
  transition: background .2s;
}
.login-form button:hover,
.register-form button:hover {
  background: #e25a0c;
}

.error-message {
  color: #d93f3d;
  margin-bottom: 10px;
  font-size: 14px;
}

.login-meta-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 13px;
  color: #888;
  margin-top: 12px;
  margin-bottom: 0;
  position: relative;
  min-height: 36px;
}

.login-form label.remember {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 13px;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.1px;
  user-select: none;
  height: 22px;
}
.login-form label.remember input[type=checkbox] {
  margin-right: 6px;
  width: 15px;
  height: 15px;
  accent-color: #bbb;
  border-radius: 2px;
  vertical-align: middle;
  position: relative;
  top: 6px;
}

.login-form .forgot-link {
  color: #888;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
  margin-left: 10px;
  position: absolute;
  right: 0;
  bottom: -28px;
}
.login-form .forgot-link:hover {
  color: #f97316;
}

@media (max-width: 1200px) {
  .login-register-container { width: 99vw; min-width: 300px; height: auto;}
  .login-left { width: 100%; min-width: 100%; }
  .login-content { width: 92vw; min-width: 200px; max-width: 98vw;}
  .login-meta-row { position: static; }
  .login-form .forgot-link { position: static; margin-left: 12px; }
}
/* 手机端整体断点 */
@media (max-width: 767px) {
  /* 整体容器：垂直排列 */
  .login-register-container {
    flex-direction: column;
    width: 100vw;
    height: auto;
  }
  /* 左侧 Logo 区域改为顶部横幅 */
  .login-left {
    width: 100%;
    min-width: 100%;
    padding: 20px 0;
    background: #000;
  }
  .login-left img {
    width: 60%;
    max-width: 200px;
    margin: 0 auto;
  }
  /* 右侧内容区 */
  .login-right {
    width: 100%;
    padding: 20px 16px;
    background: #fafafa;
  }
  .login-content {
    width: 100%;
    padding-top: 8px;
    padding-bottom: 16px;
    min-height: auto;
  }
  /* Tab 切换按钮缩小 */
  .tab-switch {
    gap: 24px;
    margin-bottom: 24px;
  }
  .tab-switch span {
    font-size: 18px;
  }
  /* 表单宽度全铺满 */
  .login-form, .register-form {
    width: 100%;
  }
  /* 输入框和按钮铺满宽度 */
  .login-form input,
  .register-form input,
  .login-form button,
  .register-form button {
    width: 100%;
  }
  /* 表单按钮高度和字体微调 */
  .login-form button,
  .register-form button {
    height: 44px;
    font-size: 16px;
  }
  /* 密码切换按钮位置调整 */
  .pw-wrapper {
    margin-bottom: 16px;
  }
  .pw-toggle {
    right: 8px;
  }
  /* 元信息排列：改为块状 */
  .login-meta-row {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 8px;
    margin-top: 12px;
  }
  .login-form .forgot-link {
    position: static;
    margin-left: 0;
  }
  /* 错误信息与标签字体微调 */
  .error-message {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .login-form label,
  .register-form label {
    font-size: 14px;
  }
   /* 如果是 custom-login-register 本身在撑高，直接重置 */
   .custom-login-register {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 如果是页面内容区（WordPress 常见类名）在撑高，再调整它 */
  .page-template-custom-login-register .site-content,
  .page-template-custom-login-register .content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .pw-wrapper {
    position: relative;
    width: 100%;             /* 和输入框等宽 */
  }
  .pw-wrapper input[type="password"],
  .pw-wrapper input[type="text"] {
    padding-right: 44px;     /* 预留图标空间，按需微调 */
  }
  .pw-toggle {
    position: absolute;
    top: 50%;
    right: -45%;             /* 距离输入框右边框 12px，右对齐 */
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0.65;
  }
}