/* 门户登录页样式:全部用 px 字号(portal.css 是 rem 体系且 html 字号极小,混用会字体偏大) */

.auth-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 12px;
  box-sizing: border-box;
}

.auth-card {
  width: 380px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 28px 32px 22px;
  box-sizing: border-box;
}

.auth-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
  color: #383b3b;
  text-align: center;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #ececec;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  min-width: 0; /* 覆盖 portal.css 全局 button{min-width:150px},否则第三个 Tab 会被挤出屏幕 */
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-tab:hover {
  color: #f89938;
}

.auth-tab.active {
  color: #f89938;
  border-bottom-color: #f89938;
  font-weight: 600;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-panel input[type="text"],
.auth-panel input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-bottom: 10px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-size: 15px;
  color: #383b3b;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-panel input:focus {
  border-color: #f89938;
}

.auth-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-code-row input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
}

/* ---------- 图形验证码弹窗 ---------- */

.captcha-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.captcha-modal {
  width: 100%;
  max-width: 460px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.captcha-modal-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #383b3b;
}

.captcha-img-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

#captcha-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  background: #f6f6f0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.captcha-click-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #e74c3c;
  border-radius: 50%;
  pointer-events: none;
}

.captcha-modal-actions {
  display: flex;
  gap: 10px;
}

.captcha-btn {
  flex: 1;
  min-width: 0; /* 覆盖 portal.css 全局 button{min-width:150px} */
  height: 42px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}

.captcha-btn.confirm {
  border-color: #f89938;
  background: #ffd23b;
  color: #000;
  font-weight: 600;
}

.auth-send-code {
  flex: 0 0 auto;
  min-width: 0; /* 覆盖 portal.css 全局 button{min-width:150px} */
  height: 44px;
  padding: 0 14px;
  border: 1px solid #f89938;
  border-radius: 6px;
  background: #fff;
  color: #f89938;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.auth-send-code:disabled {
  border-color: #d8d8d8;
  color: #999;
  cursor: not-allowed;
}

.auth-submit {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 6px;
  background: #ffd23b;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth-submit:hover {
  background: #eab502;
}

.auth-wechat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.auth-wechat-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.auth-wechat-btn:hover {
  background: #06ad56;
  color: #fff;
  text-decoration: none;
}

.auth-tip {
  margin: 2px 0 8px;
  font-size: 13px;
  color: #999;
  text-align: center;
}

.auth-error {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #d60026;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 22px 20px 16px;
  }
}
