/**
 * 登录 / 注册页面样式
 * 遵循 CamThink office-frontend-style 规范（白色主题）
 *  - 页面底色 #f9f9f9 / 卡片 #fff + 描边 #dbdbdb / 圆角 6px
 *  - 主按钮 #f24a00 实心 / 标题 #333 / 正文 #666 / 强调 #f24a00
 *  - 全部使用 rem，行高 1.5
 */

/* ===== 页面底色 ===== */
body.ck-auth-page {
  background-color: #f9f9f9;
}

/* ===== 容器垂直间距 =====
   登录/注册页渲染在 Blocksy 的 ct-container-full 内，容器自带内容垂直
   间距 --theme-content-vertical-spacing（全局默认 60px），与卡片 margin
   叠加造成页面上下留白过大。这里收窄容器间距，卡片仅保留水平居中。 */
/* body.ck-auth-page .ct-container-full {
  --theme-content-vertical-spacing: 1.5rem;
} */

/* ===== 表单卡片容器 ===== */
.ck-split-auth {
  max-width: 30rem; /* 480px */
  margin: 0 auto;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .ck-split-auth {
  padding: 2.5rem 1.5rem;
  margin: 0 auto;
  }
}

.ck-split-auth .u-column1.col-1,
.ck-split-auth .u-column2.col-2 {
  float: none;
  width: 100%;
  padding: 0;
}

/* ===== 标题 h2（PC 2.375rem / 移动 1.5rem，SemiBold #333） ===== */
.ck-split-auth h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
  margin: 0 0 1rem;
  margin: 0 0 1rem;
}

@media (min-width: 1024px) {
  .ck-split-auth h2 {
    font-size: 2.375rem;
  }
}

/* ===== 正文 / 说明文字（1rem #666） ===== */
.ck-split-auth p {
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
}

/* ===== 表单行 ===== */
.ck-split-auth .woocommerce-form-row {
  margin: 0 0 0.5rem;
  padding: 0;
}

/* ===== label（0.875rem #666） ===== */
.ck-split-auth label {
  display: block;
  font-size: 0.875rem;
  color: #666666;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.ck-split-auth label .required {
  color: #f24a00;
}

/* ===== 输入框（描边 #dbdbdb / 圆角 6px / 聚焦 #f24a00） ===== */
.ck-split-auth .woocommerce-Input,
.ck-split-auth input[type="text"],
.ck-split-auth input[type="email"],
.ck-split-auth input[type="password"] {
  width: 100%;
  height: auto;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #333333;
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ck-split-auth .woocommerce-Input:focus,
.ck-split-auth input[type="text"]:focus,
.ck-split-auth input[type="email"]:focus,
.ck-split-auth input[type="password"]:focus {
  outline: none;
  border-color: #f24a00;
  box-shadow: 0 0 0 1px #f24a00;
}

/* ===== Remember me ===== */
.ck-split-auth .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #666666;
}

.ck-split-auth .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #f24a00;
}

/* ===== 主按钮（default variant：#f24a00 / 白字 / 16px Medium / 圆角 6px） ===== */
.ck-split-auth .button,
.ck-split-auth .woocommerce-button,
.ck-split-auth .woocommerce-form-login__submit,
.ck-split-auth .woocommerce-form-register__submit {
  display: block;
  width: 100%;
  padding: 1rem 2rem; /* PC: 16px / 32px */
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff !important;
  background: #f24a00 !important;
  border: none;
  border-radius: 6px !important; /* 覆盖 Blocksy `.woocommerce button.button` 的 var(--theme-button-border-radius,3px)（特异性 0,2,1 高于本规则 0,2,0） */
  cursor: pointer;
  text-transform: none;
  transition: background-color 0.2s, opacity 0.2s;
}

.ck-split-auth .button:hover,
.ck-split-auth .woocommerce-button:hover,
.ck-split-auth .woocommerce-form-login__submit:hover,
.ck-split-auth .woocommerce-form-register__submit:hover {
  background: rgba(242, 74, 0, 0.9) !important;
}

.ck-split-auth .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 焦点环 1px #f24a00 */
.ck-split-auth .button:focus-visible,
.ck-split-auth .woocommerce-form-login__submit:focus-visible,
.ck-split-auth .woocommerce-form-register__submit:focus-visible {
  outline: 1px solid #f24a00;
  outline-offset: 2px;
}

/* 移动端按钮内边距 1rem / 0.5rem */
@media (max-width: 767px) {
  .ck-split-auth .button,
  .ck-split-auth .woocommerce-form-login__submit,
  .ck-split-auth .woocommerce-form-register__submit {
    padding: 0.5rem 1rem;
  }
}

