:root {
  --bg: #070a12;
  --surface: rgba(18, 24, 42, 0.72);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fc;
  --muted: #9aa3b8;
  --accent: #5eead4;
  --accent-2: #a78bfa;
  --danger: #fb7185;
  --radius: 1.25rem;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: -40% -20%;
  background:
    radial-gradient(ellipse 50% 40% at 50% -10%, rgba(94, 234, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 40%, rgba(167, 139, 250, 0.14), transparent 50%),
    radial-gradient(ellipse 35% 30% at 10% 60%, rgba(56, 189, 248, 0.1), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

/* Match inclusyx-fe BrandMark: indigo gradient + document/layers glyph */
.brand-mark {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.35),
    0 14px 44px -14px rgba(99, 102, 241, 0.55),
    0 6px 20px -8px rgba(79, 70, 229, 0.35);
}

.brand-mark-svg {
  display: block;
}

.brand-name {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.hidden,
.card.hidden {
  display: none !important;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  margin: 0 0 0.5rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 0.98rem;
}

.lede strong {
  color: #c7d0e5;
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c7d0e5;
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(7, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input::placeholder {
  color: #5c6578;
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.field input:focus {
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.field input[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.7);
}

.field-hint {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--danger);
}

.privacy {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 1rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #042f2e;
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(45, 212, 191, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(45, 212, 191, 0.35);
}

.submit:active:not(:disabled) {
  transform: translateY(0);
}

.submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.submit-spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(4, 47, 46, 0.25);
  border-top-color: #042f2e;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.submit.loading .submit-label {
  opacity: 0.85;
}

.submit.loading .submit-spinner {
  display: block;
  position: absolute;
}

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

.form-error {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--danger);
  text-align: center;
}

.card-success {
  text-align: center;
}

.success-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.success-copy {
  margin-bottom: 1.5rem;
}

.ghost-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.ghost-btn:hover {
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.55);
}

.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #5c6578;
}

@media (prefers-reduced-motion: reduce) {
  .submit,
  .submit-spinner {
    transition: none;
    animation: none;
  }
}
