/* ═══════════════════════════════════════════════════════
   LOGIN PAGE — HIGH-END VISUAL DESIGN v5
   Aesthetic: Ethereal Glass · Z-Axis Depth · Micro-Haptics
   ═══════════════════════════════════════════════════════ */

/* ══ 全局重置：用 body.lp-body 而不是 html.login-page，
      防止 index.css / layout-frame.js 的全局样式覆盖 ══ */
body.lp-body,
body.lp-body * { box-sizing: border-box; }

body.lp-body {
  margin: 0 !important;
  padding: 0 !important;
  background: #04070f !important;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #e8efff;
  /* 覆盖 ElementPlus 全局 body 背景 */
  background-color: #04070f !important;
}

/* ── CSS 变量 ── */
body.lp-body {
  --accent:        #3b7bff;
  --accent-2:      #8b5cf6;
  --surface:       rgba(8, 14, 28, .90);
  --border:        rgba(80, 120, 255, .18);
  --border-bright: rgba(100, 150, 255, .55);
  --text-primary:  #e8efff;
  --text-muted:    #4a5a7a;
  --text-hint:     #2e3a52;
  --card-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 2px 2px rgba(255,255,255,.05) inset,
    0 32px 80px rgba(0,0,0,.75),
    0 0 80px rgba(59,123,255,.07);
  --spring:  cubic-bezier(0.32, 0.72, 0, 1);
  --bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Canvas 粒子背景（fixed，不占布局） ── */
body.lp-body #lc {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── 光晕装饰 ── */
body.lp-body .lp-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
body.lp-body .lp-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle at center,
    rgba(59, 100, 255, .18) 0%,
    rgba(139, 92, 246, .07) 50%,
    transparent 72%);
  filter: blur(60px);
  top: -200px; left: -160px;
  animation: orbDrift 14s ease-in-out infinite;
}
body.lp-body .lp-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle at center,
    rgba(124, 58, 237, .15) 0%,
    rgba(59, 123, 255, .06) 50%,
    transparent 70%);
  filter: blur(55px);
  bottom: -130px; right: -130px;
  animation: orbDrift 11s ease-in-out infinite reverse;
}
body.lp-body .lp-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle at center,
    rgba(16, 185, 129, .08) 0%,
    transparent 70%);
  filter: blur(50px);
  top: 38%; left: 62%;
  animation: orbDrift 18s ease-in-out infinite 5s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, 25px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(.97); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) scale(1);      filter: blur(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.75); }
}

/* ══════════════════════════════════
   页面包裹层
══════════════════════════════════ */
body.lp-body .lp-wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ══════════════════════════════════
   Eyebrow Tag
══════════════════════════════════ */
body.lp-body .lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(59,123,255,.1);
  border: 1px solid rgba(59,123,255,.28);
  border-radius: 99px;
  padding: 5px 14px 5px 9px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #6890d4;
  margin-bottom: 18px;
  animation: fadeSlideDown .5s var(--spring) .05s both;
}
body.lp-body .lp-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   Logo Header
══════════════════════════════════ */
body.lp-body .lp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  user-select: none;
  animation: fadeSlideDown .6s var(--spring) .1s both;
}
body.lp-body .lp-header img {
  width: 40px; height: 40px;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 22px rgba(59,123,255,.55),
    0 4px 14px rgba(0,0,0,.5);
  transition: transform .4s var(--bounce), box-shadow .3s;
}
body.lp-body .lp-header img:hover {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 34px rgba(59,123,255,.75);
}
body.lp-body .lp-header span {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
  background: linear-gradient(135deg, #c8d8ff 0%, #a5b8ff 55%, #c4a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════
   Double-Bezel 外壳 + 卡片
══════════════════════════════════ */
body.lp-body .lp-card-outer {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 26px;
  padding: 2px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: cardRise .7s var(--spring) .15s both;
}
body.lp-body .lp-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 32px 28px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
/* 顶部光线 */
body.lp-body .lp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(120,160,255,.85) 40%,
    rgba(180,140,255,.65) 60%,
    transparent);
  pointer-events: none;
}
/* 底部极光 */
body.lp-body .lp-card::after {
  content: '';
  position: absolute;
  bottom: -35px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 70px;
  background: radial-gradient(ellipse, rgba(59,123,255,.1), transparent 70%);
  pointer-events: none;
  filter: blur(18px);
}

