/* ── Reset & Base ─────────────────────────────────────── */

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

[hidden] {
  display: none !important;
}

:root {
  --primary: oklch(0.55 0.15 200);
  --primary-light: oklch(0.55 0.15 200 / 25%);
  --primary-10: oklch(0.55 0.15 200 / 10%);
  --primary-15: oklch(0.55 0.15 200 / 15%);
  --primary-20: oklch(0.55 0.15 200 / 20%);
  --accent-15: oklch(0.92 0.04 170 / 15%);
  --accent-20: oklch(0.92 0.04 170 / 20%);
  --accent-10: oklch(0.92 0.04 170 / 10%);
  --bg: oklch(0.985 0.002 200);
  --fg: oklch(0.175 0.02 220);
  --muted: oklch(0.5 0.03 220);
  --border: oklch(0.9 0.02 200);
  --input-bg: oklch(1 0 0);
  --radius: 0.625rem;
}

html {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ── Background Effects ──────────────────────────────── */

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

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-1 {
  left: -10%;
  top: 5%;
  width: 60%;
  height: 60%;
  background: var(--primary-light);
  filter: blur(80px);
}

.blob-2 {
  right: -5%;
  top: 15%;
  width: 45%;
  height: 55%;
  background: var(--primary-20);
  filter: blur(90px);
}

.blob-3 {
  bottom: 0;
  left: 20%;
  width: 40%;
  height: 50%;
  background: var(--accent-20);
  filter: blur(80px);
}

.blob-4 {
  left: 50%;
  top: 5%;
  width: 30%;
  height: 35%;
  background: var(--primary-15);
  filter: blur(70px);
}

/* Rings */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
}

.ring-1 {
  left: 8%;
  top: 15%;
  width: 64px;
  height: 64px;
  border-color: var(--primary-15);
  animation: float 8s ease-in-out infinite;
}

.ring-2 {
  right: 12%;
  top: 20%;
  width: 40px;
  height: 40px;
  border-color: var(--primary-10);
  animation: float 10s ease-in-out 2s infinite reverse;
}

.ring-3 {
  left: 15%;
  bottom: 18%;
  width: 48px;
  height: 48px;
  border-color: var(--accent-15);
  animation: float 9s ease-in-out 1s infinite;
}

.ring-4 {
  right: 8%;
  bottom: 25%;
  width: 80px;
  height: 80px;
  border-color: var(--primary-10);
  animation: float 12s ease-in-out 3s infinite reverse;
}

.ring-5 {
  left: 40%;
  top: 8%;
  width: 32px;
  height: 32px;
  border-color: var(--primary-15);
  animation: float 7s ease-in-out infinite;
}

.ring-6 {
  right: 30%;
  bottom: 10%;
  width: 56px;
  height: 56px;
  border-color: var(--accent-10);
  animation: float 11s ease-in-out 2s infinite;
}

/* Grid */
.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(128, 128, 128, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 128, 128, 0.4) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Center fade */
.center-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, var(--bg) 15%, transparent 100%);
}

/* ── Main Content ────────────────────────────────────── */

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: 3rem 1.25rem;
}

.content {
  text-align: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
}

.logo-cross {
  opacity: 0.9;
  transition: opacity 0.5s ease-in-out;
}

.logo-corner {
  opacity: 0.15;
  transition: opacity 0.5s ease-in-out;
}

.logo-text {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: oklch(1 0 0 / 12%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid oklch(0.55 0.15 200 / 20%);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: glow-pulse 2.5s ease-in-out infinite;
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* Heading */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.text-primary {
  color: var(--primary);
}

/* Subtitle */
.subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── Form ────────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="email"]::placeholder {
  color: var(--muted);
}

input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.15 200 / 15%);
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 2rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

button[type="submit"]:hover {
  opacity: 0.9;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-arrow {
  width: 16px;
  height: 16px;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Form hint ───────────────────────────────────────── */

.form-hint {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Error ───────────────────────────────────────────── */

.error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: oklch(0.577 0.245 27.325);
}

/* ── Success ─────────────────────────────────────────── */

.success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid oklch(0.55 0.15 200 / 20%);
  border-radius: 0.75rem;
  background: oklch(0.55 0.15 200 / 5%);
  animation: fade-in-up 0.5s ease-out both;
  text-align: left;
}

.success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
}

.success p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}


/* ── Stats ───────────────────────────────────────────── */

.stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.125rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* ── Animations ──────────────────────────────────────── */

@keyframes blob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15%, 20%) scale(1.25); }
  66% { transform: translate(-10%, -15%) scale(0.8); }
}

@keyframes blob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-18%, 12%) scale(0.75); }
  66% { transform: translate(12%, -18%) scale(1.2); }
}

@keyframes blob3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20%, -12%) scale(1.2); }
  66% { transform: translate(-15%, 18%) scale(0.8); }
}


@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 3px oklch(0.55 0.15 200 / 6%); }
  50% { box-shadow: 0 0 10px oklch(0.55 0.15 200 / 18%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}


@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ──────────────────────────────────────── */

@media (min-width: 640px) {
  .form {
    flex-direction: row;
  }

  h1 {
    font-size: 3.25rem;
  }
}

@media (max-width: 639px) {
  .stat-divider {
    display: none;
  }

  .stats {
    gap: 1.5rem;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
  }

  .logo-text {
    font-size: 1.75rem;
  }
}
