/* Start custom CSS for shortcode, class: .elementor-element-31173e1 *//* ============================================================
   Topzat.kz — Login / Register 合并美化 (v4,手机版紧凑头部)
   ------------------------------------------------------------
   依据真实 DOM(Woodmart「注册 Tab」布局)重写:
     .wd-registration-page.wd-register-tabs.with-login-reg-info
       └─ .wd-grid-f-col#customer_login        ← 外层容器
            ├─ .wd-col.col-login                ← 登录卡
            ├─ .wd-col.col-register             ← 注册卡
            └─ .wd-col.col-register-text        ← 额外信息/切换面板(本版隐藏)

   ⚠️ 注意:登录 <form> 也带 id="customer_login"(与容器重复),
      所以选择器一律用 .wd-grid-f-col / .wd-col.col-* 精确命中,不直接用 #customer_login。
   作用域只限登录/注册卡片,不碰任何 WooCommerce 通知。
   粘贴位置:外观 → 自定义 → 附加 CSS(全局)。
   配色:雾紫 #6D28D9 / 暖金 #E0A82E / 浅底 #F7F5FB / 深 #211A2E
   桌面(≥1025px):左登录、右注册、中间竖线 + 黑色竖标签「немесе」
   手机(≤768px):同页 Tab 切换「Кіру / Тіркелу」(配合 auth-tabs-v2.js)
   ============================================================ */

/* ---------- 1. 隐藏第三列(信息/切换面板),只留两张卡 ---------- */
.wd-registration-page .wd-col.col-register-text {
  display: none !important;
}

/* ---------- 2. 外层卡片壳(白卡 + 圆角 + 阴影 + 顶部淡紫晕) ---------- */
.wd-registration-page .wd-grid-f-col {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  max-width: 1080px;
  margin: -12px auto !important;   /* 桌面上移,可调 */
  padding: 0 !important;
  border: 1px solid #efeaf6;
  border-radius: 26px;
  background:
    radial-gradient(120% 70% at 50% 0%, #f4eefe 0%, rgba(244, 238, 254, 0) 55%),
    #ffffff;
  box-shadow:
    0 30px 70px -35px rgba(109, 40, 217, 0.28),
    0 6px 22px -12px rgba(33, 26, 46, 0.10);
  overflow: hidden;
}

/* ---------- 3. 两列各占一半 ---------- */
.wd-registration-page .wd-col.col-login,
.wd-registration-page .wd-col.col-register {
  display: flex !important;   /* 强制两列同时可见,压过 Woodmart tab 默认隐藏 */
  flex: 1 1 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 56px 58px;
  margin: 0 !important;
  background: transparent;
}

/* ---------- 4. 中间竖线(雾紫渐变,上下淡出) ---------- */
.wd-registration-page .wd-grid-f-col::before {
  content: "";
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(109, 40, 217, 0),
    #cdbfee 26%,
    #cdbfee 74%,
    rgba(109, 40, 217, 0)
  );
  z-index: 2;
}

