@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --gradient-primary: linear-gradient(
    90deg,
    #6b3fa0 0%,
    #4a7bb7 25%,
    #3ba3d4 50%,
    #d64d8e 75%,
    #e94b5a 100%
  );
  --color-background: #1a1f35;
  --color-background-alt: #252b45;
  --color-card: #0f1219;
  --color-card-lighter: #161b28;
  --color-text: #e8eaef;
  --color-text-muted: #a0a3b8;
  --color-primary: #6b3fa0;
  --color-secondary: #3ba3d4;
  --color-border: #2a3048;
  --shadow-level-2: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  background: linear-gradient(160deg, #1c2137 0%, #252c45 50%, var(--color-background) 100%);
  color: var(--color-text);
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: 0.3;
  animation: grain 4s steps(10) infinite;
}

body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  top: -10%;
  left: -10%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(107, 63, 160, 0.4) 0%,
    rgba(107, 63, 160, 0.2) 35%,
    transparent 70%
  );
  filter: blur(60px);
  animation: float-one 8s ease-in-out infinite alternate;
}

.blob-gradient-1 {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  top: 20%;
  right: -5%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(59, 163, 212, 0.35) 0%,
    rgba(59, 163, 212, 0.18) 40%,
    transparent 70%
  );
  filter: blur(70px);
  animation: float-two 10s ease-in-out infinite alternate;
}

.blob-gradient-2 {
  content: "";
  position: fixed;
  width: 450px;
  height: 450px;
  bottom: 10%;
  left: 15%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(214, 77, 142, 0.3) 0%,
    rgba(214, 77, 142, 0.15) 40%,
    transparent 70%
  );
  filter: blur(65px);
  animation: float-three 9s ease-in-out infinite alternate;
}

.blob-gradient-3 {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(233, 75, 90, 0.25) 0%,
    rgba(233, 75, 90, 0.12) 40%,
    transparent 70%
  );
  filter: blur(80px);
  animation: pulse-expand 7s ease-in-out infinite;
}

.card {
  width: min(92vw, 500px);
  background: linear-gradient(140deg, rgba(29, 36, 57, 0.72), rgba(14, 18, 30, 0.42));
  border-radius: 22px;
  padding: 32px 24px;
  box-shadow: var(--shadow-level-2), 0 22px 55px rgba(6, 10, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: var(--color-text);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  overflow: hidden;
}

@media (min-width: 480px) {
  .card {
    padding: 48px 56px;
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.logo {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: clamp(48px, 12vw, 64px);
  height: auto;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5ec4f0;
  background: rgba(59, 163, 212, 0.18);
  border-radius: 999px;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.125rem, 5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.tagline {
  margin: 12px 0 18px;
  font-size: 1.125rem;
  font-weight: 500;
  color: #5ec4f0;
}

.subtext {
  margin: 0 0 30px;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.5;
  color: var(--color-text-muted);
}

form {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

input[type="email"] {
  width: 100%;
  padding: 14px 18px 14px 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(9, 14, 28, 0.2);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: rgba(115, 195, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 4px rgba(80, 170, 255, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
}

input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.68);
  opacity: 1;
}

button {
  padding: 14px 28px;
  border-radius: 16px;
  border: none;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background 0.3s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(107, 63, 160, 0.5);
  background: #7d50b8;
}

button span:last-child {
  transition: transform 0.2s ease;
  display: inline-flex;
}

button:hover span:last-child {
  transform: translateX(4px);
}

.card button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  min-height: 1.2em;
  transition: color 0.2s ease;
}

.form-status--info {
  color: var(--color-text-muted);
}

.form-status--success {
  color: #76e5c2;
}

.form-status--error {
  color: #ff9ca4;
}

.footnote {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes grain {
  0% {
    transform: translate3d(0, 0, 0);
  }
  10% {
    transform: translate3d(-1%, -1%, 0);
  }
  20% {
    transform: translate3d(1.2%, -0.8%, 0);
  }
  30% {
    transform: translate3d(-0.8%, 1.2%, 0);
  }
  40% {
    transform: translate3d(0.8%, -1%, 0);
  }
  50% {
    transform: translate3d(-1.2%, 0.8%, 0);
  }
  60% {
    transform: translate3d(1%, 1%, 0);
  }
  70% {
    transform: translate3d(-0.8%, -1%, 0);
  }
  80% {
    transform: translate3d(1.2%, 0.8%, 0);
  }
  90% {
    transform: translate3d(-1%, 1%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float-one {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(50px, 60px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float-two {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-60px, -50px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float-three {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(55px, -55px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse-expand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.25;
  }
}
