/* ============================================
 * 电玩寄售 — 登录页 / 退出按钮 样式
 * ============================================ */

/* 登录页全屏覆盖（定位在手机屏内） */
.login-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff5f5 0%, #f7f8fa 40%);
  padding: 32px 28px;
  text-align: center;
  gap: 16px;
  animation: loginFadeIn .25s ease;
}
.login-overlay[hidden] { display: none; }

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff5a5a, #ff2c2c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(255, 44, 44, 0.35);
}
.login-title {
  font-size: 21px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
}
.login-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
  max-width: 240px;
}

/* 支付宝登录按钮（支付宝品牌蓝 #1677ff） */
.alipay-login-btn {
  width: 100%;
  max-width: 280px;
  height: 46px;
  border: none;
  border-radius: 23px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.alipay-login-btn:hover { box-shadow: 0 10px 24px rgba(22, 119, 255, 0.45); }
.alipay-login-btn:active { transform: scale(0.97); }

.alipay-login-btn .ap-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #1677ff;
  font-size: 13px;
  font-weight: 700;
}

.login-agree {
  font-size: 11px;
  color: #bbb;
  line-height: 1.6;
}
.login-agree a {
  color: #1677ff;
  text-decoration: none;
}

/* 登录中遮罩 */
.login-loading {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #999;
  font-size: 13px;
}
.login-loading[hidden] { display: none; }
.login-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #ff2c2c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 退出登录按钮（我的页） */
.logout-btn {
  display: block;
  margin: 14px auto 4px;
  background: none;
  border: 1px solid #ff2c2c;
  color: #ff2c2c;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.logout-btn:active { background: #fff0f0; }

/* 未登录态：我的卡片可点击登录 */
.user-card.logged-out {
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #ffc7c7, 0 4px 14px rgba(255, 44, 44, 0.06);
}
.user-card.logged-out .user-meta { color: #ff2c2c; font-weight: 600; }
.user-card.logged-out:active { transform: scale(0.99); }
