:root {
  --bg-start: #0a0f1d;
  --bg-end: #03060d;
  --frost: #9fd7ff;
  --frost-strong: #c8e7ff;
  --ink: #e8f1ff;
  --muted: #a8b4c6;
  --card: rgba(12, 17, 31, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --glow: #2ab8ff;
  --success: #8ae6c0;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(42, 184, 255, 0.06), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 40%),
              linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 18px 48px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(140deg, rgba(6, 10, 18, 0.82), rgba(3, 6, 13, 0.9)),
    url('apreslife-landing02.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.82;
  filter: saturate(0.94);
  z-index: 0;
}

.bg-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.shell {
  position: relative;
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  background: rgba(12, 17, 31, 0.7);
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(42, 184, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(42, 184, 255, 0.2);
  overflow: hidden;
}

.crest-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark small {
  color: var(--muted);
  font-weight: 500;
}

.card {
  display: none;
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  transition: opacity 240ms ease, transform 240ms ease;
  opacity: 0;
  transform: translateY(12px);
  width: 100%;
  max-width: 560px;
}

.card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.card.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.eyebrow {
  color: var(--frost);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1, h2 {
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(42, 184, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(42, 184, 255, 0.15);
}

textarea {
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, opacity 160ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(42, 184, 255, 0.4), rgba(42, 184, 255, 0.72));
  color: #05101e;
  box-shadow: 0 12px 32px rgba(42, 184, 255, 0.32);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(42, 184, 255, 0.36);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 28px rgba(42, 184, 255, 0.3);
}

.hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.error {
  color: #ff97b5;
  min-height: 16px;
  margin: 0;
  font-size: 14px;
}

@media (min-width: 720px) {
  body {
    padding: 48px 32px 64px;
  }

  .card {
    padding: 32px 30px;
  }

  h1, h2 {
    font-size: 32px;
  }

  .shell {
    gap: 22px;
  }
}

@media (min-width: 1024px) {
  body {
    align-items: center;
  }
}