/* ===== Lost password 链接（linkUnderline 风格：#f24a00） ===== */
.ck-split-auth .woocommerce-LostPassword,
.ck-split-auth .lost_password {
  width: 100%;
  margin: 1rem 0 0;
  text-align: center;
}

.ck-split-auth .woocommerce-LostPassword a,
.ck-split-auth .lost_password a {
  color: #f24a00;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.ck-split-auth .woocommerce-LostPassword a:hover,
.ck-split-auth .lost_password a:hover {
  text-decoration: underline;
}

/* ===== 底部切换链接（登录 ↔ 注册） ===== */
.ck-auth-switch {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dbdbdb;
  text-align: center;
  font-size: 0.875rem;
  color: #666666;
}

.ck-auth-switch a {
  color: #f24a00;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
}

.ck-auth-switch a:hover {
  text-decoration: underline;
}

/* ===== WC 提示信息（错误 / 成功）圆角统一 ===== */
.ck-split-auth .woocommerce-error,
.ck-split-auth .woocommerce-message,
.ck-split-auth .woocommerce-info {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ===== 社交登录（WP Social shortcode） ===== */
.ck-social-login {
  margin-bottom: 0.5rem;
}

.ck-social-login__divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: #999999;
  font-size: 0.875rem;
}

.ck-social-login__divider::before,
.ck-social-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dbdbdb;
}

.ck-social-login__divider span {
  padding: 0 0.75rem;
}

/* ===== Google 官方登录按钮（白底 + 多色 G + "Sign in with Google"） ===== */
.ck-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #3c4043;
  text-decoration: none;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ck-google-btn:hover {
  background: #f7f8f8;
  border-color: #dadce0;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.ck-google-btn:active {
  background: #eceff1;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2);
}

.ck-google-btn:focus-visible {
  outline: 1px solid #f24a00;
  outline-offset: 2px;
}

.ck-google-btn__icon {
  flex-shrink: 0;
  width: 1.125rem;  /* 18px */
  height: 1.125rem;
}

.ck-google-btn__text {
  white-space: nowrap;
}

/* ===== LinkedIn login (WP Social) ===== */
.ck-linkedin-login {
  margin: 0.5rem 0 0;
}

.ck-linkedin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 47px;
  padding: 0.625rem 1rem;
  background: #0a66c2;
  border: 1px solid #0a66c2;
  border-radius: 6px;
  color: #ffffff;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ck-linkedin-btn__icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: #ffffff;
}

.ck-linkedin-btn:hover {
  background: #004182;
  border-color: #004182;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(10, 102, 194, 0.3);
}

.ck-linkedin-btn:focus-visible {
  outline: 1px solid #f24a00;
  outline-offset: 2px;
}

/* ===== 辅助提示文字（密码链接提示 / 隐私政策）轻量小灰字 ===== */
.ck-split-auth .ck-hint,
.ck-split-auth .privacy-policy-text {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #999999;
  line-height: 1.5;
  text-align: flex-start;
}

/* 隐私政策文本：上方留白（与 Turnstile 隔开）、下方加大（与提交按钮拉开间距） */
.ck-split-auth .privacy-policy-text {
  margin: 0.75rem 0 1.5rem;
}

.ck-split-auth .privacy-policy-text a {
  color: #f24a00;
  text-decoration: none;
}

.ck-split-auth .privacy-policy-text a:hover {
  text-decoration: underline;
}


.ck-split-auth .woocommerce-privacy-policy-text{
  margin-bottom: 0.5rem;
}

/* ===== 找回 / 重置密码页：所有表单行强制独占一行（覆盖 WC form-row-first/last 浮动） =====
   auth.css 仅在 /login、/register、lost-password 端点加载，不影响其他 Woo 表单。 */
.ck-split-auth .woocommerce-ResetPassword .form-row,
.ck-split-auth .woocommerce-ResetPassword .form-row-first,
.ck-split-auth .woocommerce-ResetPassword .form-row-last {
  float: none;
  width: 100%;
}

/* 重置新密码页：两个字段之间拉开间距 */
.ck-split-auth .woocommerce-ResetPassword .form-row-wide + .form-row-wide {
  margin-top: 0.5rem;
}

/* ===== Lost password 页：提交按钮与上方输入框拉开间距 + 按钮加高 =====
   仅作用于 .woocommerce-ResetPassword，不影响 /login、/register。 */
.ck-split-auth .woocommerce-ResetPassword .form-row:not(.form-row-wide) {
  margin-top: 1.25rem;
}

/* .ck-split-auth .woocommerce-ResetPassword .woocommerce-form-login__submit {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (max-width: 767px) {
  .ck-split-auth .woocommerce-ResetPassword .woocommerce-form-login__submit {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }
} */
