/* ---------- 通用表单样式（登录浮层 / 注册页共用） ---------- */
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-title {
  font-size: 18px; font-weight: 700; color: #333;
  text-align: center; margin: 0 0 8px;
}
.auth-field { display: flex; flex-direction: column; }
.auth-label { font-size: 14px; color: #555; margin-bottom: 4px; }
.auth-label .required { color: red; }
.auth-label .hint { font-size: 12px; color: #999; font-weight: normal; }
.auth-label .hint-red { font-size: 12px; color: red; font-weight: normal; }

.auth-input {
  height: 44px; border: 1px solid #ddd; border-radius: 6px;
  padding: 0 12px; font-size: 15px; background: #f9f9f9;
  outline: none; width: 100%; box-sizing: border-box;
}
.auth-input:focus { border-color: #1f99b0; background: #fff; }

.auth-pwd-wrap { position: relative; }
.auth-pwd-wrap .auth-input { padding-right: 40px; }
.pwd-toggle {
  position: absolute; right: 12px; top: 12px;
  cursor: pointer; user-select: none; font-size: 16px; color: #666;
}

.auth-checkbox {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #999; margin-top: 4px;
}
.auth-checkbox a { color: #629BF0; font-weight: 700; text-decoration: none; }
.auth-checkbox input[type="checkbox"] { width: 16px; height: 16px; }

.auth-submit {
  height: 44px; border: none; border-radius: 6px;
  background: #ccc; color: #fff; font-size: 16px;
  font-weight: 700; cursor: not-allowed; transition: background .2s;
}
.auth-submit.enabled { background: #1f99b0; cursor: pointer; }

.captcha-refresh { font-size: 12px; color: #1f99b0; margin-top: 4px; }

/* ---------- 弹层 ---------- */
.auth-trigger-wrap { position: relative; }
.auth-popover {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  padding: 20px; z-index: 1000;
}
.auth-popover::before {
  content: ""; position: absolute; top: -8px; right: 24px;
  width: 16px; height: 16px; background: #fff;
  transform: rotate(45deg);
  box-shadow: -3px -3px 6px rgba(0,0,0,.03);
}

.auth-footer {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 8px;
}
.auth-link { font-size: 13px; color: #1f99b0; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* ---------- 注册独立页 ---------- */
.auth-page {
  min-height: calc(100vh - 220px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
}
.auth-form-page {
  width: 100%; max-width: 420px;
  background: #fff; padding: 28px 24px; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ---------- 城市多选 ---------- */
.city-grid {
  max-height: 180px; overflow-y: auto;
  border: 1px solid #eee; border-radius: 6px;
  padding: 8px; background: #fafafa;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.city-grid label {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: #333; cursor: pointer;
  padding: 4px 6px; border-radius: 4px;
}
.city-grid label:hover { background: #eef7f9; }
.city-grid input[type="checkbox"] { margin: 0; }

/* ---------- 登录后右上角下拉菜单 ---------- */
.user-dropdown-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 10px 0; /* 增加上下内边距，防止鼠标移动时闪烁 */
}
.user-greeting {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 8px 0;
  z-index: 1000;
  border: 1px solid #eee;
}
.user-dropdown-wrap:hover .user-dropdown {
  display: block;
}
.user-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.user-dropdown a:hover {
  background: #f5f9fa;
  color: #1f99b0;
}

/* ---------- 注册页 T字形城市弹窗 ---------- */
.auth-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center;
}
.auth-modal-overlay.show { display: flex; }
.auth-modal-content {
  background: #fff; width: 90%; max-width: 600px; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; max-height: 80vh;
}
.auth-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid #eee;
}
.auth-modal-title { font-size: 16px; font-weight: bold; color: #333; }
.auth-modal-close { font-size: 20px; color: #999; cursor: pointer; }
.auth-modal-search { padding: 10px 20px; border-bottom: 1px solid #eee; }
.auth-modal-search input { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 20px; outline: none; }
.auth-modal-body { display: flex; flex: 1; overflow: hidden; height: 350px; }
.auth-pane-left { width: 40%; background: #f9f9f9; overflow-y: auto; border-right: 1px solid #eee; }
.auth-pane-right { width: 60%; background: #fff; overflow-y: auto; }
.auth-pane-item { padding: 12px 20px; font-size: 14px; color: #333; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.auth-pane-item:hover { background: #f0f8fa; }
.auth-pane-item.active { color: #1f99b0; font-weight: bold; background: #fff; }
.auth-city-checkbox { margin-right: 8px; }
.auth-modal-footer { padding: 12px 20px; border-top: 1px solid #eee; text-align: right; }
.auth-btn-primary { background: #1f99b0; color: #fff; border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer; }
.auth-btn-primary:disabled { background: #ccc; cursor: not-allowed; }