/* ══════════════════════════════════
   Tabs + 滑块
══════════════════════════════════ */
body.lp-body .lp-tabs {
  display: flex;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 3px;
  margin-bottom: 26px;
  position: relative;
  gap: 2px;
}
body.lp-body .lp-tab {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
  transition: color .25s var(--spring);
}
body.lp-body .lp-tab.on { color: var(--text-primary); }
body.lp-body .lp-tabs-slider {
  position: absolute;
  top: 3px; bottom: 3px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg,
    rgba(37,80,220,.42) 0%,
    rgba(100,60,200,.32) 100%);
  border: 1px solid rgba(80,130,255,.3);
  border-radius: 11px;
  transition: left .3s var(--spring);
  box-shadow: 0 2px 12px rgba(59,100,255,.22);
  pointer-events: none;
}
body.lp-body .lp-tabs[data-tab="login"]    .lp-tabs-slider { left: 3px; }
body.lp-body .lp-tabs[data-tab="register"] .lp-tabs-slider { left: calc(50% + 1px); }

/* ══════════════════════════════════
   浮动标签输入框
══════════════════════════════════ */
body.lp-body .lf {
  position: relative;
  margin-bottom: 14px;
}
body.lp-body .lf input {
  width: 100%;
  height: 52px;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: 13px !important;
  color: var(--text-primary) !important;
  font-size: 14.5px !important;
  padding: 20px 14px 7px 44px !important;
  outline: none !important;
  transition:
    border-color .25s var(--spring),
    background .25s,
    box-shadow .25s var(--spring),
    transform .18s var(--spring);
  caret-color: var(--accent);
  box-shadow: none !important;
}
body.lp-body .lf input::placeholder { color: transparent; }
body.lp-body .lf input:focus {
  border-color: var(--border-bright) !important;
  background: rgba(59,100,255,.07) !important;
  box-shadow:
    0 0 0 3px rgba(59,123,255,.16),
    0 4px 16px rgba(0,0,0,.3) !important;
  transform: translateY(-1px);
}

/* 前缀图标 */
body.lp-body .lf .lf-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13.5px;
  color: var(--text-hint);
  pointer-events: none;
  transition: color .25s, transform .25s var(--spring);
  z-index: 1;
}
body.lp-body .lf input:focus + .lf-icon { color: var(--accent); transform: translateY(-50%) scale(1.1); }
body.lp-body .lf input:not(:placeholder-shown) + .lf-icon { color: var(--accent); }

/* 浮动 label */
body.lp-body .lf label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #3e4f6e;
  pointer-events: none;
  transition: top .2s var(--spring), font-size .2s, color .2s, letter-spacing .2s;
  line-height: 1;
}
body.lp-body .lf input:focus ~ label,
body.lp-body .lf input:not(:placeholder-shown) ~ label {
  top: 11px;
  transform: none;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* 眼睛按钮 */
body.lp-body .lf .eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: var(--text-hint) !important;
  font-size: 13px;
  cursor: pointer;
  padding: 7px;
  transition: color .2s, transform .2s var(--bounce);
  z-index: 2;
  border-radius: 7px;
}
body.lp-body .lf .eye-btn:hover {
  color: #5a7ab0 !important;
  transform: translateY(-50%) scale(1.18);
}
body.lp-body .lf input.has-eye { padding-right: 42px !important; }

