/* 登录 / 注册页 —— 视觉与原站 (gujitai.com) 一致：浅灰底、白卡、红色主题 */
body.login {
  background: #f5f5f5 !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
}
.login h1 a { display: none !important; }

/* 顶部品牌区 */
.guji-login-brand { text-align: center; margin: 30px auto 4px; }
.guji-login-logo {
  font-size: 28px; font-weight: 800; letter-spacing: 2px;
  color: #c00000; text-decoration: none;
}
.guji-login-logo:hover { color: #8f0000; }
.guji-login-sub {
  display: block; margin-top: 4px; font-size: 13px; color: #999; letter-spacing: .5px;
}

/* 卡片内标题：欢迎登录 / 用户注册 */
.guji-login-title {
  text-align: center; font-size: 22px; font-weight: 700; color: #222;
  margin: 4px auto 20px;
}

/* 卡片 */
#login { width: 380px; max-width: 92%; padding: 0; }
#loginform, #registerform {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  padding: 30px 30px 26px;
  margin-top: 0;
}

/* 标签 */
.login label { font-size: 13px; color: #555; margin-bottom: 6px; display: block; font-weight: 500; }

/* 输入框 */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: none;
  padding: 11px 13px;
  font-size: 14px; color: #333;
  width: 100%; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.login input:focus {
  border-color: #c00000;
  box-shadow: 0 0 0 2px rgba(192,0,0,.12);
  outline: none;
}

/* 注册页静态提示条隐藏（保持与原站一致的干净卡片） */
.login-action-register #login > .message { display: none; }

/* 记住我 */
.login .forgetmenot { margin: 8px 0 2px; font-size: 13px; color: #666; }

/* 提交按钮 —— 红色全宽；登录页做成药丸形贴近原站 */
.login .button-primary, #wp-submit {
  width: 100%; height: 44px;
  background: #c00000 !important;
  border: 0 !important; border-radius: 6px !important;
  box-shadow: none !important; color: #fff !important;
  font-size: 15px; font-weight: 600; text-shadow: none !important;
  cursor: pointer; margin-top: 12px;
  transition: background .15s;
}
.login .button-primary:hover, #wp-submit:hover { background: #8f0000 !important; }
.login-action-login #wp-submit { border-radius: 999px; }

/* 隐藏 WP 默认语言切换器（原站无此组件） */
.login .language-switcher { display: none !important; }

/* 提示 / 错误 */
.login #login_error, .login .message, .login .success {
  background: #fff;
  border: 1px solid #ececec;
  border-left: 3px solid #c00000;
  border-radius: 6px; box-shadow: none;
  color: #555; font-size: 13px; padding: 12px 14px;
}
.login .message { border-left-color: #2f6fb7; }
.login .message a, .login #login_error a { color: #c00000; }

/* 导航链接 */
.login #nav, .login #backtoblog { text-align: center; font-size: 13px; padding: 0; }
.login #nav a, .login #backtoblog a { color: #666 !important; text-decoration: none; }
.login #nav a:hover, .login #backtoblog a:hover { color: #c00000 !important; }
.login #nav { margin: 16px 0 0; }
.login #backtoblog { margin: 8px 0 0; }

/* 注册表单间距 */
.login #registerform p { margin: 0 0 14px; }
.login #registerform .guji-pwd-row { margin: 0 0 14px; }

/* 必填项红色星号（用户名/邮箱/密码/确认密码/验证码） */
.login #registerform label[for="user_login"]::before,
.login #registerform label[for="user_email"]::before,
.login #registerform label[for="reg_password"]::before,
.login #registerform label[for="reg_password2"]::before,
.login #registerform label[for="reg_captcha"]::before {
  content: "* ";
  color: #e0241b;
  font-weight: 700;
}

/* 密码规则提示（写在密码输入框下方） */
.login #registerform .guji-pwd-hint {
  font-size: 12px;
  color: #999;
  margin: -6px 0 14px;
  line-height: 1.6;
}

/* 注册页用户名规则提示（JS 插入到用户名框下方） */
.login #registerform .guji-username-hint {
  font-size: 12px;
  color: #999;
  margin: -6px 0 12px;
  line-height: 1.5;
}