/* ---------- 5. 中间黑色竖标签(竖排文字,居中) ---------- */
.wd-registration-page .wd-grid-f-col::after {
  content: "немесе";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #16111f;              /* 黑 */
  color: #ffffff;
  writing-mode: vertical-rl;
  font-family: "Albert Sans", "Urbanist", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 20px 7px;
  border-radius: 12px;
  box-shadow:
    0 10px 22px -8px rgba(22, 17, 31, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* ---------- 6. 标题(h2)+ 图标 ---------- */
.wd-registration-page .wd-col h2.wd-login-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0eaf7;
  font-family: "Urbanist", "Albert Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #211a2e;
  letter-spacing: -0.3px;
}
/* 登录标题图标(雾紫) */
.wd-registration-page .col-login h2.wd-login-title::before {
  content: "";
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 2-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E")
      center / 22px 22px no-repeat,
    linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 10px 20px -8px rgba(109, 40, 217, 0.55);
}
/* 注册标题图标(暖金) */
.wd-registration-page .col-register h2.wd-login-title::before {
  content: "";
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E")
      center / 22px 22px no-repeat,
    linear-gradient(135deg, #f0b445, #e0a82e);
  box-shadow: 0 10px 20px -8px rgba(224, 168, 46, 0.55);
}

/* ---------- 7. 表单行 + 标签 ---------- */
.wd-registration-page .wd-col form .form-row {
  margin-bottom: 18px;
}
.wd-registration-page .wd-col form .form-row > label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3d3550;
  letter-spacing: 0.2px;
}
.wd-registration-page .wd-col form .form-row .required {
  color: #e0a82e;
  text-decoration: none;
}

/* ---------- 8. 输入框(通用,带左侧图标) ---------- */
.wd-registration-page .wd-col form input.input-text {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  border: 1.5px solid #e7e1f2;
  border-radius: 12px;
  background-color: #fbf9fe;
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 20px 20px;
  color: #211a2e;
  font-size: 15px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.wd-registration-page .wd-col form input.input-text:focus {
  outline: none;
  border-color: #6d28d9;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}
.wd-registration-page .wd-col form input.input-text::placeholder {
  color: #b6aec9;
}
/* 登录用户名图标 */
.wd-registration-page .col-login form.login #username {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b39ddb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
/* 登录密码图标 */
.wd-registration-page .col-login form.login #password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b39ddb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}
/* 注册邮箱图标 */
.wd-registration-page .col-register form.register #reg_email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a25a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
/* 注册密码图标 */
.wd-registration-page .col-register form.register #reg_password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a25a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

/* ---------- 9. 登录按钮(雾紫) ---------- */
.wd-registration-page .col-login button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 55%, #5b21b6 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 12px 24px -8px rgba(109, 40, 217, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.wd-registration-page .col-login button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 28px -8px rgba(109, 40, 217, 0.55);
}
.wd-registration-page .col-login button[type="submit"]::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.2s ease;
}
.wd-registration-page .col-login button[type="submit"]:hover::after {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ---------- 10. 注册按钮(暖金) ---------- */
.wd-registration-page .col-register button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0b445 0%, #e0a82e 55%, #c68a1e 100%);
  color: #2b1d05 !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 12px 24px -8px rgba(224, 168, 46, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.wd-registration-page .col-register button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px -8px rgba(224, 168, 46, 0.55);
}
.wd-registration-page .col-register button[type="submit"]::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #2b1d05;
  border-bottom: 2px solid #2b1d05;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.2s ease;
}
.wd-registration-page .col-register button[type="submit"]:hover::after {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ---------- 11. 记住我 + 忘记密码 ---------- */
.wd-registration-page .col-login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b6b7a;
  cursor: pointer;
}
.wd-registration-page .col-login .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #6d28d9;
  cursor: pointer;
}
.wd-registration-page .col-login .lost_password a {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #6d28d9;
  text-decoration: none;
}
.wd-registration-page .col-login .lost_password a:hover {
  color: #e0a82e;
  text-decoration: underline;
}

/* ---------- 12. 登录「Or login with」分隔 + Google 按钮 ---------- */
.wd-registration-page .col-login .wd-login-divider {
  position: relative;
  margin: 26px 0 18px;
  text-align: center;
  border: none;
}
.wd-registration-page .col-login .wd-login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #efeaf6;
}
.wd-registration-page .col-login .wd-login-divider span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  background: #ffffff;
  color: #a89fc0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wd-registration-page .col-login .wd-social-login {
  text-align: center;
}
.wd-registration-page .col-login .wd-social-login .login-goo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #e7e1f2;
  border-radius: 12px;
  background: #ffffff;
  color: #211a2e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wd-registration-page .col-login .wd-social-login .login-goo-link:hover {
  border-color: #6d28d9;
  box-shadow: 0 6px 16px -6px rgba(109, 40, 217, 0.25);
}
.wd-registration-page .col-login .wd-social-login .login-goo-link::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------- 13. 注册隐私政策文案 ---------- */
.wd-registration-page .col-register .woocommerce-privacy-policy-text {
  margin: 2px 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #8b8499;
}
.wd-registration-page .col-register .woocommerce-privacy-policy-text a {
  color: #6d28d9;
  font-weight: 600;
  text-decoration: none;
}
.wd-registration-page .col-register .woocommerce-privacy-policy-text a:hover {
  color: #e0a82e;
  text-decoration: underline;
}

