/* =========================================================
   登录页样式（login.css）
   设计：左侧品牌渐变主视觉 + 右侧玻璃拟态表单卡片
   ========================================================= */

:root {
  --lg-orange: #ff6b35;
  --lg-pink: #ff006e;
  --lg-purple: #8338ec;
  --lg-blue: #00b4d8;
  --lg-text: #1a1a2e;
  --lg-text-2: #4a4a5e;
  --lg-muted: #8a8a9e;
  --lg-line: rgba(26, 26, 46, .1);
  --lg-grad-main: linear-gradient(135deg, #ff6b35 0%, #ff006e 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.lg-body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--lg-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 107, 53, .14), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(0, 180, 216, .13), transparent 42%),
    radial-gradient(circle at 60% 92%, rgba(255, 184, 0, .14), transparent 48%),
    linear-gradient(180deg, #fffbf5 0%, #fff6ee 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.lg-wrap {
  width: 100%; max-width: 980px;
  display: flex; border-radius: 26px; overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 90px -34px rgba(255, 107, 53, .38), 0 10px 40px -20px rgba(26, 26, 46, .2);
  border: 1px solid rgba(255, 255, 255, .8);
  min-height: 560px;
}

/* ---------- 左侧品牌区 ---------- */
.lg-hero {
  flex: 1.05; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #ff6b35 0%, #ff006e 55%, #8338ec 100%);
  padding: 46px 42px; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.lg-hero::before,
.lg-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  animation: lgFloat 9s ease-in-out infinite;
}
.lg-hero::before { width: 240px; height: 240px; right: -70px; top: -60px; }
.lg-hero::after { width: 170px; height: 170px; left: -50px; bottom: -50px; animation-delay: -4s; }
@keyframes lgFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.06); }
}

.lg-hero-inner { position: relative; z-index: 2; }
.lg-hero-logo {
  width: 58px; height: 58px; border-radius: 18px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 900; margin-bottom: 22px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .3);
}
.lg-hero h1 {
  font-size: 30px; font-weight: 900; letter-spacing: 1px; line-height: 1.25;
}
.lg-hero .lg-hero-sub {
  font-size: 12px; letter-spacing: 5px; opacity: .85; margin-top: 8px; font-weight: 600;
}
.lg-hero .lg-hero-desc {
  margin-top: 20px; font-size: 14px; line-height: 1.8; opacity: .92;
}
.lg-features { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.lg-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 10px 14px; border-radius: 13px;
  backdrop-filter: blur(4px);
}
.lg-feature .lg-fi {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ---------- 右侧表单区 ---------- */
.lg-form-side {
  flex: 1; padding: 46px 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.lg-form-head { margin-bottom: 26px; }
.lg-form-head h2 { font-size: 25px; font-weight: 900; letter-spacing: .5px; }
.lg-form-head p { color: var(--lg-muted); font-size: 13px; margin-top: 7px; }

.lg-field { margin-bottom: 16px; }
.lg-field > label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--lg-text-2); margin-bottom: 7px;
}
.lg-input-box { position: relative; }
.lg-input-box .lg-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: #b6bacb; pointer-events: none; transition: color .2s;
}
.lg-input {
  width: 100%; height: 46px; border-radius: 13px;
  border: 1.5px solid var(--lg-line); background: #fffaf5;
  padding: 0 44px 0 40px; font-size: 14px; color: var(--lg-text);
  outline: none; font-family: inherit; transition: all .25s;
}
.lg-input::placeholder { color: #b6bacb; }
.lg-input:focus {
  border-color: var(--lg-orange); background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .12);
}
.lg-input:focus + .lg-ico, .lg-input-box:focus-within .lg-ico { color: var(--lg-orange); }
.lg-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; color: #b6bacb; padding: 4px 6px; line-height: 1;
}
.lg-eye:hover { color: var(--lg-orange); }

.lg-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 18px; font-size: 12.5px; color: var(--lg-muted);
}
.lg-remember { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.lg-remember input { width: 15px; height: 15px; accent-color: var(--lg-orange); cursor: pointer; }
.lg-row a { color: var(--lg-orange); font-weight: 700; }
.lg-row a:hover { text-decoration: underline; }

.lg-btn {
  width: 100%; height: 48px; border: none; border-radius: 14px; cursor: pointer;
  color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 3px; font-family: inherit;
  background: var(--lg-grad-main);
  box-shadow: 0 16px 34px -14px rgba(255, 107, 53, .85);
  transition: transform .25s, box-shadow .25s, opacity .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lg-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(255, 107, 53, .95); }
.lg-btn:active { transform: translateY(0); }
.lg-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.lg-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: lgSpin .7s linear infinite; display: none;
}
.lg-btn.loading .lg-spinner { display: block; }
@keyframes lgSpin { to { transform: rotate(360deg); } }

.lg-alert {
  display: none; align-items: center; gap: 8px;
  background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322;
  border-radius: 12px; padding: 10px 13px; font-size: 13px; margin-bottom: 16px;
}
.lg-alert.show { display: flex; animation: lgShake .35s; }
@keyframes lgShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.lg-alert.ok { background: #f0fdf6; border-color: #b7ebcd; color: #0a8a52; }

.lg-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--lg-line);
  font-size: 12.5px; color: var(--lg-muted); text-align: center; line-height: 1.9;
}
.lg-foot a { color: var(--lg-orange); font-weight: 700; }
.lg-foot a:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .lg-hero { display: none; }
  .lg-wrap { max-width: 460px; min-height: 0; border-radius: 22px; }
  .lg-form-side { padding: 34px 26px 30px; }
  .lg-form-head h2 { font-size: 22px; }
}
@media (max-width: 420px) {
  body.lg-body { padding: 14px; }
  .lg-form-side { padding: 26px 20px 24px; }
  .lg-btn { letter-spacing: 2px; font-size: 15px; }
}

/* ---------- 微信扫码登录入口 ---------- */
.lg-wx { margin-top: 20px; }
.lg-divider { position: relative; text-align: center; margin-bottom: 14px; }
.lg-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e5e7eb; }
.lg-divider span { position: relative; padding: 0 10px; background: rgba(255,255,255,.92); font-size: 12px; color: #9ca3af; }
.lg-wx-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 0; border-radius: 8px; border: 1px solid #07c160;
  color: #07c160; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.lg-wx-btn:hover { background: #07c160; color: #fff; }
.lg-wx-ico { font-size: 16px; }
.lg-wx-tip { margin: 8px 0 0; text-align: center; font-size: 12px; color: #9ca3af; }
