/* ============================================================
   登录页 — 星空紫神秘幻 · Deep Purple Astral
   独特配色：深紫黑 → 星云紫 → 薰衣草渐变
   悬浮光感卡片 + 大图标点缀
   ============================================================ */

.login-page {
  --l-bg: #0b0716;
  --l-surface: #130e22;
  --l-card-bg: #19122e;
  --l-primary: #7c4dff;
  --l-light: #b388ff;
  --l-pink: #ea80fc;
  --l-text: #b0a0c8;
  --l-title: #ede4ff;
  --l-border: rgba(124,77,255,.18);
  --l-input-bg: rgba(255,255,255,.03);
  background: var(--l-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
}

/* 星空背景 */
.login-page::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(2px 2px at 15% 25%, rgba(179,136,255,.7), transparent),
    radial-gradient(2px 2px at 30% 10%, rgba(234,128,252,.6), transparent),
    radial-gradient(1px 1px at 55% 30%, rgba(179,136,255,.5), transparent),
    radial-gradient(2px 2px at 70% 15%, rgba(124,77,255,.8), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(234,128,252,.4), transparent),
    radial-gradient(2px 2px at 40% 45%, rgba(179,136,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 20% 60%, rgba(124,77,255,.6), transparent),
    radial-gradient(1px 1px at 65% 65%, rgba(234,128,252,.4), transparent),
    radial-gradient(2px 2px at 85% 80%, rgba(179,136,255,.5), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(124,77,255,.3), transparent);
  pointer-events: none; z-index: 0;
}
.login-page #site-header,
.login-page main,
.login-page #site-footer { position: relative; z-index: 1; }

.login-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 40px;
}

/* 登录卡片 */
.l-card {
  background: var(--l-card-bg);
  border: 1px solid var(--l-border);
  border-radius: 24px;
  padding: 52px 44px 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(124,77,255,.08);
}
.l-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,77,255,.08), transparent 70%);
  pointer-events: none;
}

/* Logo — 与首页一致 */
.l-card__logo {
  margin: 0 auto 24px;
  text-align: center;
}
.l-card__logo .header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.l-card__title {
  font-size: 28px; font-weight: 800;
  color: var(--l-title); text-align: center;
  margin-bottom: 6px;
}
.l-card__subtitle {
  font-size: 14px; color: #8a7aa8;
  text-align: center; margin-bottom: 36px;
}

/* 表单 */
.l-form .form-group { margin-bottom: 20px; }
.l-form label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: #b0a0c8; margin-bottom: 7px;
}
.l-form .l-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--l-title);
  background: var(--l-input-bg);
  border: 1px solid var(--l-border);
  border-radius: 12px;
  outline: none;
  transition: all .3s;
}
.l-form .l-input:focus {
  border-color: rgba(124,77,255,.5);
  box-shadow: 0 0 0 4px rgba(124,77,255,.08);
}
.l-form .l-input::placeholder { color: #5a4a78; }

.l-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.l-form__checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #8a7aa8; cursor: pointer;
}
.l-form__checkbox input { accent-color: #7c4dff; }
.l-form__forgot {
  font-size: 13px; color: var(--l-light);
  text-decoration: none;
}
.l-form__forgot:hover { text-decoration: underline; }

.l-btn {
  width: 100%;
  padding: 15px 0;
  font-size: 16px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #b388ff);
  border: none; border-radius: 14px;
  cursor: pointer;
  transition: all .35s;
  box-shadow: 0 8px 28px rgba(124,77,255,.35);
}
.l-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124,77,255,.5);
}

.l-card__footer {
  text-align: center; margin-top: 28px;
  font-size: 14px; color: #8a7aa8;
}
.l-card__footer a {
  color: var(--l-light); font-weight: 600;
  text-decoration: none;
}
.l-card__footer a:hover { text-decoration: underline; }

.l-error {
  font-size: 12px; color: #ff8a80;
  margin-top: 4px; display: none;
}

/* 返回首页按钮 — 卡片内醒目版 */
.auth-home-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 14px; margin-top: 16px;
  font-size: 15px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #7c4dff, #5b21b6);
  border: 1px solid rgba(124,77,255,.35);
  border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,77,255,.25);
  transition: all .3s;
}
.auth-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,77,255,.45);
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
