@charset "UTF-8";
/**
 * Taobao 主题 — 登录 / 注册页
 */

.tb-auth-skin {
  min-width: 0;
  background: #f5f5f5;
}

.tb-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— 页头 —— */
.tb-auth-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.tb-auth-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #ff5000, #ff9000, #ff5000);
}
.tb-auth-header-inner {
  max-width: 1190px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tb-auth-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}
.tb-auth-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #666;
}
.tb-auth-header-right a {
  color: #ff5000;
  text-decoration: none;
  font-weight: 600;
}
.tb-auth-header-right a:hover {
  color: #ff4400;
}
.tb-auth-header-tip {
  color: #999;
  font-size: 13px;
}

/* —— 主区域 —— */
.tb-auth-main,
.wst-login-middle {
  flex: 1;
  width: 100% !important;
  margin: 0 !important;
  padding: 48px 20px 56px !important;
  background: #f5f5f5 !important;
  background-size: cover !important;
  background-position: center !important;
  overflow: visible !important;
}
.tb-auth-layout {
  max-width: 1190px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 420px;
}
.tb-auth-layout--regist {
  justify-content: center;
}

.wst-login_l,
.wst-login_l_shop {
  width: 100% !important;
  height: auto !important;
  float: none !important;
}
.wst-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* 登录卡片 */
.wst-login_r {
  float: none !important;
  margin: 0 !important;
  width: 400px;
  max-width: 100%;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 28px 32px 32px !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* 注册区域 */
.wst-regist-b {
  flex: 1;
  background: #f5f5f5 !important;
  border: none !important;
  margin: 0 !important;
  padding: 48px 20px 56px !important;
}
.wst-regist-b .wst-container {
  max-width: 720px !important;
  margin: 0 auto !important;
}
.wst-regist,
.wst-regist-c {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
}
.wst-register_r,
.wst-regist .wst-register_r {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 28px 36px 36px !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}
/* login.css 里 tab-box 宽 720px，比卡片还大，会把内容挤偏 */
.wst-register_r .wst-tab-box,
.wst-regist .wst-tab-box {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  overflow: visible !important;
}
.wst-register_r .wst-tab-nav,
.wst-regist .wst-tab-nav {
  width: 100% !important;
}
.wst-register_r .wst-tab-nav li,
.wst-regist .wst-tab-nav li {
  min-width: 0 !important;
  float: none !important;
}
.wst-register_r .wst-tab-nav li:after,
.wst-regist .wst-tab-nav li:after {
  display: none !important;
  content: none !important;
}
.wst-tab-content,
.wst-tab-item {
  width: 100% !important;
  text-align: left !important;
}
/* 覆盖 login.css：input 的 float / margin-left */
.tb-auth-skin input.wst-regist-input,
.tb-auth-skin input.wst-regist-codemo,
.tb-auth-skin input.wst_ipt,
.tb-auth-skin input.wst_ipt2,
.tb-reg-form input {
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tb-auth-skin .wst-regist-obtain {
  float: none !important;
}
.wst-regist-head {
  font-size: 24px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  color: #111 !important;
  text-align: center !important;
  margin-bottom: 8px !important;
  padding-top: 8px;
}
.wst-regist-head::after {
  content: "填写信息，快速完成注册";
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #999;
  margin-top: 6px;
}

/* Tab 切换 */
.wst-tab-nav {
  display: flex !important;
  border-bottom: 1px solid #f0f0f0 !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
}
.wst-tab-nav li {
  flex: 1;
  text-align: center;
  padding: 12px 8px !important;
  font-size: 15px !important;
  color: #666 !important;
  cursor: pointer;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px;
  transition: color 0.15s;
  list-style: none;
}
.wst-tab-nav li.on,
.wst-tab-nav li:hover {
  color: #ff5000 !important;
  border-bottom-color: #ff5000 !important;
  background: transparent !important;
}
.wst-tab-nav li:empty {
  display: none;
}

/* 输入框 */
.wst-item {
  margin-bottom: 16px !important;
}
.wst-item-box {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 16px !important;
  height: 44px !important;
  line-height: 44px !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.wst-item-box:focus-within {
  border-color: #ff5000 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.1);
}
.wst-item-box .login-img,
.wst-item-box .password-img,
.wst-item-box .yanzheng-img {
  display: none !important;
}
/* 登录页：输入框在 wst-item-box 内，无边框由容器提供 */
.wst-item-box input.wst-login-input-1,
.wst-item-box input.wst-regist-codemo,
.wst-item-box .wst-login-codein-1 {
  width: 100% !important;
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  float: none !important;
  border: none !important;
  background: transparent !important;
  font-size: 14px !important;
  color: #333 !important;
  box-sizing: border-box;
}
.wst-item-box input:focus {
  border: none !important;
  outline: none !important;
}

/* —— 注册表单（垂直布局，铺满卡片居中） —— */
.tb-reg-form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 8px 0 0;
  box-sizing: border-box;
}
.tb-reg-field {
  margin-bottom: 18px;
}
.tb-reg-field--protocol {
  margin-bottom: 20px;
}
.tb-reg-field--submit {
  margin-bottom: 0;
  margin-top: 8px;
}
.tb-reg-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}
.tb-reg-req {
  color: #ff5000;
  margin-right: 2px;
}
.tb-reg-input,
.tb-reg-form input.wst-regist-input,
.tb-reg-form input.wst_ipt,
.tb-reg-form input.wst_ipt2 {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 44px !important;
  line-height: 44px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  float: none !important;
  box-sizing: border-box;
  font-size: 14px !important;
  color: #333 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tb-reg-input:focus,
.tb-reg-form input.wst-regist-input:focus {
  border-color: #ff5000 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.1);
  background: #fff !important;
}
.tb-reg-input::placeholder {
  color: #bbb;
}

.tb-reg-sms-row,
.tb-reg-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tb-reg-sms-row .tb-reg-input,
.tb-reg-captcha-row .tb-reg-input {
  flex: 1;
  min-width: 0;
}
.tb-reg-sms-btn,
.tb-reg-form .wst-regist-obtain {
  flex-shrink: 0;
  height: 44px !important;
  line-height: 42px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  float: none !important;
  white-space: nowrap;
  background: #fff !important;
  border: 1px solid #ff5000 !important;
  color: #ff5000 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  cursor: pointer;
}
.tb-reg-sms-btn:hover,
.tb-reg-form .wst-regist-obtain:hover {
  background: #fff5f0 !important;
}
.tb-reg-captcha-img {
  flex-shrink: 0;
  width: 120px !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  object-fit: cover;
}

/* 协议勾选 */
.tb-reg-check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
  margin: 0;
}
.tb-reg-checkbox,
.tb-reg-form input[type="checkbox"].wst_ipt,
.tb-reg-form input[type="checkbox"].wst_ipt2 {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  accent-color: #ff5000;
  cursor: pointer;
  border: 1px solid #ddd !important;
  border-radius: 3px !important;
  background: #fff !important;
  line-height: normal !important;
  float: none !important;
}
.tb-reg-check-text {
  flex: 1;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.tb-reg-protocol-link,
.wst-reg-protocol-link {
  color: #ff5000 !important;
  text-decoration: none;
}
.tb-reg-protocol-link:hover,
.wst-reg-protocol-link:hover {
  text-decoration: underline;
}

.tb-reg-submit,
.tb-reg-form .wst-regist-but,
.tb-reg-form #reg_butt,
.tb-reg-form #reg_butt2 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* 校验提示：放在字段下方 */
.tb-reg-form .msg-wrap,
.tb-reg-form.n-default .msg-wrap,
.tb-reg-form.n-right .msg-wrap,
.tb-auth-skin .tb-reg-form .msg-box .msg-wrap,
.tb-auth-skin .n-right .tb-reg-form .msg-wrap {
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: block !important;
  margin-top: 6px !important;
  margin-left: 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  float: none !important;
  width: auto !important;
  max-width: 100%;
  transform: none !important;
}
.tb-reg-form .n-error,
.tb-reg-form .msg-box .n-error {
  color: #ff5000 !important;
  font-size: 12px !important;
}
.tb-reg-field {
  position: relative;
}

/* 注册区隐藏旧 table */
.tb-reg-form .wst-table {
  display: none;
}


/* 验证码行 */
.wst-login-code-1 {
  display: flex !important;
  align-items: center;
  height: 100% !important;
  padding-right: 4px;
}
.wst-login-code-1 input.wst-login-codein-1 {
  flex: 1;
  position: static !important;
  left: auto !important;
  min-width: 0;
}
.wst-login-codeim-1 {
  flex-shrink: 0;
  width: 110px !important;
  height: 36px !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 6px !important;
  cursor: pointer;
}

#mobileCodeDiv.wst-item-box {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  height: auto !important;
  min-height: 44px;
  padding: 4px 8px 4px 0 !important;
}
#mobileCodeDiv.wst-login-tr {
  display: block !important;
}
#mobileCodeDiv.wst-item-box .wst-regist-codemo {
  flex: 1;
  min-width: 120px;
}
.wst-regist-obtain {
  flex-shrink: 0;
  float: none !important;
  width: auto !important;
  padding: 0 12px !important;
  height: 36px !important;
  line-height: 36px !important;
  background: #fff !important;
  border: 1px solid #ff5000 !important;
  color: #ff5000 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  cursor: pointer;
  margin: 0 !important;
}
.wst-regist-obtain:hover {
  background: #fff5f0 !important;
}

