/* ============================================================
   login-redesign.css
   心语客服台 · 登录页全新 UI
   现代渐变背景 + 玻璃拟态卡片 + 流光按钮
   通过 [data-v-24fce2b7] 作用域覆盖原样式，Vue 安全
   ============================================================ */

/* ---- 动画关键帧 ---- */
@keyframes login-float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(28px, -38px) scale(1.08); }
  66%      { transform: translate(-22px, 26px) scale(.94); }
}
@keyframes login-card-in {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes login-title-glow {
  0%, 100% { text-shadow: 0 6px 24px rgba(99, 179, 237, .35); }
  50%      { text-shadow: 0 6px 30px rgba(168, 130, 255, .5); }
}
@keyframes login-shimmer {
  0%   { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(230%) skewX(-18deg); }
}
@keyframes login-input-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 179, 237, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(99, 179, 237, .14); }
}

/* ============================================================
   背景：深空渐变 + 漂浮光球（替代原图层）
   ============================================================ */
.login-container[data-v-24fce2b7] {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 深空渐变背景 */
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56, 91, 168, .55), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(124, 58, 237, .42), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(14, 27, 58, .3), transparent 70%),
    linear-gradient(135deg, #0a0e27 0%, #0f1b3d 45%, #1a1040 100%) !important;
  padding: 32px 22px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* 顶层漂浮光球（替换原 before 的静态光斑） */
.login-container[data-v-24fce2b7]::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 15% 25%, rgba(86, 163, 255, .32), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(168, 130, 255, .28), transparent 30%),
    radial-gradient(circle at 75% 85%, rgba(53, 220, 177, .18), transparent 32%),
    radial-gradient(circle at 25% 80%, rgba(255, 122, 177, .16), transparent 30%) !important;
  pointer-events: none !important;
  animation: login-float-orb 16s ease-in-out infinite;
}

/* ============================================================
   玻璃卡片：重新塑形（替换原 after 的固定矩形）
   ============================================================ */
.login-container[data-v-24fce2b7]::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(400px, calc(100vw - 28px)) !important;
  height: 488px !important;
  border-radius: 32px !important;
  /* 玻璃拟态：半透明 + 渐变边框光 */
  background: linear-gradient(180deg, rgba(22, 34, 62, .72), rgba(10, 16, 38, .88)) !important;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(190, 215, 255, .14),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(0, 0, 0, .3) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  pointer-events: none !important;
  animation: login-card-in .7s cubic-bezier(.2, .7, .2, 1) both;
}

/* 卡片内部内容层级 */
.login-container[data-v-24fce2b7] > * {
  position: relative;
  z-index: 1;
  animation: login-card-in .7s cubic-bezier(.2, .7, .2, 1) both;
}
.login-container[data-v-24fce2b7] > .login-title { animation-delay: .1s; }
.login-container[data-v-24fce2b7] > .input-group:nth-of-type(1) { animation-delay: .2s; }
.login-container[data-v-24fce2b7] > .input-group:nth-of-type(2) { animation-delay: .3s; }
.login-container[data-v-24fce2b7] > .login-btn { animation-delay: .4s; }

/* ============================================================
   标题：渐变文字 + 呼吸光晕
   ============================================================ */
.login-title[data-v-24fce2b7] {
  font-size: 32px !important;
  font-weight: 800 !important;
  margin-bottom: 38px !important;
  text-align: center;
  letter-spacing: 2px !important;
  background: linear-gradient(135deg, #a5c9ff 0%, #c4a8ff 50%, #7fd8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: login-title-glow 4s ease-in-out infinite;
  position: relative;
}
/* 标题下方装饰横线 */
.login-title[data-v-24fce2b7]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f9eff, #a882ff, #4f9eff);
  background-size: 200% 100%;
  animation: login-shimmer 3s linear infinite;
  opacity: .85;
}

/* ============================================================
   输入组：更现代的标签 + 输入框
   ============================================================ */
.input-group[data-v-24fce2b7] {
  width: 100% !important;
  max-width: 330px;
  margin-bottom: 20px !important;
}

.input-label[data-v-24fce2b7] {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(200, 218, 255, .82) !important;
  margin-bottom: 10px !important;
  text-align: left;
  letter-spacing: 1px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* 标签前的小圆点装饰 */
.input-label[data-v-24fce2b7]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f9eff, #a882ff);
  box-shadow: 0 0 8px rgba(99, 179, 237, .6);
  flex-shrink: 0;
}

/* 输入框：毛玻璃 + 聚焦光环 */
.input-group input[data-v-24fce2b7] {
  width: 100% !important;
  height: 56px !important;
  border-radius: 16px !important;
  padding: 0 18px !important;
  box-sizing: border-box;
  font-size: 16px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(190, 215, 255, .16) !important;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .18) !important;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.input-group input[data-v-24fce2b7]::placeholder {
  color: rgba(200, 218, 255, .4) !important;
}
.input-group input[data-v-24fce2b7]:focus {
  background: rgba(255, 255, 255, .13) !important;
  border-color: rgba(120, 185, 255, .7) !important;
  box-shadow:
    0 0 0 4px rgba(99, 179, 237, .18),
    0 12px 30px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

/* ============================================================
   登录按钮：渐变 + 流光扫过 + 悬浮
   ============================================================ */
.login-btn[data-v-24fce2b7] {
  width: 100% !important;
  max-width: 330px;
  height: 56px !important;
  margin-top: 24px !important;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4f9eff 0%, #7a7cff 50%, #9b5cff 100%) !important;
  color: #fff !important;
  border-radius: 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  border: none;
  cursor: pointer;
  box-shadow:
    0 14px 34px rgba(84, 133, 255, .4),
    0 4px 12px rgba(155, 92, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
/* 按钮流光扫过效果 */
.login-btn[data-v-24fce2b7]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-130%) skewX(-18deg);
  animation: login-shimmer 3.5s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}
.login-btn[data-v-24fce2b7]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(84, 133, 255, .5),
    0 6px 16px rgba(155, 92, 255, .3),
    inset 0 1px 0 rgba(255, 255, 255, .32) !important;
  filter: brightness(1.05);
}
.login-btn[data-v-24fce2b7]:active {
  transform: scale(.985) !important;
  background: linear-gradient(135deg, #438df2, #7d5cff) !important;
}

/* ============================================================
   响应式：小屏适配
   ============================================================ */
@media (max-width: 380px) {
  .login-container[data-v-24fce2b7]::after {
    width: calc(100vw - 24px) !important;
    height: 470px !important;
    border-radius: 28px !important;
  }
  .login-title[data-v-24fce2b7] {
    font-size: 28px !important;
  }
  .input-group[data-v-24fce2b7],
  .login-btn[data-v-24fce2b7] {
    max-width: calc(100vw - 80px) !important;
  }
}

/* ============================================================
   横屏（矮屏）压缩卡片
   ============================================================ */
@media (max-height: 600px) and (orientation: landscape) {
  .login-container[data-v-24fce2b7]::after {
    height: 420px !important;
  }
  .login-title[data-v-24fce2b7] {
    font-size: 24px !important;
    margin-bottom: 24px !important;
  }
  .input-group[data-v-24fce2b7] {
    margin-bottom: 14px !important;
  }
  .input-group input[data-v-24fce2b7] {
    height: 48px !important;
  }
  .login-btn[data-v-24fce2b7] {
    height: 48px !important;
    margin-top: 16px !important;
  }
}
