/* from AuthShell.vue */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(165deg, #f2f0ff 0%, #e9e5ff 45%, #f7f5ff 100%);
}
.auth-body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 20px 56px;
  position: relative;
  overflow: hidden;
}
.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
}
.auth-glow.a {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #b7a9ff, transparent 65%);
  top: -140px;
  left: -100px;
  animation: auth-drift 12s ease-in-out infinite alternate;
}
.auth-glow.b {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #d3c6ff, transparent 65%);
  bottom: -180px;
  right: -120px;
  animation: auth-drift 14s ease-in-out infinite alternate-reverse;
}
@keyframes auth-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, 36px) scale(1.1); }
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(97, 92, 245, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(97, 92, 245, 0.16);
  padding: 40px 36px 36px;
  animation: auth-rise 0.6s ease both;
}
.auth-card.wide {
  max-width: 580px;
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 22px;
}
.auth-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(97, 92, 245, 0.35);
}
.auth-logo-mark svg {
  width: 17px;
  height: 17px;
}
.auth-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.auth-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-faint);
}
.auth-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.auth-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.auth-input::placeholder {
  color: var(--ink-faint);
}
.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(97, 92, 245, 0.14);
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.auth-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}
.auth-link {
  color: var(--primary);
  font-weight: 600;
}
.auth-link:hover {
  text-decoration: underline;
}
.auth-code {
  display: flex;
  gap: 10px;
}
.auth-code .auth-input {
  flex: 1;
}
.auth-code-btn {
  flex: none;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(97, 92, 245, 0.35);
  background: rgba(97, 92, 245, 0.06);
  color: var(--primary-deep);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.auth-code-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(97, 92, 245, 0.12);
}
.auth-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-submit {
  margin-top: 6px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #8b7bf7);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(97, 92, 245, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(97, 92, 245, 0.45);
}
.auth-error {
  font-size: 13px;
  color: #d92d20;
  background: rgba(217, 45, 32, 0.07);
  border: 1px solid rgba(217, 45, 32, 0.2);
  border-radius: 10px;
  padding: 9px 12px;
}
.auth-success {
  font-size: 13px;
  color: #12805c;
  background: rgba(18, 128, 92, 0.07);
  border: 1px solid rgba(18, 128, 92, 0.22);
  border-radius: 10px;
  padding: 9px 12px;
}
.auth-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.auth-hint b {
  color: var(--primary-deep);
  letter-spacing: 1px;
}
.auth-input:disabled {
  background: rgba(15, 19, 32, 0.04);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.auth-done {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-submit-link {
  display: block;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
}
.auth-footlinks {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 6px;
}

/* ---------- 欢迎页 ---------- */
.welcome-user {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}
.welcome-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(97, 92, 245, 0.3);
}
.welcome-info {
  min-width: 0;
}
.welcome-account {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.welcome-id {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-faint);
}
.welcome-tip {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.auth-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}
.auth-btn-primary {
  flex: 1;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #8b7bf7);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(97, 92, 245, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(97, 92, 245, 0.45);
}
.auth-btn-ghost {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.auth-btn-ghost:hover {
  color: #d92d20;
  border-color: rgba(217, 45, 32, 0.4);
}
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 22px 28px;
  }
}

/* from PasswordInput.vue */
/* 全部规则满足时输入框变绿 */
.auth-input.pwd-valid {
  border-color: #18a058 !important;
  box-shadow: 0 0 0 3px rgba(24, 160, 88, 0.14) !important;
}
.pwd-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.pwd-rules li {
  font-size: 12px;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.pwd-rules li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfcfe4;
  transition: background 0.2s;
}
.pwd-rules li.ok {
  color: #12805c;
  font-weight: 600;
}
.pwd-rules li.ok::before {
  background: #18a058;
}

/* from LoginView.vue */
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.oauth-qq-btn {
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.oauth-qq-btn:hover:not(:disabled) {
  border-color: #12b7f5;
  box-shadow: 0 6px 16px rgba(18, 183, 245, 0.18);
}
.oauth-qq-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.oauth-qq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #12b7f5;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: grid;
  place-items: center;
}

/* 微信小程序扫码登录 */
.oauth-wx-btn {
  height: 46px;
  margin-top: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.oauth-wx-btn:hover:not(:disabled) {
  border-color: #07c160;
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.18);
}
.oauth-wx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.oauth-wx-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.wx-login-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.wx-login-canvas {
  position: relative;
  width: 178px;
  height: 178px;
  margin: 0 auto;
}
.wx-login-qr {
  display: block;
  width: 178px;
  height: 178px;
  border-radius: 12px;
  background: #f4f5f7;
}
.wx-login-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.wx-login-refresh {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}
.wx-login-refresh:hover {
  border-color: #07c160;
  color: #07c160;
}
.wx-login-tip {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.wx-login-tip.success {
  color: #07c160;
}

/* from ProfileView.vue */
/* ---- Tab 标签栏 ---- */
.profile-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(239, 237, 255, 0.7), rgba(230, 225, 255, 0.5));
  border-radius: 16px;
  border: 1px solid rgba(97, 92, 245, 0.12);
}
.profile-tab {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.profile-tab:hover {
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.5);
}
.profile-tab.active {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 4px 14px rgba(97, 92, 245, 0.18), 0 1px 3px rgba(97, 92, 245, 0.08);
  border: 1px solid rgba(97, 92, 245, 0.15);
}
.profile-tab-icon {
  font-size: 15px;
  line-height: 1;
}

/* ---- Tab 面板 ---- */
.profile-tab-panel {
  display: none;
}
.profile-tab-panel.is-active {
  display: block;
  animation: tab-fade 0.28s ease;
}
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 顶部一次性提示与 Tab 栏的间距 */
.profile-flash {
  margin-bottom: 18px;
}

/* ---- 模块内样式 ---- */
.profile-tab-panel .auth-field {
  margin-top: 14px;
}
.profile-tab-panel .auth-hint {
  margin-top: 10px;
  line-height: 1.7;
}
.profile-tab-panel .auth-error,
.profile-tab-panel .auth-success {
  margin-top: 14px;
}
.profile-submit {
  width: 100%;
  margin-top: 18px;
  letter-spacing: 1px;
}
.profile-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .profile-tab {
    padding: 10px 8px;
    font-size: 13px;
    gap: 5px;
  }
  .profile-tab-icon {
    font-size: 14px;
  }
  .profile-tab-label {
    font-size: 12.5px;
  }
}

/* ---- 向导：返回按钮 + 主按钮并排 ---- */
.profile-wizard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.profile-wizard-actions .auth-submit {
  margin-top: 0;
  flex: 1;
}
.auth-link-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
  white-space: nowrap;
}
.auth-link-btn:hover {
  color: var(--primary);
}

