/* 登录 / 注册 / 会员卡 弹层与独立页统一样式（参考橙色系会员绑定） */
:root {
  --auth-vip-orange: #ff5c16;
  --auth-vip-orange-soft: #fff4ee;
  --auth-vip-line: #ffd4c2;
}

.auth-page-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.auth-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 28px 28px 24px;
}

.auth-brand-row {
  text-align: center;
  margin-bottom: 8px;
}

.auth-brand-row .auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--auth-vip-orange) 0%, #ff8a4a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.auth-tabs-btn {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  padding: 8px 14px 12px;
  position: relative;
  flex: 1;
}

.auth-tabs-btn.active {
  color: var(--brand);
}

.auth-tabs-btn.auth-tab-vip.active {
  color: var(--auth-vip-orange);
}

.auth-tabs-btn.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.auth-panel {
  display: none;
  animation: authFade 0.18s ease;
}

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

@keyframes authFade {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

.auth-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fafafa;
}

.auth-input-group:focus-within {
  border-color: var(--auth-vip-line);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 92, 22, 0.12);
}

.auth-input-group .agi {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-vip-orange);
  font-size: 18px;
  flex-shrink: 0;
}

.auth-input-group input {
  border: 0;
  flex: 1;
  padding: 11px 12px 11px 0;
  font-size: 14px;
  background: transparent;
  outline: none;
}

.auth-input-group input::placeholder {
  color: #b0b0b0;
}

.auth-panel-normal .auth-input-group:focus-within {
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.12);
}

.auth-panel-normal .auth-input-group .agi {
  color: var(--brand);
}

.auth-btn-vip {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(180deg, #ff6a2d 0%, var(--auth-vip-orange) 100%);
  margin-top: 4px;
}

.auth-btn-vip:disabled {
  opacity: 0.65;
}

.auth-vip-hint {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  line-height: 1.5;
}

.auth-agree {
  font-size: 12px;
  color: #666;
  margin: 10px 0 14px;
}

.auth-agree input {
  vertical-align: middle;
  margin-right: 4px;
}

/* 注册页：内联错误提示 */
.reg-field-wrap {
  margin-bottom: 12px;
}

.reg-inline-err {
  display: block;
  min-height: 0;
  font-size: 12px;
  margin-top: 4px;
  color: #dc3545;
}

.reg-inline-err:empty {
  display: none;
}

.reg-field-wrap.is-invalid input,
.reg-field-wrap.is-invalid .auth-input-group {
  border-color: #f5a5a5;
}

.auth-modal-login.auth-login-card {
  box-shadow: none;
}

.auth-login-card .form-label.small {
  margin-bottom: 4px;
}

/* 省份 / 分数引导模态框 */
.ps-modal-sheet {
  position: relative;
}

.ps-modal-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #ffb74d);
}

.ps-modal-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff0f0 0%, #fff 100%);
  border: 1px solid rgba(229, 57, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--brand);
}

.ps-modal-tip {
  background: #faf8f5;
  border: 1px solid #eee5d9;
  color: var(--text-2);
  padding: 10px 12px;
  line-height: 1.55;
}

.ps-modal-sheet .btn.btn-light:hover {
  background: #f5f5f5;
}

/* ========= 登录 / 注册弹窗（移动端：关闭钮可见、可点，不被内容遮挡） ========= */
#authLoginModal .modal-dialog,
#authRegisterModal .modal-dialog {
  max-width: min(420px, calc(100vw - 1rem));
  width: 100%;
}
#authLoginModal .modal-header.auth-modal-head,
#authRegisterModal .modal-header.auth-modal-head {
  background: #fff;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}
#authLoginModal .auth-modal-btn-close,
#authRegisterModal .auth-modal-btn-close {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0 !important;
  opacity: 1;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
#authLoginModal .auth-modal-btn-close:focus,
#authRegisterModal .auth-modal-btn-close:focus {
  box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.2), 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* 高于站内固定顶栏（1020）与悬浮客服钮，避免被盖住 */
#authLoginModal.modal,
#authRegisterModal.modal {
  z-index: 1080;
}