/* ============================================================
   login.css - 登录页特有样式
   ============================================================ */

.login-box { max-width: 420px; margin: 60px auto; }
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.login-header p { color: var(--text-dim); }
.btn-block { width: 100%; }

.error-msg  {
  color: #ff4757;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
  padding: 10px 14px;
  background: rgba(255,71,87,0.1);
  border-radius: 6px;
  border-left: 3px solid #ff4757;
}
.success-msg {
  color: #2ed573;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
  padding: 10px 14px;
  background: rgba(46,213,115,0.1);
  border-radius: 6px;
  border-left: 3px solid #2ed573;
}

/* 分割线 */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* OAuth 登录按钮区 */
.oauth-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-oauth:hover  { opacity: 0.88; }
.btn-oauth:active { transform: scale(0.98); }

/* 微信绿 */
.btn-wechat {
  background: #07c160;
  color: #fff;
}
/* QQ 蓝 */
.btn-qq {
  background: #12b7f5;
  color: #fff;
}

/* SVG 图标 */
.oauth-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* 加载状态 */
.btn-oauth.loading {
  opacity: 0.6;
  pointer-events: none;
}
.btn-oauth.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 社交登录图标按钮 */
.social-login {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
}

.social-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.social-btn:active {
  transform: scale(0.95);
}

.social-btn svg {
  width: 28px;
  height: 28px;
}

/* QQ 蓝 */
.social-btn#btnQQ {
  background: #12b7f5;
  color: #fff;
}

/* 微信绿 */
.social-btn#btnWechat {
  background: #07c160;
  color: #fff;
}

/* 加载状态 */
.social-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}
