*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;

  --pale: #e8f4f8;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05090d;
}

canvas#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;

  background:
    radial-gradient(
      ellipse at center,
      transparent 35%,
      rgba(0,0,0,0.42) 100%
    );

  z-index: 1;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;

  width: 200%;
  height: 200%;

  opacity: 0.03;

  z-index: 2;
  pointer-events: none;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  animation: grain 0.9s steps(1) infinite;
}

@keyframes grain {
  0% { transform: translate(0,0) }
  25% { transform: translate(-4%,3%) }
  50% { transform: translate(3%,-5%) }
  75% { transform: translate(-3%,4%) }
  100% { transform: translate(4%,-2%) }
}

.page {

  position: fixed;
  inset: 0;

  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo svg {
  width: clamp(140px, 30vw, 200px);
  height: auto;
  display: block;

  opacity: 0;

  animation:
    fadeUp 1.1s ease 0.3s forwards;

  filter:
    drop-shadow(
      0 0 14px rgba(60,120,180,0.08)
    );

  transform: translateY(-2px);
}

.logo svg .cls-1,
.logo svg .cls-2 {
  fill: rgba(235,245,255,0.92);
  fill-rule: evenodd;
}

.signup-wrap {
  position: absolute;
  bottom: 7vh;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 0.9rem;

  opacity: 0;

  animation:
    fadeUp 1.1s ease 0.65s forwards;
}

.register-label {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 500;

  letter-spacing: 0.28em;
  text-transform: uppercase;

  color:
    rgba(180,225,245,0.48);
}

/* FORM */

/* FORM */

.signup-row {
  display: flex;
  align-items: center;

  width: min(720px, 90vw);
  min-height: 78px;

  padding: 0 0.4rem;

  border-bottom:
    1px solid rgba(180,220,255,0.18);

  background: transparent;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.signup-row:focus-within {
  border-color:
    rgba(255,255,255,0.55);
}

.signup-row input {
  flex: 1;

  background: transparent;
  border: none;
  outline: none;

  padding:
    0 0.6rem 0.9rem 0.2rem;

  font-family: var(--font);

  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;

  letter-spacing: 0.01em;
  line-height: 1.4;

  color:
    rgba(232,244,248,0.98);

  caret-color:
    rgba(255,255,255,0.95);
}

/* FORM */

.signup-row {
  display: flex;
  align-items: center;

  width: min(720px, 90vw);

  padding-bottom: 0.45rem;

  border-bottom:
    1px solid rgba(180,220,255,0.18);

  background: transparent;

  transition:
    border-color 0.25s ease;
}

.signup-row:focus-within {
  border-color:
    rgba(255,255,255,0.5);
}

.signup-row input {
  flex: 1;
  transform: translateY(-1px);
  background: transparent !important;

  border: none;
  outline: none;
  box-shadow: none;

  appearance: none;
  -webkit-appearance: none;

  padding: 0;

  font-family: var(--font);

  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;

  line-height: 1.2;
  letter-spacing: 0.01em;

  color:
    rgba(232,244,248,0.98);

  caret-color:
    rgba(255,255,255,0.95);
}

/* placeholder */

.signup-row input::placeholder {
  color:
    rgba(180,225,245,0.22);
}

/* REMOVE UGLY AUTOFILL */

.signup-row input:-webkit-autofill,
.signup-row input:-webkit-autofill:hover,
.signup-row input:-webkit-autofill:focus,
.signup-row input:-webkit-autofill:active {

  -webkit-box-shadow:
    0 0 0 1000px transparent inset !important;

  -webkit-text-fill-color:
    rgba(232,244,248,0.98) !important;

  transition:
    background-color 9999s ease-in-out 0s;

  font-family: var(--font);
}

/* arrow submit */

.submit-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  margin-left: 0.5rem;
  transform: translateY(-1px);

  background: transparent;

  border: none;

  color:
    rgba(235,248,250,0.72);

  font-size: 1.6rem;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.submit-arrow:hover {
  color:
    rgba(255,255,255,1);

  transform: translate(3px, -1px);
}

.success-msg {
  display: none;

  font-family: var(--font);
  font-size: 0.85rem;
  font-style: italic;

  color:
    rgba(255,190,120,0.72);

  letter-spacing: 0.04em;
}

@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width: 600px) {

  .signup-row {
    width: 88vw;
  }

  .signup-row input {
    font-size: 0.95rem;
  }
}