Skip to content

The platform for continuously improving AI agents.

2.4 KB
Raw Blame
.scene {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color-scheme: dark;
  isolation: isolate;
}

.art {
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: lighten;
}

.landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.asteroid {
  position: absolute;
  mix-blend-mode: screen;
  animation: asteroid-fly var(--duration) ease-out var(--delay) infinite;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    transparent 0 3px,
    color-mix(in srgb, var(--auth-text) 4%, transparent) 3px 4px
  );
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem 1.25rem;
  animation: content-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.heading {
  justify-content: center;
  text-align: center;
}

.heading h1 {
  overflow: visible;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  white-space: normal;
}

.frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: var(--auth-panel);
  pointer-events: none;
}

.edge {
  flex-shrink: 0;
  height: 12px;
  background: currentColor;
  clip-path: polygon(
    0 0,
    12px 0,
    12px 4px,
    16px 4px,
    16px 0,
    20px 0,
    20px 4px,
    calc(100% - 20px) 4px,
    calc(100% - 20px) 0,
    calc(100% - 16px) 0,
    calc(100% - 16px) 4px,
    calc(100% - 12px) 4px,
    calc(100% - 12px) 0,
    100% 0,
    100% 12px,
    calc(100% - 12px) 12px,
    calc(100% - 12px) 8px,
    calc(100% - 16px) 8px,
    calc(100% - 16px) 12px,
    calc(100% - 20px) 12px,
    calc(100% - 20px) 8px,
    20px 8px,
    20px 12px,
    16px 12px,
    16px 8px,
    12px 8px,
    12px 12px,
    0 12px
  );
}

.sides {
  flex: 1;
  margin: 12px 4px;
  border-inline: 4px solid currentColor;
}

@keyframes content-enter {
  from {
    opacity: 0.6;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes asteroid-fly {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  8%,
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translate(-110vw, 65vh);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content {
    animation: none;
  }
  .asteroid {
    display: none;
    animation: none;
  }
}