body.login {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(239, 68, 68, 0.32), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(190, 18, 60, 0.3), transparent 60%),
    #0d0809;
}

body.login::before,
body.login::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body.login::before {
  background: #ef4444;
  top: -120px;
  left: -120px;
  animation: drift 18s ease-in-out infinite alternate;
}

body.login::after {
  background: #be123c;
  bottom: -140px;
  right: -120px;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  to { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 44px 36px 36px;
  text-align: center;
  background: rgba(28, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef4444, #be123c);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.45);
}

.badge svg { width: 30px; height: 30px; }

.panel h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.panel .lead {
  margin: 0 0 28px;
  color: var(--muted);
}

.panel .error { text-align: left; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  background: #5865f2;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(88, 101, 242, 0.55);
}

.cta:active { transform: translateY(0); }

.cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.cta .logo {
  flex: none;
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .panel { padding: 36px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  body.login::before,
  body.login::after,
  .panel { animation: none; }
  .cta { transition: none; }
}