/* ============================================================
   14. 手机版:同页 Tab 切换 + 卡片 hero(配合 auth-tabs-v2.js)
   ============================================================ */
.tz-auth-tabs { display: none; }   /* 桌面默认隐藏 */

@media (max-width: 768px) {
  .wd-registration-page .wd-grid-f-col {
    flex-direction: column !important;
    max-width: 560px;
    margin: -26px auto !important;   /* 手机版上移,可调 */
    border-radius: 20px;
  }
  .wd-registration-page .wd-grid-f-col::before,
  .wd-registration-page .wd-grid-f-col::after {
    display: none;
  }
  .wd-registration-page .wd-col.col-login,
  .wd-registration-page .wd-col.col-register {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 16px 18px 22px;   /* 顶部收紧,给谷歌按钮腾空间 */
  }
  /* 登录卡顶部渐变条 */
  .wd-registration-page .wd-col.col-login { position: relative; }
  .wd-registration-page .wd-col.col-login::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #6d28d9, #e0a82e);
  }
  /* 注册卡顶部渐变条 */
  .wd-registration-page .wd-col.col-register { position: relative; }
  .wd-registration-page .wd-col.col-register::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e0a82e, #6d28d9);
  }

  /* 标题紧凑:去掉大图标和副标题,只留小标题,给底部谷歌按钮腾空间 */
  .wd-registration-page .wd-col h2.wd-login-title {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 19px;
    font-weight: 800;
  }
  .wd-registration-page .wd-col h2.wd-login-title::before {
    display: none;      /* 去掉大图标 */
  }
  .wd-registration-page .wd-col h2.wd-login-title::after {
    display: none;      /* 去掉副标题 */
  }

  /* 登录「Or login with」分隔收紧,让谷歌按钮更靠上 */
  .wd-registration-page .col-login .wd-login-divider {
    margin: 12px 0 10px;
  }

  /* 输入框更大更圆 */
  .wd-registration-page .wd-col form input.input-text {
    height: 50px;
    border-radius: 14px;
    background-position: 16px center;
  }

  /* 注册按钮更高 */
  .wd-registration-page .col-register button[type="submit"] {
    min-height: 56px;
    border-radius: 14px;
    font-size: 16px;
    letter-spacing: 0.6px;
  }
  .wd-registration-page .col-register .woocommerce-privacy-policy-text {
    text-align: center;
    font-size: 11px;
  }

  /* 注册福利行 */
  .wd-registration-page .wd-col.col-register::after {
    content: "✓  Тегін тіркелу  ·  ✓  Мүше бағасы  ·  ✓  Жылдам тапсырыс";
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.9;
    color: #6b8499;
  }

  /* ---------- Tab 栏 ---------- */
  .tz-auth-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #efeaf6;
  }
  .tz-auth-tab {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 52px;
    border: none;
    background: transparent;
    color: #8b8499;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
  }
  .tz-auth-tab:active { background: #faf8fd; }
  .tz-auth-tab.is-active { color: #211a2e; font-weight: 800; }
  .tz-auth-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 34px;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }
  .tz-auth-tab-login.is-active::after {
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
  }
  .tz-auth-tab-register.is-active::after {
    background: linear-gradient(90deg, #f0b445, #e0a82e);
  }
  .tz-auth-tab-ico {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: center / contain no-repeat;
    opacity: 0.65;
  }
  .tz-auth-tab.is-active .tz-auth-tab-ico { opacity: 1; }
  .tz-auth-tab-ico-login {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  }
  .tz-auth-tab-ico-register {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0a82e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E");
  }

  /* 同页切换:默认显示登录,点注册切到注册(不跳转) */
  body.tz-auth-login    .wd-registration-page .wd-col.col-register { display: none !important; }
  body.tz-auth-register .wd-registration-page .wd-col.col-login    { display: none !important; }
}/* End custom CSS */