@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #09090b;
  --bg-2: #0a0e0f;
  --panel: rgba(12, 12, 16, 0.72);
  --panel-strong: rgba(15, 15, 20, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-2: #ec4899;
  --danger: #fb7185;
  --success: #22c55e;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

body {
  background: #09090b;
  cursor: auto;
}

a,
button,
[role="button"] {
  cursor: pointer;
}

.shell {
  isolation: isolate;
  background: #080b0d;
}

.shell::before,
.shell::after {
  content: none;
}

.aurora-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 12% 8%, rgba(35, 90, 65, 0.22), transparent 70%),
    linear-gradient(135deg, #09110e 0%, #071014 44%, #0b0915 72%, #130812 100%);
  contain: paint;
}

.aurora-phase {
  position: absolute;
  inset: -24%;
  opacity: 0;
  transform: translate3d(-8%, -8%, 0) scale(1.02);
  transform-origin: center;
  filter: blur(18px) saturate(1.08);
  mix-blend-mode: screen;
  will-change: opacity, transform;
}

.aurora-phase--day {
  background:
    radial-gradient(ellipse 58% 48% at 13% 10%, rgba(235, 255, 238, 0.94) 0%, rgba(177, 255, 202, 0.68) 28%, transparent 68%),
    radial-gradient(ellipse 52% 44% at 35% 28%, rgba(78, 238, 164, 0.68) 0%, rgba(20, 184, 166, 0.28) 44%, transparent 72%),
    radial-gradient(ellipse 48% 42% at 62% 48%, rgba(157, 255, 205, 0.32) 0%, transparent 70%);
  animation:
    zaberio-day-phase 60s ease-in-out infinite alternate,
    zaberio-phase-travel 60s ease-in-out infinite alternate;
}

.aurora-phase--cyan {
  background:
    radial-gradient(ellipse 58% 48% at 28% 22%, rgba(103, 232, 249, 0.82) 0%, rgba(34, 211, 238, 0.58) 34%, transparent 70%),
    radial-gradient(ellipse 54% 46% at 58% 50%, rgba(14, 165, 233, 0.68) 0%, rgba(6, 182, 212, 0.28) 45%, transparent 72%),
    radial-gradient(ellipse 45% 38% at 82% 66%, rgba(125, 211, 252, 0.38) 0%, transparent 68%);
  animation:
    zaberio-cyan-phase 60s ease-in-out infinite alternate,
    zaberio-phase-travel 60s ease-in-out infinite alternate;
}

.aurora-phase--violet {
  background:
    radial-gradient(ellipse 58% 50% at 42% 35%, rgba(196, 181, 253, 0.72) 0%, rgba(139, 92, 246, 0.58) 36%, transparent 70%),
    radial-gradient(ellipse 54% 46% at 68% 62%, rgba(168, 85, 247, 0.7) 0%, rgba(126, 34, 206, 0.3) 45%, transparent 72%),
    radial-gradient(ellipse 44% 38% at 88% 80%, rgba(217, 70, 239, 0.34) 0%, transparent 68%);
  animation:
    zaberio-violet-phase 60s ease-in-out infinite alternate,
    zaberio-phase-travel 60s ease-in-out infinite alternate;
}

.aurora-phase--pink {
  background:
    radial-gradient(ellipse 58% 48% at 54% 48%, rgba(249, 168, 212, 0.62) 0%, rgba(236, 72, 153, 0.52) 38%, transparent 70%),
    radial-gradient(ellipse 56% 48% at 78% 72%, rgba(244, 63, 94, 0.52) 0%, rgba(190, 24, 93, 0.28) 45%, transparent 72%),
    radial-gradient(ellipse 48% 42% at 96% 94%, rgba(232, 121, 249, 0.42) 0%, transparent 68%);
  animation:
    zaberio-pink-phase 60s ease-in-out infinite alternate,
    zaberio-phase-travel 60s ease-in-out infinite alternate;
}

