/* 登录页 — 创意极光 + 玻璃态
   参考: Linear / Vercel / Stripe / Apple 的 hero 风格
   - 深色为基,顶部渐变极光
   - 玻璃态登录卡
   - 微交互:按钮悬停扫光,渐变文字
*/

.login-body {
  min-height: 100vh;
  background: #0a0d14;
  color: #e6e8f0;
  font-family: var(--font-sans);
  overflow: hidden;
  position: relative;
}

/* ── 极光背景 ─────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: aurora-float 22s ease-in-out infinite;
}
.aurora__blob--a {
  width: 720px; height: 720px;
  top: -220px; left: -120px;
  background: radial-gradient(circle at 30% 30%, #3b82f6 0%, transparent 65%);
}
.aurora__blob--b {
  width: 640px; height: 640px;
  top: 40%; right: -200px;
  background: radial-gradient(circle at 70% 40%, #8b5cf6 0%, transparent 65%);
  animation-delay: -6s;
  animation-duration: 28s;
}
.aurora__blob--c {
  width: 540px; height: 540px;
  bottom: -180px; left: 38%;
  background: radial-gradient(circle at 50% 50%, #22d3ee 0%, transparent 60%);
  animation-delay: -12s;
  animation-duration: 34s;
}
@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, -60px) scale(1.12); }
  66%      { transform: translate(-60px, 70px) scale(0.92); }
}
.aurora__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 75%);
}
.aurora__noise {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 布局:左叙事 + 右登录卡 ──────────────── */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-8);
  gap: var(--sp-12);
  align-items: center;
}

/* ── 左侧 hero ────────────────────────────── */
.login-hero__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}
.login-hero__logo {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}
.login-hero__brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #c7cbda;
}
.login-hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--sp-5);
}
.gradient-text {
  background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-hero__subtitle {
  font-size: 16px;
  color: #9aa0b4;
  max-width: 460px;
  line-height: 1.55;
  margin-bottom: var(--sp-8);
}
.login-hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.login-hero__bullets li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: #b0b6c8;
  font-size: 14px;
}
.login-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: #6f7489;
  font-size: 12px;
}
.login-hero__meta-sep { opacity: 0.6; }
.login-hero__link {
  color: #a0a7bb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.login-hero__link:hover { border-bottom-color: currentColor; }

/* ── 右侧玻璃态卡片 ─────────────────────── */
.login-card-glass {
  position: relative;
  padding: var(--sp-8) var(--sp-8);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.login-card-glass::before {
  /* 顶边 highlight */
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}
.login-card-glass__head {
  margin-bottom: var(--sp-6);
}
.login-card-glass__title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--sp-1);
  letter-spacing: -0.01em;
}
.login-card-glass__subtitle {
  font-size: 13px;
  color: #9aa0b4;
  margin: 0;
}

/* 飞书登录主按钮 — Linear/Vercel 风格 */
.btn-feishu {
  width: 100%;
  height: 52px;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-feishu::after {
  /* 扫光效果 */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -120%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  transform: skewX(-22deg);
  transition: left 600ms ease;
}
.btn-feishu:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(59, 130, 246, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.05);
}
.btn-feishu:hover::after { left: 120%; }
.btn-feishu:active { transform: translateY(0); }
.btn-feishu__icon {
  display: inline-flex;
  align-items: center;
}
.btn-feishu__text { flex: 1; text-align: left; }
.btn-feishu__arrow {
  font-size: 18px;
  transition: transform 180ms ease;
}
.btn-feishu:hover .btn-feishu__arrow { transform: translateX(3px); }

.login-card-glass__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: #5d6477;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: var(--sp-5) 0;
}
.login-card-glass__divider::before,
.login-card-glass__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.login-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #c7cbda;
  font-size: 13px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
  margin-bottom: var(--sp-2);
}
.login-link-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
}
.login-link-row span:last-child { opacity: 0.55; }

.login-card-glass__foot {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: #6f7489;
  font-size: 11px;
}
.login-card-glass__foot .dot { width: 6px; height: 6px; }

/* 错误条覆盖深色主题 */
.login-body .form-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: var(--sp-2) var(--sp-3);
  font-size: 13px;
}

/* ── 响应式 ──────────────────────────── */
@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-6);
    min-height: auto;
  }
  .login-hero__brand { margin-bottom: var(--sp-4); }
  .login-hero__bullets { margin-bottom: var(--sp-6); }
  .login-card-glass { padding: var(--sp-6); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob { animation: none; }
  .btn-feishu::after { display: none; }
}
