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);
}

.gi-field {
  position: relative;
  width: min(240px, 84vw);
}

.gi-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 16px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  color: #fff7e6;
  font: 600 13px/1 -apple-system, "Segoe UI", sans-serif;
  outline: none;
  transition: border-color 220ms ease-out, box-shadow 220ms ease-out;
}

.gi-field__input::placeholder {
  color: transparent;
}

.gi-field__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  transform-origin: left center;
  color: rgba(255, 247, 230, 0.6);
  font: 600 13px/1 -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
  transition: transform 220ms ease-out, color 220ms ease-out;
}

.gi-field:focus-within .gi-field__label {
  transform: translateY(-14px) scale(0.82);
  color: #fff7e6;
}

.gi-field:focus-within .gi-focal {
  border-color: rgba(47, 109, 246, 0.9);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.35), 0 14px 24px rgba(23, 20, 26, 0.32);
}

@keyframes gi-label-loop {
  0%, 20% {
    transform: translateY(-50%) scale(1);
    color: rgba(255, 247, 230, 0.6);
  }
  50%, 70% {
    transform: translateY(-14px) scale(0.82);
    color: #fff7e6;
  }
  100% {
    transform: translateY(-50%) scale(1);
    color: rgba(255, 247, 230, 0.6);
  }
}
@keyframes gi-input-loop {
  0%, 20% {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
  50%, 70% {
    border-color: rgba(47, 109, 246, 0.9);
    box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.35), 0 14px 24px rgba(23, 20, 26, 0.32);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
}
.gi-field.is-demo .gi-field__label {
  animation: gi-label-loop 2s ease-out infinite;
}

.gi-field.is-demo .gi-focal {
  animation: gi-input-loop 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .gi-field__label, .gi-focal {
    transition: none;
  }
  .gi-field.is-demo .gi-field__label,
  .gi-field.is-demo .gi-focal {
    animation: none !important;
  }
}