/* ══════════════════════════════════
   密码强度条
══════════════════════════════════ */
body.lp-body .pwd-strength {
  display: flex;
  gap: 5px;
  margin: -6px 0 14px;
  padding: 0 2px;
}
body.lp-body .pwd-bar {
  flex: 1; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.08);
  transition: background .4s var(--spring), transform .3s var(--bounce);
}
body.lp-body .pwd-bar.w { background: #ef4444; transform: scaleY(1.4); }
body.lp-body .pwd-bar.m { background: #f59e0b; transform: scaleY(1.4); }
body.lp-body .pwd-bar.s { background: #10b981; transform: scaleY(1.4); }

/* ══════════════════════════════════
   记住密码
══════════════════════════════════ */
body.lp-body .lp-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: color .2s;
}
body.lp-body .lp-remember:hover { color: #6a82a8; }
body.lp-body .lp-remember input[type=checkbox] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}

/* ══════════════════════════════════
   验证码行
══════════════════════════════════ */
body.lp-body .cap-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
body.lp-body .cap-row .lf { flex: 1; margin-bottom: 0; }
body.lp-body .cap-img {
  width: 110px; height: 52px; flex-shrink: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  font-size: 11px; color: var(--text-hint);
  transition: border-color .25s, transform .2s var(--bounce), box-shadow .2s;
  position: relative;
}
body.lp-body .cap-img::after {
  content: '↻';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(255,255,255,.0);
  background: rgba(10,20,50,.0);
  transition: color .2s, background .2s;
  border-radius: inherit;
}
body.lp-body .cap-img:hover {
  border-color: var(--border-bright);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(59,100,255,.22);
}
body.lp-body .cap-img:hover::after {
  background: rgba(10,20,50,.58);
  color: rgba(255,255,255,.88);
}
body.lp-body .cap-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: inherit;
}

/* ══════════════════════════════════
   快捷登录提示
══════════════════════════════════ */
body.lp-body .quick-tip {
  background: linear-gradient(135deg,
    rgba(59,100,255,.1) 0%, rgba(139,92,246,.06) 100%);
  border: 1px solid rgba(59,123,255,.24);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 12.5px;
  color: #7899d4;
  margin-bottom: 18px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}
body.lp-body .quick-tip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,.5), transparent);
}

/* ══════════════════════════════════
   提交按钮 — Shimmer + Ripple
══════════════════════════════════ */
body.lp-body .lp-btn {
  width: 100%;
  height: 50px;
  border: none !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg,
    #1d4ed8 0%, #2563eb 40%, #7c3aed 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .15s var(--spring);
  box-shadow:
    0 1px 1px rgba(255,255,255,.12) inset,
    0 6px 24px rgba(37,99,235,.42),
    0 0 0 1px rgba(100,140,255,.25) !important;
}
/* 顶部内光 */
body.lp-body .lp-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,.14) 0%, rgba(255,255,255,.0) 55%);
  border-radius: inherit;
  pointer-events: none;
}
/* Shimmer 扫光 */
body.lp-body .lp-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 60%; height: 200%;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--spring);
  pointer-events: none;
}
body.lp-body .lp-btn:hover {
  box-shadow:
    0 1px 1px rgba(255,255,255,.15) inset,
    0 10px 36px rgba(37,99,235,.58),
    0 0 0 1px rgba(120,160,255,.4) !important;
  transform: translateY(-2px);
}
body.lp-body .lp-btn:hover::after { left: 120%; }
body.lp-body .lp-btn:active {
  transform: translateY(0) scale(.983);
  box-shadow: 0 3px 14px rgba(37,99,235,.3) !important;
}
body.lp-body .lp-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

/* ══════════════════════════════════
   底部链接
══════════════════════════════════ */
body.lp-body .lp-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-hint);
  line-height: 2.2;
}
body.lp-body .lp-foot a {
  color: #4a76d4;
  text-decoration: none;
  transition: color .2s;
}
body.lp-body .lp-foot a:hover { color: #7aa4f0; }
body.lp-body .lp-foot .sep { color: var(--text-hint); margin: 0 6px; }

/* ══════════════════════════════════
   版权
══════════════════════════════════ */
body.lp-body .lp-copy {
  margin-top: 22px;
  font-size: 11px;
  color: rgba(255,255,255,.14);
  text-align: center;
  letter-spacing: .3px;
  animation: fadeSlideDown .5s var(--spring) .3s both;
}

/* ══════════════════════════════════
   响应式
══════════════════════════════════ */
@media (max-width: 480px) {
  body.lp-body .lp-card { padding: 24px 18px 20px; }
  body.lp-body .lp-wrap  { padding: 16px 12px; }
  body.lp-body .lp-card-outer { max-width: 100%; }
  body.lp-body .lp-btn { height: 46px; }
  body.lp-body .lf input { height: 48px; }
  body.lp-body .cap-img { width: 94px; height: 48px; }
}