.aurora-grid {
  position: absolute;
  inset: -52px;
  z-index: 5;
  background-image:
    linear-gradient(to right, rgba(230, 255, 248, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 255, 248, 0.13) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.82;
  -webkit-mask-image: radial-gradient(ellipse 125% 110% at 22% 7%, #000 0%, rgba(0, 0, 0, 0.9) 48%, transparent 91%);
  mask-image: radial-gradient(ellipse 125% 110% at 22% 7%, #000 0%, rgba(0, 0, 0, 0.9) 48%, transparent 91%);
  mix-blend-mode: screen;
  will-change: transform;
  animation: zaberio-grid-drift 90s linear infinite alternate;
}

.hero {
  flex-basis: 58%;
  z-index: 1;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(5, 12, 12, 0.04), rgba(8, 8, 14, 0.16));
}

.hero::before {
  width: 32rem;
  height: 32rem;
  left: -12rem;
  bottom: -15rem;
  background: rgba(105, 240, 184, 0.12);
  filter: blur(95px);
}

.hero::after {
  width: 30rem;
  height: 30rem;
  right: -12rem;
  top: -13rem;
  background: rgba(236, 72, 153, 0.13);
  filter: blur(95px);
}

#neuralCanvas {
  opacity: 0.5;
  mix-blend-mode: screen;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 12, 13, 0.03), rgba(8, 8, 14, 0.16)),
    linear-gradient(180deg, rgba(7, 12, 13, 0.02), rgba(8, 8, 14, 0.25));
}

.hero-inner {
  max-width: 48rem;
  padding: clamp(2.5rem, 5vw, 5rem);
}

