@charset "utf-8";
/* ═══════════════════════════════════════════════════════════════
   登录页 - 超宽幅轻奢设计
   ═══════════════════════════════════════════════════════════════ */

.login-page {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(150deg, #f0f5ff 0%, #e8eefb 50%, #f5f8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 20px 80px;
  position: relative;
  overflow: hidden;
}

/* ── 装饰 ── */
.login-bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.login-bg .lb-o {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .2;
}
.lb-o1 { width: 600px; height: 600px; background: radial-gradient(circle,rgba(32,106,228,.25),transparent 70%); top: -20%; right: -8%; }
.lb-o2 { width: 450px; height: 450px; background: radial-gradient(circle,rgba(99,102,241,.15),transparent 70%); bottom: -15%; left: -5%; }
.lb-o3 { width: 280px; height: 280px; background: radial-gradient(circle,rgba(212,168,83,.1),transparent 70%); top: 50%; left: 55%; }
.login-bg .lb-g {
  position: absolute;
  border: 1px solid rgba(32,106,228,.05);
  border-radius: 0;
}
.lb-g1 { width: 200px; height: 200px; transform: rotate(45deg); top: 10%; right: 15%; }
.lb-g2 { width: 140px; height: 140px; border-color: rgba(99,102,241,.04); bottom: 15%; right: 25%; }
.lb-g3 { width: 90px; height: 90px; border-radius: 50%; border-color: rgba(212,168,83,.06); top: 35%; left: 10%; }

/* ── 主卡片 ── */
.login-card {
  position: relative;
  z-index: 2;
  width: 580px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.02), 0 12px 48px rgba(32,106,228,.08), 0 32px 80px rgba(32,106,228,.04);
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #206ae4, #4d8fff, #6366F1);
  z-index: 3;
}

/* ── 内容 ── */
.login-body { padding: 52px 56px 44px; }

/* 头部 */
.login-body .lb-head { text-align: center; margin-bottom: 36px; }
.login-body .lb-head .lb-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #206ae4, #6366F1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(32,106,228,.2);
}
.login-body .lb-head h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1f36;
  margin: 0 0 6px;
  letter-spacing: -.5px;
}
.login-body .lb-head p {
  font-size: 15px;
  color: #8fa1b5;
  margin: 0;
}

