/* 登录/注册页公共样式 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}

.auth-bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}

.auth-orb1 {
  width: 500px; height: 500px;
  background: rgba(108,61,232,0.25);
  top: -100px; left: -100px;
}

.auth-orb2 {
  width: 400px; height: 400px;
  background: rgba(245,197,24,0.1);
  bottom: -100px; right: -100px;
}

.auth-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  text-align: center;
}

.auth-logo {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; margin-bottom: 28px;
  color: #fff;
}

.auth-logo-text { font-size: 24px; font-weight: 800; text-align: left; }
.auth-logo-sub { font-size: 11px; color: var(--accent); letter-spacing: 3px; text-align: left; }

.auth-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: left;
}

/* 切换登录/注册 */
.auth-switch {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 10px; padding: 4px;
  margin-bottom: 24px;
}

.auth-switch-btn {
  flex: 1; padding: 9px;
  text-align: center; font-size: 14px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border-radius: 8px; transition: var(--transition);
}

.auth-switch-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(108,61,232,0.4);
}

/* 登录方式选项卡 */
.login-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.login-tab {
  flex: 1; padding: 10px;
  background: none; border: none;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  position: relative;
}

.login-tab.active { color: var(--primary-light); font-weight: 600; }
.login-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%); width: 50%; height: 2px;
  background: var(--primary-light); border-radius: 2px;
}

/* 忘记密码链接 */
.form-label { display: flex; align-items: center; justify-content: space-between; }
.forgot-pwd-link { font-size: 12px; color: var(--primary-light); font-weight: 400; }
.forgot-pwd-link:hover { text-decoration: underline; }

/* 密码输入框 */
.pwd-input-wrap { position: relative; }
.toggle-pwd {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 16px; padding: 4px;
}

/* 分隔线 */
.auth-divider {
  text-align: center; margin: 20px 0;
  position: relative;
}

.auth-divider::before {
  content: ''; position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--bg-card2);
  padding: 0 12px;
  font-size: 12px; color: var(--text-muted);
}

/* 第三方登录 */
.third-party-login { display: flex; gap: 10px; }

.tp-btn {
  flex: 1; padding: 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.tp-btn:hover { border-color: var(--primary-light); color: #fff; background: rgba(108,61,232,0.1); }

/* 微信二维码 */
.wechat-qr-wrap { text-align: center; padding: 10px 0; }

.wechat-qr-box {
  width: 180px; height: 180px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.qr-grid {
  width: 150px; height: 150px;
  background-image: radial-gradient(circle, #222 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.85;
}

.qr-icon {
  position: absolute;
  width: 36px; height: 36px;
  background: #07c160;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 2px solid #fff;
}

.wechat-qr-hint { font-size: 13px; color: var(--text-secondary); }

/* 注册额外字段 */
.reg-type-tabs {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 10px; padding: 4px;
  margin-bottom: 20px;
}

.reg-type-tab {
  flex: 1; padding: 8px;
  text-align: center; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  border-radius: 8px; transition: var(--transition);
  border: none; background: none;
}

.reg-type-tab.active {
  background: var(--primary);
  color: #fff;
}

.code-input-wrap { display: flex; gap: 10px; }
.code-input-wrap .form-control { flex: 1; }
.send-code-btn {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 100px;
}

/* 底部提示 */
.auth-footer-hint {
  margin-top: 20px; font-size: 13px;
  color: var(--text-muted); text-align: center;
}

.auth-footer-hint a { color: var(--primary-light); }

/* 忘记密码步骤 */
.forgot-steps { }
