:root {
  --color-bg: #0a0e14;
  --color-card-bg: #10161f;
  --color-ink: #e8f4ff;
  --color-text-muted: #6f8ba0;
  --color-accent: #4fd8ff;
  --color-accent-ink: #0a0e14;
  --color-error: #ff6b6b;
  --color-border: #1e2a38;
  --color-outline: #030507;

  --radius-card: 28px;
  --radius-input: 999px;
  --radius-btn: 999px;

  --font-family: 'Inter', sans-serif;
  --font-bubble: 'Fredoka', 'Inter', sans-serif;
  --color-deco: #ffffff;

  --transition-fast: 0.2s ease;
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

.deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 340px;
  height: 340px;
  overflow: visible;
}

.blob-fill {
  fill: var(--color-deco);
  stroke: none;
}

.blob-top-left {
  top: -140px;
  left: -140px;
  width: 420px;
  height: 420px;
}

.blob-bottom-right {
  bottom: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
}

.star {
  position: absolute;
  width: 130px;
  height: 130px;
}

.star-fill {
  fill: var(--color-deco);
  stroke: var(--color-outline);
  stroke-width: 2;
  stroke-linejoin: round;
}

.star-1 {
  top: 8%;
  right: 8%;
}

.burst {
  position: absolute;
  width: 90px;
  height: 90px;
}

.burst-fill {
  fill: none;
  stroke: var(--color-deco);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.35;
}

.burst-1 {
  bottom: 10%;
  left: 8%;
}

.spiral {
  position: absolute;
  width: 110px;
  height: 110px;
  bottom: 6%;
  right: 10%;
}

.spiral-line {
  stroke: var(--color-accent);
  stroke-width: 10.0;
  stroke-linecap: round;
  opacity: 0.45;
}

.dot {
  position: absolute;
  width: 40px;
  height: 40px;
}

.dot-fill {
  fill: var(--color-deco);
  opacity: 0.3;
}

.dot-1 {
  top: 20%;
  left: 10%;
}

.dot-2 {
  top: 60%;
  right: 6%;
}

.zigzag {
  position: absolute;
  width: 140px;
  height: 26px;
  top: 45%;
  left: -30px;
  transform: rotate(90deg);
}

.zigzag-line {
  stroke: var(--color-deco);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.35;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(32px, 6vw, 44px) clamp(24px, 6vw, 34px);
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

.title {
  font-family: var(--font-bubble);
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.label {
  font-family: var(--font-bubble);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.heart {
  color: var(--color-accent);
}

.input {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--color-ink);
  background-color: #0a0e14;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  outline: none;
  min-height: 52px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input::placeholder {
  color: #4d6272;
}

.input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.15);
}

.error {
  min-height: 18px;
  font-size: 13px;
  color: var(--color-error);
  margin-top: 8px;
  font-weight: 600;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-bubble);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent-ink);
  background-color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-btn);
  cursor: pointer;
  margin-top: 16px;
  min-height: 52px;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .blob {
    width: 240px !important;
    height: 240px !important;
  }

  .star {
    width: 90px !important;
    height: 90px !important;
  }

  .burst {
    width: 60px !important;
    height: 60px !important;
  }

  .spiral {
    width: 80px !important;
    height: 80px !important;
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .card {
    max-width: 100%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }

  .dot,
  .zigzag,
  .burst-1 {
    display: none;
  }

  .blob-top-left {
    width: 180px;
    height: 180px;
    top: -80px;
    left: -80px;
  }

  .blob-bottom-right {
    width: 160px;
    height: 160px;
    bottom: -70px;
    right: -70px;
  }

  .star-1 {
    width: 60px !important;
    height: 60px !important;
    top: 14px;
    right: 10px;
  }

  .spiral {
    width: 60px !important;
    height: 60px !important;
    bottom: 4%;
    right: 6%;
  }
}

@media (max-width: 360px) {
  .title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .label {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}