/* WeChat login ported from qianqianai.com.cn; QR content is rendered locally. */
.auth-login-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.auth-login-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 8px 10px 9px;
  opacity: .66;
}

.auth-login-tab:hover,
.auth-login-tab.is-active {
  border-bottom-color: #07c160;
  opacity: 1;
}

.auth-login-panel[hidden] {
  display: none !important;
}

.auth-wechat-box {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0 12px;
  text-align: center;
}

.auth-wechat-qr {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  display: flex;
  height: 238px;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  width: 238px;
}

.auth-wechat-qr img {
  display: block;
  height: 220px;
  image-rendering: pixelated;
  width: 220px;
}

.auth-wechat-qr a {
  color: #087f46;
  font-size: 13px;
  line-height: 1.5;
  padding: 18px;
}

.auth-wechat-status {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  min-height: 20px;
}

.auth-wechat-status.is-error { color: #dc2626; }
.auth-wechat-status.is-success { color: #087f46; }
.auth-wechat-status.is-pending,
.auth-wechat-status.is-loading { color: #b45309; }

.auth-wechat-actions {
  display: flex;
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  .auth-wechat-qr { border-color: #334155; }
}
