body.login-body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #f0e6f6;
  background: #0a0612;
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(180, 40, 120, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(100, 50, 200, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(220, 60, 80, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  overflow: hidden;
}

body.login-body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(255, 180, 220, 0.4), transparent),
    radial-gradient(2px 2px at 30% 70%, rgba(200, 150, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255, 200, 230, 0.35), transparent),
    radial-gradient(2px 2px at 70% 50%, rgba(180, 130, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255, 160, 200, 0.35), transparent),
    radial-gradient(2px 2px at 25% 90%, rgba(220, 140, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 60% 40%, rgba(255, 180, 220, 0.3), transparent),
    radial-gradient(2px 2px at 80% 15%, rgba(200, 160, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 45% 65%, rgba(255, 170, 210, 0.25), transparent),
    radial-gradient(2px 2px at 15% 45%, rgba(190, 140, 255, 0.3), transparent);
  animation: starsTwinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes starsTwinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.login-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  background: linear-gradient(165deg, rgba(30, 15, 40, 0.85) 0%, rgba(20, 10, 35, 0.9) 50%, rgba(35, 15, 50, 0.85) 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(200, 100, 180, 0.2);
  padding: 2.8rem 2.2rem 2.4rem;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(180, 60, 140, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: cardFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(220, 80, 160, 0.35), rgba(140, 60, 220, 0.2), rgba(255, 100, 140, 0.25));
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
  opacity: 0.7;
  animation: borderPulse 3s ease-in-out infinite alternate;
}

.login-card::after {
  content: '';
  position: absolute;
  top: 0; left: -50%; width: 200%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 180, 220, 0.03) 45%, rgba(200, 150, 255, 0.05) 50%, rgba(255, 180, 220, 0.03) 55%, transparent 60%);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardFloat {
  0% { transform: translateY(30px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes borderPulse {
  0% { opacity: 0.5; }
  100% { opacity: 0.9; }
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}

.login-logo svg {
  width: 68px;
  height: 68px;
  color: #e878b0;
  filter: drop-shadow(0 6px 18px rgba(220, 80, 150, 0.35));
  animation: logoBreath 3s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 6px 18px rgba(220, 80, 150, 0.35)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 8px 24px rgba(220, 80, 150, 0.5)); }
}

.login-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ffb0d0, #e090c0, #d080e8, #c0a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.login-subtitle {
  text-align: center;
  margin-bottom: 1.75rem;
  color: rgba(220, 180, 210, 0.65);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.65;
}

.login-subtitle span {
  color: #e878b0;
  font-weight: 600;
}

.login-card .err {
  text-align: center;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 80, 100, 0.1);
  border: 1px solid rgba(255, 80, 100, 0.25);
  border-radius: 10px;
  color: #ff8a9e;
  font-weight: 600;
  animation: errShake 0.4s ease;
}

@keyframes errShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.input-wrapper svg {
  color: rgba(200, 140, 180, 0.5);
  transition: color 0.3s;
}

.input-wrapper:focus-within svg {
  color: #e878b0;
}

.login-card input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border-radius: 12px;
  border: 1px solid rgba(180, 100, 160, 0.2);
  background: rgba(25, 12, 35, 0.6);
  color: #f0e0f0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}

.login-card input::placeholder {
  color: rgba(180, 140, 170, 0.4);
}

.login-card input:focus {
  outline: none;
  border-color: rgba(220, 100, 160, 0.5);
  background: rgba(30, 15, 45, 0.7);
  box-shadow: 0 0 0 3px rgba(220, 100, 160, 0.12), 0 0 20px rgba(180, 60, 140, 0.08);
}

.login-card button[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem;
  background: linear-gradient(135deg, #c040a0, #a030d0, #8040e0);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  box-shadow: 0 8px 28px rgba(160, 50, 180, 0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.login-card button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s;
}

.login-card button[type="submit"]:hover::before {
  left: 100%;
}

.login-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(160, 50, 180, 0.45);
}

.login-card button[type="submit"]:active {
  transform: translateY(0);
}

.login-divider {
  color: rgba(180, 140, 170, 0.35);
  font-weight: 500;
  letter-spacing: 2px;
}

.login-divider::before,
.login-divider::after {
  background: rgba(180, 100, 160, 0.15);
}

.login-footer {
  color: rgba(160, 120, 150, 0.35);
  font-weight: 400;
  letter-spacing: 0.5px;
}