.eyebrow {
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.8rem;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
  animation: zaberio-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero h1 {
  max-width: 46rem;
  margin-inline: auto;
  font-size: clamp(3.25rem, 5.4vw, 5.65rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.hero h1 .accent {
  background: linear-gradient(90deg, #22d3ee 0%, #a855f7 48%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.24));
}

.hero-copy {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: rgba(244, 244, 245, 0.66);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-stats {
  max-width: 38rem;
  margin: 2.25rem auto 0;
  gap: 0.75rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(255, 255, 255, 0.065);
}

.stat-value {
  color: #22d3ee;
  font-size: 1.65rem;
}

.stat-value.alt { color: #a855f7; }
.stat-value.warn { color: #ec4899; }

.stat-label {
  color: rgba(244, 244, 245, 0.5);
}

.pill {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 244, 245, 0.64);
}

.hero-footer {
  color: rgba(244, 244, 245, 0.35);
}

.panel {
  flex-basis: 42%;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(8, 10, 12, 0.12), rgba(9, 8, 13, 0.28));
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.panel::before {
  width: 24rem;
  height: 24rem;
  background: rgba(168, 85, 247, 0.08);
  filter: blur(70px);
}

.panel::after {
  background: rgba(34, 211, 238, 0.07);
  filter: blur(70px);
}

.card {
  max-width: 28rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 18, 24, 0.74), rgba(8, 8, 12, 0.62));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.card::before {
  content: "";
  width: 3rem;
  height: 3px;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.card-head {
  margin-bottom: 0.55rem;
}

.mobile-brand {
  color: transparent;
  background: linear-gradient(90deg, #22d3ee, #a855f7 52%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
}

.card-head h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.lead {
  margin-bottom: 1.8rem;
  color: rgba(244, 244, 245, 0.55);
  line-height: 1.65;
}

.form-block {
  gap: 1.15rem;
}

label {
  color: rgba(250, 250, 250, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.icon {
  color: rgba(161, 161, 170, 0.72);
}

.input-field {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(9, 9, 11, 0.7);
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.input-field::placeholder {
  color: rgba(161, 161, 170, 0.52);
}

.input-field:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.input-field:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.1),
    0 0 22px rgba(34, 211, 238, 0.06);
}

.toggle-password {
  color: rgba(161, 161, 170, 0.76);
}

.checkbox-row {
  color: rgba(244, 244, 245, 0.58);
  font-size: 0.82rem;
}

.checkbox-row input {
  accent-color: #22d3ee;
}

.primary {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee 0%, #a855f7 48%, #ec4899 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(236, 72, 153, 0.24);
}

.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: transform 0.65s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 28px rgba(236, 72, 153, 0.3),
    0 10px 30px rgba(34, 211, 238, 0.12);
  filter: brightness(1.06);
}

.primary:hover::before {
  transform: translateX(130%) skewX(-20deg);
}

.primary:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 3px;
}

.spinner {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

#loginButtonText {
  position: relative;
  z-index: 1;
}

.alert {
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.09);
  color: #fecdd3;
}

.alert.success {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.09);
  color: #bbf7d0;
}

.alert.info {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.09);
  color: #cffafe;
}

.meta {
  color: rgba(161, 161, 170, 0.58);
}

.meta a {
  color: rgba(250, 250, 250, 0.8);
}

.meta a:hover {
  color: #22d3ee;
}

@keyframes zaberio-day-phase {
  0%, 10% { opacity: 0.96; }
  25% { opacity: 0.3; }
  38%, 100% { opacity: 0.02; }
}

@keyframes zaberio-cyan-phase {
  0% { opacity: 0.12; }
  15% { opacity: 0.4; }
  30% { opacity: 0.98; }
  44% { opacity: 0.72; }
  56%, 100% { opacity: 0.02; }
}

@keyframes zaberio-violet-phase {
  0%, 35% { opacity: 0.02; }
  50% { opacity: 0.38; }
  62% { opacity: 0.98; }
  76% { opacity: 0.64; }
  88%, 100% { opacity: 0.02; }
}

@keyframes zaberio-pink-phase {
  0%, 60% { opacity: 0.02; }
  72% { opacity: 0.24; }
  86% { opacity: 0.84; }
  100% { opacity: 0.98; }
}

@keyframes zaberio-phase-travel {
  0% { transform: translate3d(-8%, -8%, 0) scale(1.02); }
  32% { transform: translate3d(-2%, -2%, 0) scale(1.06); }
  64% { transform: translate3d(4%, 4%, 0) scale(1.1); }
  100% { transform: translate3d(9%, 9%, 0) scale(1.05); }
}

@keyframes zaberio-grid-drift {
  from { transform: translate3d(-26px, -26px, 0); }
  to { transform: translate3d(26px, 26px, 0); }
}

@keyframes zaberio-pulse {
  50% { opacity: 0.55; transform: scale(0.86); }
}

@media (min-width: 1024px) {
  .hero { flex-basis: 58%; }
  .panel { flex: 0 0 42%; }
}

@media (max-width: 1023px) {
  .panel {
    border-left: 0;
    background: linear-gradient(145deg, rgba(8, 11, 12, 0.1), rgba(9, 8, 13, 0.3));
  }

  .card {
    max-width: 28rem;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 1.45rem;
    border-radius: 20px;
  }

  .card::before {
    margin-bottom: 1rem;
  }
}

@media (max-height: 760px) {
  .card {
    padding: 1.35rem 1.6rem;
  }

  .card::before {
    margin-bottom: 0.8rem;
  }

  .card-head h1 {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-grid,
  .eyebrow-dot,
  .card {
    animation: none;
  }

  .aurora-phase {
    transform: none;
  }

  .aurora-phase--day {
    animation: zaberio-day-phase 60s ease-in-out infinite alternate;
  }

  .aurora-phase--cyan {
    animation: zaberio-cyan-phase 60s ease-in-out infinite alternate;
  }

  .aurora-phase--violet {
    animation: zaberio-violet-phase 60s ease-in-out infinite alternate;
  }

  .aurora-phase--pink {
    animation: zaberio-pink-phase 60s ease-in-out infinite alternate;
  }

  .aurora-grid { transform: none; }

  * {
    scroll-behavior: auto !important;
  }
}
