#tobpopup-modal-wrap {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.36);
  z-index: 10099;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tobpopup-modal {
  background: #fff;
  border-radius: 14px;
  width: 360px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 36px rgba(44,56,85,.18);
  position: relative;
  padding: 0;
  font-family: 'PingFang SC','Microsoft YaHei',Arial,sans-serif;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 420px;
}
.tobpopup-header {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.tobpopup-logo-area {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  margin-top: 0;
}
.tobpopup-logo-img {
  max-width: 110px;
  max-height: 48px;
  margin: 0 auto;
  display: block;
}
.tobpopup-logo-text {
  font-size: 21px;
  font-weight: bold;
  color: #333;
  margin: 0 auto;
  display: block;
  line-height: 60px;
}
.tobpopup-tabs {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 0 0 4px 0;
}
.tobpopup-tab-link {
  font-size: 15.5px;
  color: #bbb;
  padding: 0 0 5px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  line-height: 1.2;
  transition: color .15s, border-bottom .15s;
}
.tobpopup-tab-link.active {
  color: #338aff;
  font-weight: bold;
  border-bottom: 2px solid #338aff;
}
.tobpopup-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background:url('data:image/svg+xml;utf8,<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="6.46447" y="7.87868" width="2" height="20" rx="1" transform="rotate(-45 6.46447 7.87868)" fill="gray"/><rect x="7.87868" y="21.2132" width="2" height="20" rx="1" transform="rotate(-135 7.87868 21.2132)" fill="gray"/></svg>') center/20px no-repeat;
  opacity: .6;
  transition:.2s;
  z-index: 3;
}
.tobpopup-close:hover { opacity:1; }
.tobpopup-modal-content {
  flex: 1 1 auto;
  overflow: visible;
  margin-bottom: 60px;
}
.tobpopup-tab-content {
  display: none;
  width: 100%;
}
.tobpopup-tab-content.active {
  display: block;
}
.tobpopup-tab-content form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tobpopup-form-group {
  margin: 16px 32px 0 32px;
  position:relative;
  flex-shrink: 0;
}
.tobpopup-form-group:first-child {
  margin-top: 0;
}
.tobpopup-form-group input[type=text], 
.tobpopup-form-group input[type=password], 
.tobpopup-form-group input[type=email] {
  width:100%;
  height:44px;
  font-size: 17px;
  border:1.5px solid #d9dde5;
  border-radius: 8px;
  padding: 0 48px 0 15px;
  background: #f8fafd;
  color: #222 !important;
  margin-top:0;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 1.2px;
  outline:none;
  transition: border-color .18s,box-shadow .18s;
}
.tobpopup-form-group input:focus {
  border-color: #338aff;
  background: #fff;
  box-shadow: 0 2px 8px rgba(51,138,255,0.07);
}
.tobpopup-form-group input::placeholder {
  color: #888 !important;
  opacity: 1 !important;
  font-weight: 400;
}
.tobpopup-btn {
  width:100%;
  height:44px;
  background: #338aff;
  color:#fff;
  border:none;
  border-radius:8px;
  font-size: 18px;
  margin-top: 18px;
  font-weight: bold;
  transition:.18s;
  cursor:pointer;
  letter-spacing:2px;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(51,138,255,0.06);
}
.tobpopup-btn:hover { background:#2466d3; }
.tobpopup-msg {
  min-height: 18px;
  font-size: 14px;
  text-align:center;
  margin-top:12px;
  flex-shrink: 0;
}
.tobpopup-msg-ok { color: #28a745;}
.tobpopup-msg-err { color: #e74c3c;}
.tobpopup-captcha {
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink: 0;
}
.tobpopup-captcha input { flex:1; }
.tobpopup-captcha-img {
  width: 90px;
  height: 32px;
  border-radius: 7px;
  border:1.3px solid #e4e8f2;
  background:#f8f8f8;
  cursor:pointer;
  object-fit:cover;
}
.tobpopup-protocol { font-size:12.5px; margin-top:9px; flex-shrink: 0;}
.tobpopup-protocol label { color:#888;}
.tobpopup-protocol a { color:#338aff; text-decoration:underline; margin: 0 1px;}
.tobpopup-bottom {
  text-align: center;
  font-size:14px;
  color:#888;
  margin: 0 0 0 0;
  letter-spacing:.2px;
  flex-shrink: 0;
  padding: 18px 12px 20px 12px;
  border-top: 1px solid #f4f4f4;
  background: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.tobpopup-link {
  color:#338aff;
  margin:0 2px;
  text-decoration:none;
  cursor:pointer;
  transition: color .18s;
}
.tobpopup-link:hover { text-decoration:underline; color:#2466d3;}

/* ===== 明文密码切换小眼睛 ===== */
.tobpopup-password-group {
  position: relative !important;
}
.tobpopup-password-group input[type="password"],
.tobpopup-password-group input[type="text"] {
  padding-right: 48px !important;
}
.tobpopup-showpwd {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 48px !important;
  height: 44px !important;
  display: block !important;
  cursor: pointer !important;
  z-index: 999 !important;
  pointer-events: auto !important;
  background: none !important;
  user-select: none;
  transition: opacity .15s;
}
.tobpopup-showpwd::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  background: url('./eye-close.png') center center no-repeat;
  background-size: 24px 24px;
  transition: background-image .18s,opacity .15s;
}
.tobpopup-showpwd.show::before {
  background-image: url('./eye-open.png');
}
.tobpopup-showpwd:active { opacity: 0.8 !important; }

@media (max-width:600px) {
  .tobpopup-modal {
    width: 94vw !important;
    min-width: 0 !important;
    max-width: 350px !important;
    border-radius: 13px !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
  }
  .tobpopup-form-group {
    margin-left: 15px !important;
    margin-right: 15px !important;
    margin-top: 10px !important;
  }
  .tobpopup-form-group input[type=text], 
  .tobpopup-form-group input[type=password], 
  .tobpopup-form-group input[type=email] {
    height: 42px !important;
    font-size: 16px !important;
    padding: 0 48px 0 10px !important;
    border-radius: 7px !important;
  }
  .tobpopup-showpwd { width: 48px !important; height: 42px !important; }
}
@media (max-width:400px) {
  .tobpopup-modal {
    width: 98vw !important;
    border-radius: 7px !important;
    max-width: 98vw !important;
    margin: 0 !important;
  }
  .tobpopup-form-group {
    margin-left: 4px !important;
    margin-right: 4px !important;
    margin-top: 5px !important;
  }
  .tobpopup-header {
    margin-top: 5px !important;
  }
}