:root {
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-500: #71717a;
  --zinc-800: #27272a;
  --zinc-950: #09090b;
  --white: #ffffff;
  --magenta: #e1007a;
  --purple: #7c00d6;
  --blue: #0047ff;
  --mint: #00c875;
  --crimson: #e11d48;
  --shadow: 0 12px 40px rgba(9, 9, 11, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--zinc-950);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(225, 0, 122, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 71, 255, 0.08), transparent 50%),
    var(--zinc-50);
}

.shell {
  width: min(420px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
  animation: rise 0.55s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.brand-mark {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(120deg, var(--magenta), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0.45rem 0 0;
  color: var(--zinc-500);
  font-size: 0.95rem;
  line-height: 1.45;
}

.panel {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--zinc-800);
}

.field input {
  appearance: none;
  width: 100%;
  border: 1px solid var(--zinc-200);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--zinc-950);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 0, 214, 0.12);
}

.btn-primary,
.btn-secondary {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--magenta), var(--purple), var(--blue));
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-secondary {
  width: 100%;
  margin-top: 0.85rem;
  background: var(--zinc-100);
  color: var(--zinc-950);
}

.switch {
  text-align: center;
  margin: 1.1rem 0 0;
}

.link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--purple);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error,
.ok {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.error {
  color: var(--crimson);
}

.ok {
  color: var(--mint);
}

.session {
  margin-top: 1.25rem;
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.35rem;
  text-align: center;
  animation: rise 0.4s ease both;
}

.session-brand {
  margin-bottom: 1rem;
}

.session-copy {
  margin: 0 0 1.25rem;
  color: var(--zinc-800);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.session-label {
  margin: 0;
  color: var(--zinc-500);
  font-size: 0.8rem;
}

.session-email {
  margin: 0.25rem 0 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-all;
}
