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

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

.pfs {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pfs__form {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
}

.pfs__field {
  display: grid;
  gap: 8px;
}

.pfs__labelText {
  color: rgba(23, 20, 26, 0.82);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.pfs__inputWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pfs__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: 0;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  caret-color: #17141a;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.pfs__input:focus {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pfs__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 20, 26, 0.78);
  cursor: pointer;
}
.pfs__toggle:hover {
  background: rgba(23, 20, 26, 0.1);
}
.pfs__toggle:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pfs__eye {
  display: block;
}

.pfs__hint {
  margin: 0;
  color: rgba(23, 20, 26, 0.62);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.pfs::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(91, 140, 248, 0);
  transition: background-color 0.24s ease;
}

.pfs--revealed::before {
  background: rgba(91, 140, 248, 0.14);
}

@media (max-width: 340px) {
  .pfs__form {
    max-width: 260px;
  }
  .pfs__input {
    font-size: 14px;
    padding-right: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pfs__lidTop,
  .pfs__lidBottom,
  .pfs__pupil {
    transition: none;
  }
  .pfs::before {
    transition: none;
  }
}
