html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.fl {
  position: relative;
  width: min(240px, 82vw);
}

.fl__input {
  box-sizing: border-box;
  width: 100%;
  border: 2px solid rgba(255, 247, 230, 0.35);
  border-radius: 12px;
  padding: 20px 16px 8px;
  font-weight: 500;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  background: transparent;
  position: relative;
  transition: border-color 220ms ease-out;
}
.fl__input:focus {
  outline: none;
  border-color: #fff7e6;
}

.fl__bloom {
  position: absolute;
  inset: -6px;
  border-radius: calc(12px + 6px);
  background: radial-gradient(circle, rgba(255, 247, 230, 0.32) 0%, rgba(255, 247, 230, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.fl__input:focus ~ .fl__bloom {
  animation: bloom 300ms ease-out;
}

.fl__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  transform-origin: left center;
  color: rgba(255, 247, 230, 0.6);
  font-weight: 500;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1;
  font-family: inherit;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.3, 1.6, 0.4, 1), color 220ms ease-out;
}

.fl__input:focus ~ .fl__label,
.fl__input:not(:placeholder-shown) ~ .fl__label {
  transform: translateY(-24px) scale(0.78);
  color: #fff7e6;
}

@keyframes bloom {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl__label {
    transition: none;
  }
  .fl__input:focus ~ .fl__bloom {
    animation: none;
  }
}
