@import "tailwindcss";

:root {
  --background: #edf3fb;
  --surface: #ffffff;
  --border: #d4e0ed;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2663ac;
  --accent-warm: #f7993a;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

@theme inline {
  --color-background: var(--background);
  --color-surface: var(--surface);
  --color-border: var(--border);
  --color-text: var(--text);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-accent-warm: var(--accent-warm);
  --font-sans: var(--font-manrope);
  --font-mono: var(--font-space-mono);
}

@layer utilities {
  .text-xs {
    font-size: 0.8125rem;
    line-height: 1.25rem;
  }

  .text-\[9px\] {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .text-\[10px\] {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .text-\[11px\] {
    font-size: 0.8125rem;
    line-height: 1.1rem;
  }
}

* {
  border-color: var(--border);
}

body {
  font-family: var(--font-manrope), sans-serif;
  background:
    radial-gradient(circle at 4% 4%, rgba(38, 99, 172, 0.15), transparent 28%),
    radial-gradient(circle at 94% 2%, rgba(247, 153, 58, 0.18), transparent 32%),
    radial-gradient(circle at 85% 92%, rgba(38, 99, 172, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  color: var(--text);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ambient-drift {
  0% {
    transform: translate3d(-12%, -9%, 0) scale(0.98);
  }
  50% {
    transform: translate3d(10%, 6%, 0) scale(1.14);
  }
  100% {
    transform: translate3d(-8%, 11%, 0) scale(1.08);
  }
}

@keyframes ambient-sweep {
  0% {
    transform: translate3d(-18%, -8%, 0) rotate(-14deg);
    opacity: 0.12;
  }
  50% {
    transform: translate3d(8%, 2%, 0) rotate(-11deg);
    opacity: 0.2;
  }
  100% {
    transform: translate3d(22%, 10%, 0) rotate(-8deg);
    opacity: 0.1;
  }
}

.enter-fade-up {
  animation: fade-up 520ms var(--ease-out-expo) both;
  animation-delay: var(--enter-delay, 0ms);
}

.enter-fade {
  animation: fade-in 360ms ease-out both;
  animation-delay: var(--enter-delay, 0ms);
}

.login-blue-surface,
.login-blue-panel {
  position: relative;
  isolation: isolate;
  background: #163a66;
}

.login-blue-surface::before,
.login-blue-surface::after,
.login-blue-panel::before,
.login-blue-panel::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.login-blue-surface::before,
.login-blue-panel::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(119, 176, 255, 0.3), transparent 32%),
    radial-gradient(circle at 76% 70%, rgba(93, 148, 228, 0.22), transparent 34%),
    radial-gradient(circle at 54% 118%, rgba(255, 255, 255, 0.11), transparent 24%);
  filter: blur(34px);
  opacity: 1;
  animation: ambient-drift 11s ease-in-out infinite alternate;
}

.login-blue-surface::after,
.login-blue-panel::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 0,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 28px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
  opacity: 0.16;
}

.login-blue-panel::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(149, 194, 255, 0.28), transparent 28%),
    radial-gradient(circle at 78% 74%, rgba(96, 150, 230, 0.22), transparent 32%),
    radial-gradient(circle at 60% 110%, rgba(255, 255, 255, 0.1), transparent 22%);
  filter: blur(30px);
  opacity: 1;
}

.login-blue-panel::after {
  opacity: 0.12;
}

.login-blue-surface > .login-blue-sweep,
.login-blue-panel > .login-blue-sweep {
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 24%,
    rgba(255, 255, 255, 0.04) 42%,
    rgba(171, 210, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.035) 58%,
    transparent 74%
  );
  filter: blur(24px);
  mix-blend-mode: screen;
  animation: ambient-sweep 16s ease-in-out infinite;
}

.login-blue-surface > .login-blue-detail,
.login-blue-panel > .login-blue-detail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 76%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px),
    linear-gradient(140deg, transparent 46%, rgba(255, 255, 255, 0.055) 46.4%, transparent 47.1%),
    linear-gradient(22deg, transparent 64%, rgba(255, 255, 255, 0.045) 64.3%, transparent 64.8%);
  background-size: 72px 72px, 88px 88px, 100% 100%, 100% 100%;
  opacity: 0.18;
}

th,
label,
code,
pre,
.caption {
  font-family: var(--font-space-mono), monospace;
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.15;
}

::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #89add7, #4f81bf);
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.recharts-surface:focus,
.recharts-wrapper:focus,
.recharts-wrapper:focus-visible,
.recharts-wrapper *:focus,
.recharts-wrapper *:focus-visible,
.recharts-layer:focus,
.recharts-layer:focus-visible,
.recharts-rectangle:focus,
.recharts-rectangle:focus-visible,
.recharts-sector:focus,
.recharts-sector:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.recharts-tooltip-wrapper {
  transition: opacity 160ms ease-out, transform 180ms var(--ease-out-expo);
}

summary::-webkit-details-marker {
  display: none;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .login-blue-surface::before,
  .login-blue-panel::before {
    animation: none !important;
  }

  .login-blue-surface > .login-blue-sweep,
  .login-blue-panel > .login-blue-sweep {
    animation: none !important;
  }
}

[aria-busy="true"] {
  cursor: progress;
}