/* 记住密码 / 链接 */
.wst-table {
  width: 100% !important;
  margin: 8px 0 16px !important;
}
.wst-login-tr td {
  padding: 0 !important;
}
.wst-login-tr label {
  font-size: 13px;
  color: #666;
}
.wst-login-tr label a {
  color: #999 !important;
  text-decoration: none;
  font-size: 13px;
}
.wst-login-tr label a:hover {
  color: #ff5000 !important;
}
.wst-login-ch {
  accent-color: #ff5000;
}

/* 主按钮 */
.wst-login-but,
.wst-regist-but,
#reg_butt,
#reg_butt2 {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  line-height: 44px !important;
  background: linear-gradient(135deg, #ff5000, #ff7733) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.25);
}
.wst-login-but:hover,
.wst-regist-but:hover {
  opacity: 0.92;
  background: linear-gradient(135deg, #ff4400, #ff6600) !important;
}
.wst-login-but::before {
  display: none !important;
}
.wst-item .wst-login-but {
  width: 100% !important;
}

/* 注册表格（旧版兼容，新模板已不用 table） */
.wst-regist-td {
  display: none;
}

/* 扫码登录 */
.qrcode-main {
  text-align: center;
  padding: 16px 0;
}
.qrcode-img img {
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid #eee;
}
.qrcode-main p {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
}
.qrcode-main p span {
  color: #ff5000;
  font-weight: 600;
}
.qr-coagent {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
}
.qr-coagent em {
  font-style: normal;
  font-size: 12px;
  color: #999;
}

/* 隐藏旧 banner */
.wst-login-banner,
.wst-login-banner-regist,
.wst-icon-banner {
  display: none !important;
}

/* 页脚 */
.tb-auth-footer,
.tb-auth-skin .wst-footer {
  background: #fff;
  border-top: 1px solid #eee;
  margin-top: auto;
  padding: 20px 0;
}
.tb-auth-footer-inner,
.tb-auth-skin .wst-footer .wst-container {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.tb-auth-footer-links,
.tb-auth-skin .wst-footer .links {
  margin-bottom: 10px;
}
.tb-auth-footer-links a,
.tb-auth-skin .wst-footer .links a {
  color: #888;
  text-decoration: none;
  font-size: 12px;
  margin: 0 8px;
}
.tb-auth-footer-links a:hover,
.tb-auth-skin .wst-footer .links a:hover {
  color: #ff5000;
}
.tb-auth-footer-copy,
.tb-auth-skin .wst-footer .copyright {
  font-size: 12px;
  color: #aaa;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .tb-auth-layout {
    justify-content: center;
  }
  .wst-login_r {
    width: 100%;
    padding: 24px 20px !important;
  }
  .wst-register_r {
    padding: 24px 20px !important;
  }
  .wst-regist-td {
    display: block;
    width: 100% !important;
    padding-bottom: 4px !important;
  }
  .wst-table .wst-login-tr td {
    display: block;
    width: 100% !important;
  }
}
