:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #5491e6;
  color: #1a1a1a;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}

.liquid-bg {
  animation: finder-wave 72s linear infinite;
  background:
    radial-gradient(ellipse 45% 105% at 40% 47%, rgba(110, 166, 240, 0.62) 0%, rgba(110, 166, 240, 0.44) 28%, transparent 56%),
    radial-gradient(ellipse 28% 83% at 64% 45%, rgba(56, 125, 219, 0.72) 0%, rgba(56, 125, 219, 0.46) 24%, transparent 54%),
    radial-gradient(ellipse 33% 67% at 39% 51%, rgba(138, 186, 247, 0.48) 0%, rgba(138, 186, 247, 0.30) 26%, transparent 54%),
    radial-gradient(ellipse 36% 31% at 44% 69%, rgba(69, 135, 224, 0.40) 0%, rgba(69, 135, 224, 0.24) 25%, transparent 58%),
    linear-gradient(rgba(196, 222, 255, 0.10), rgba(196, 222, 255, 0.10)),
    #5491e6;
  filter: blur(3.5vmin) saturate(1.02);
  inset: -10%;
  position: fixed;
  transform: scale(1.06);
  z-index: -2;
}

.liquid-bg::before {
  animation: lake-ripple 72s linear infinite;
  background:
    linear-gradient(180deg, transparent, rgba(196, 222, 255, 0.20), transparent) 50% 4% / 145% 4.8% no-repeat,
    linear-gradient(180deg, transparent, rgba(196, 222, 255, 0.20), transparent) 50% 22% / 145% 4.8% no-repeat,
    linear-gradient(180deg, transparent, rgba(196, 222, 255, 0.20), transparent) 50% 40% / 145% 4.8% no-repeat,
    linear-gradient(180deg, transparent, rgba(196, 222, 255, 0.20), transparent) 50% 58% / 145% 4.8% no-repeat,
    linear-gradient(180deg, transparent, rgba(196, 222, 255, 0.20), transparent) 50% 76% / 145% 4.8% no-repeat,
    linear-gradient(180deg, transparent, rgba(196, 222, 255, 0.20), transparent) 50% 94% / 145% 4.8% no-repeat;
  content: "";
  filter: blur(4.5px);
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.20;
  position: absolute;
}

.liquid-bg::after {
  background:
    radial-gradient(circle at center, transparent 18%, rgba(0, 0, 0, 0.55) 95%),
    repeating-radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(34deg, rgba(255, 255, 255, 0.040) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(102deg, rgba(0, 0, 0, 0.050) 0 1px, transparent 1px 3px);
  content: "";
  inset: 0;
  opacity: 0.34;
  position: absolute;
}

.auth-shell {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  min-height: 100vh;
  padding: 28px;
  position: relative;
}

.auth-panel {
  max-width: 360px;
  position: relative;
  width: 100%;
  z-index: 1;
}

h1 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.4;
}

.auth {
  margin-top: 20px;
}

.actions {
  display: none;
}

.footnote {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 12px;
  max-width: 280px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #007aff;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  min-height: 38px;
  padding: 0 14px;
}

button:disabled {
  cursor: default;
  opacity: 0.5;
}

.items {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.item {
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  padding: 12px;
}

.debug {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 18px;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.title {
  color: #ffffff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.url {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  overflow-wrap: anywhere;
}

@keyframes finder-wave {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(0.8%, 0.4%, 0);
  }
}

@keyframes lake-ripple {
  from {
    transform: translate3d(0, -1.5%, 0);
  }
  to {
    transform: translate3d(0.6%, 1.5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-bg {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #5491e6;
    color: #ffffff;
  }

  p,
  .url {
    color: rgba(255, 255, 255, 0.78);
  }

  .item {
    background: rgba(10, 16, 28, 0.24);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .debug {
    background: rgba(10, 16, 28, 0.22);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
  }

  button {
    background: #0a84ff;
    color: #fff;
  }
}
