/* Jahata Server Authelia login — matches portal glass theme */
:root {
  --jaha-navy: #22395d;
  --jaha-blue: #3b82f6;
  --jaha-gold: #fbbf24;
  --jaha-bg: #070b14;
}

html,
body {
  min-height: 100dvh;
  background-color: var(--jaha-bg) !important;
  background-image:
    radial-gradient(ellipse 80% 60% at 18% 8%, rgba(34, 57, 93, 0.5) 0%, transparent 58%),
    radial-gradient(ellipse 55% 50% at 88% 12%, rgba(59, 130, 246, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(251, 191, 36, 0.1) 0%, transparent 48%),
    linear-gradient(180deg, #070b14 0%, #0f1729 42%, #141e33 100%) !important;
  background-attachment: fixed !important;
  color: #f1f5f9 !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
}

body::before {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
}

body::after {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  right: -8%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
}

#root {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

.MuiAppBar-root {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.MuiContainer-root {
  position: relative;
  background: rgba(15, 23, 41, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  padding: 2rem 1.75rem 1.75rem !important;
  overflow: hidden;
}

.MuiContainer-root::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--jaha-blue), var(--jaha-gold), var(--jaha-blue));
  background-size: 200% 100%;
  animation: jaha-shimmer 4s linear infinite;
}

@keyframes jaha-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

img[alt="Logo"] {
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
}

.MuiTypography-h5,
.MuiTypography-h6,
.MuiTypography-h4 {
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
}

.MuiOutlinedInput-root {
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(96, 165, 250, 0.55) !important;
}

.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--jaha-blue) !important;
  border-width: 2px !important;
}

.MuiButton-containedPrimary,
.MuiButton-contained {
  border-radius: 12px !important;
  text-transform: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.38) !important;
}

.MuiButton-containedPrimary:hover,
.MuiButton-contained:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.5) !important;
}

.MuiCheckbox-root.Mui-checked {
  color: var(--jaha-blue) !important;
}

.MuiLink-root {
  color: #93c5fd !important;
}

.MuiLink-root:hover {
  color: var(--jaha-gold) !important;
}

@media (prefers-reduced-motion: reduce) {
  .MuiContainer-root::before {
    animation: none;
  }
}