/* ── 双栏表单 ── */
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lf-field { margin-bottom: 6px; }
.lf-field.full { grid-column: 1 / -1; }
.lf-field .lf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 7px;
}
.lf-field .lf-input-wrap { position: relative; }
.lf-field .lf-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #b8c5d6;
  font-size: 15px;
  z-index: 1;
  pointer-events: none;
}
.lf-field .lf-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1.5px solid #e8edf2;
  border-radius: 14px;
  font-size: 14px;
  color: #1a1f36;
  outline: none;
  transition: all .25s;
  box-sizing: border-box;
  background: #f8fafc;
}
.lf-field .lf-input:hover { border-color: #d0d8e4; background: #fafcff; }
.lf-field .lf-input:focus { border-color: #206ae4; background: #fff; box-shadow: 0 0 0 4px rgba(32,106,228,.06); }
.lf-field .lf-input::placeholder { color: #b8c5d6; }
.lf-field .lf-input:focus + .lf-icon,
.lf-field .lf-input:focus ~ .lf-icon { color: #206ae4; }

.lf-field .lf-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #b8c5d6;
  font-size: 17px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.lf-field .lf-toggle:hover { color: #206ae4; }

/* ── 额外行 ── */
.lf-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 28px;
}
.lf-extra label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #5c677d;
  cursor: pointer;
}
.lf-extra label input { accent-color: #206ae4; width: 16px; height: 16px; }
.lf-extra a { font-size: 14px; color: #206ae4; text-decoration: none; font-weight: 500; }
.lf-extra a:hover { text-decoration: underline; }

/* ── 提交 ── */
.lf-submit {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #206ae4, #4d8fff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 3px;
  transition: all .3s;
  box-shadow: 0 6px 24px rgba(32,106,228,.25);
}
.lf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(32,106,228,.35);
  letter-spacing: 5px;
}
.lf-submit:active { transform: translateY(0); }
.lf-submit i { margin-right: 6px; }

/* ── 分割线 ── */
.lf-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 22px;
  color: #b8c5d6;
  font-size: 13px;
  font-weight: 500;
}
.lf-divider::before, .lf-divider::after {
  content: ''; flex: 1; height: 1px;
}
.lf-divider::before { background: linear-gradient(90deg, transparent, #e8edf2); }
.lf-divider::after  { background: linear-gradient(90deg, #e8edf2, transparent); }

/* ── 社交 ── */
.lf-social { display: flex; justify-content: center; gap: 16px; }
.lf-social a {
  width: 54px; height: 54px;
  border: 1.5px solid #e8edf2;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa1b5;
  font-size: 24px;
  text-decoration: none;
  transition: all .3s;
  background: #fafbfc;
}
.lf-social .ls-wx:hover { border-color: #07C160; color: #07C160; background: #f0fff4; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(7,193,96,.18); }
.lf-social .ls-wb:hover { border-color: #E6162D; color: #E6162D; background: #fff0f1; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(230,22,45,.14); }
.lf-social .ls-qq:hover { border-color: #12B7F5; color: #12B7F5; background: #f0faff; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(18,183,245,.14); }

/* ── 底部 ── */
.lf-foot { text-align: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid #f0f2f5; }
.lf-foot p { font-size: 14px; color: #5c677d; margin: 0; }
.lf-foot a { color: #206ae4; font-weight: 600; text-decoration: none; }
.lf-foot a:hover { text-decoration: underline; }

/* ── 错误 ── */
.lf-error {
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  font-size: 14px;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lf-error i { flex-shrink: 0; font-size: 16px; }

/* ── 邀请人提示 ── */
.lf-invite {
  margin-bottom: 22px;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(52,211,153,.06));
  border: 1px solid rgba(16,185,129,.32);
  border-radius: 14px;
  font-size: 14px;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lf-invite i { flex-shrink: 0; font-size: 16px; color: #10B981; }
.lf-invite b { color: #059669; font-weight: 700; }

/* ── 微信弹窗 ── */
.lf-wx-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s ease;
}
.lf-wx-modal.show {
  display: flex;
  opacity: 1;
}
.lf-wx-modal.show .lf-wx-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.lf-wx-box {
  background: #fff; border-radius: 24px;
  padding: 44px 40px 36px; text-align: center;
  width: 360px; max-width: 88vw;
  box-shadow: 0 32px 80px rgba(0,0,0,.18);
  transform: scale(.92) translateY(24px);
  opacity: 0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}
.lf-wx-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #07C160, #34D399, #07C160);
  background-size: 200% 100%;
  animation: wxShimmer 3s ease infinite;
}
@keyframes wxShimmer {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}
.lf-wx-box .wx-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  background: linear-gradient(135deg,#07C160,#059D4E);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px;
  box-shadow: 0 8px 28px rgba(7,193,96,.28);
  position: relative;
}
.lf-wx-box .wx-icon::after {
  content: ''; position: absolute;
  inset: -3px; border-radius: 21px;
  border: 2px solid rgba(7,193,96,.15);
}
.lf-wx-box h3 {
  font-size: 20px; font-weight: 700; color: #1a1f36;
  margin: 0 0 4px; letter-spacing: -.3px;
}
.lf-wx-box .wx-sub {
  font-size: 14px; color: #8fa1b5;
  margin: 0 0 24px; line-height: 1.5;
}
.lf-wx-box .wx-qr {
  width: 200px; height: 200px; margin: 0 auto 18px;
  background: #f8fafc; border: 2px solid #e8edf2;
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: all .3s;
}
.lf-wx-box .wx-qr.loaded {
  border-color: #07C160;
  box-shadow: 0 0 0 4px rgba(7,193,96,.08);
}
.lf-wx-box .wx-qr img {
  display: block; width: 180px; height: 180px;
  border-radius: 8px;
}
.lf-wx-box .wx-qr .qr-placeholder {
  color: #d0d8e4; font-size: 48px; text-align: center;
}
.lf-wx-box .wx-qr .qr-placeholder span {
  display: block; font-size: 12px; margin-top: 8px; color: #8fa1b5;
}
.lf-wx-box .wx-status {
  font-size: 13px; margin: 0 0 20px; min-height: 20px;
  transition: color .3s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.lf-wx-box .wx-status i { font-size: 14px; }
.lf-wx-box .wx-status.success { color: #10B981; }
.lf-wx-box .wx-status.loading { color: #6B7280; }
.lf-wx-box .wx-status.error { color: #EF4444; }
.lf-wx-box .wx-tip-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-bottom: 22px;
  font-size: 12px; color: #8fa1b5;
}
.lf-wx-box .wx-tip-bar span { display: flex; align-items: center; gap: 4px; }
.lf-wx-box .wx-tip-bar i { color: #07C160; font-size: 13px; }
.lf-wx-box .wx-actions {
  display: flex; gap: 10px;
}
.lf-wx-box .wx-close {
  flex: 1; height: 46px;
  border: 1.5px solid #e8edf2; border-radius: 14px;
  background: #fff; color: #5c677d;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .25s;
}
.lf-wx-box .wx-close:hover { background: #f1f5f9; border-color: #d0d8e4; }
.lf-wx-box .wx-refresh {
  flex: 1; height: 46px;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg,#07C160,#059D4E);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .25s; box-shadow: 0 4px 16px rgba(7,193,96,.18);
}
.lf-wx-box .wx-refresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7,193,96,.25);
}
.lf-wx-box .wx-refresh:active { transform: translateY(0); }
.lf-wx-box .wx-refresh i { margin-right: 4px; }
.lf-wx-box .wx-refresh.loading { pointer-events: none; opacity: .7; }

/* ── 手机端弹窗适配 ── */
@media (max-width: 680px) {
  .lf-wx-box { padding: 36px 24px 28px; border-radius: 20px; }
  .lf-wx-box .wx-icon { width: 56px; height: 56px; font-size: 28px; }
  .lf-wx-box h3 { font-size: 18px; }
  .lf-wx-box .wx-qr { width: 170px; height: 170px; }
  .lf-wx-box .wx-qr img { width: 150px; height: 150px; }
  .lf-wx-box .wx-tip-bar { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 680px) {
  .login-card { width: 92vw; }
  .login-body { padding: 36px 24px 32px; }
  .login-grid { grid-template-columns: 1fr; }
}
