@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Variable.woff2') format('woff2-variations');
  font-weight: 400 700;
}

@font-face {
  font-family: 'Mazzard Soft M';
  src: url('/fonts/MazzardSoftM-Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 350;
  font-display: swap;
}

* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  font-family: 'DM Sans', sans-serif;
  background: #020405;
  color: #f6f7f9;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  padding: 48px 22px;
  background:
    radial-gradient(circle at 68% 20%, rgba(76, 169, 183, .28), transparent 38%),
    radial-gradient(circle at 18% 74%, rgba(27, 105, 116, .32), transparent 42%),
    #020405;
}

.abyss-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .74;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  padding: 46px 44px 42px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(3, 5, 6, .92);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, .72),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px);
}

.brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 38px; text-align: center; }
.brand img { width: 52px; height: 52px; }
.wordmark { font: 350 18px/1.1 'Mazzard Soft M', sans-serif; letter-spacing: .64em; margin-right: -.64em; }
.eyebrow { color: #8ca7ff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(34px, 8vw, 44px);
  font-weight: 500;
  line-height: 1.06;
  margin: 12px 0 14px;
  letter-spacing: -.055em;
  background: linear-gradient(180deg, #fff 0%, #f3f3f1 48%, #96979b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
p { color: #a7adb8; line-height: 1.55; }
.legal { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 18px; font-size: 14px; color: #c6cad1; }
.legal input { margin-top: 4px; }
.legal.analytics-consent { margin-top: -4px; }
.legal strong { color: #f6f7f9; }
.legal a, .restart a, .auth-switch a { color: #dce4ff; }
.auth-switch { margin: 24px 0 0; text-align: center; font-size: 13px; }
.actions, .email-form { display: grid; gap: 10px; }
.button { appearance: none; border: 0; border-radius: 10px; background: #fff; color: #090b0f; padding: 13px 16px; font: 650 15px 'DM Sans'; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.button svg { width: 18px; height: 18px; flex: none; }
.button:hover { background: #edf0f5; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: 12px; margin: 19px 0; color: #767d89; font-size: 12px; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: #252a33; }
.field { width: 100%; border: 1px solid #303641; border-radius: 10px; background: #11151c; color: #f7f8fa; padding: 13px 14px; font: 15px 'DM Sans'; outline: none; }
.field:focus { border-color: #7894ef; }
.email-choice, .email-submit { background: #35cdbc; }
.email-choice { width: 100%; }
.email-choice:hover, .email-submit:hover { background: #4ed9c9; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.turnstile-wrap { min-height: 65px; margin-top: 16px; }
.security-note { display: flex; align-items: center; gap: 8px; color: #828995; font-size: 12px; margin-top: 8px; }
.security-note svg { width: 14px; height: 14px; color: #8ca7ff; }
.status { min-height: 24px; margin-top: 18px; color: #a7adb8; font-size: 14px; }
.error { color: #ff9f9f; }
.success { color: #86e8b0; }
.detail { font-size: 13px; }
.callback-shell { text-align: center; }
.callback-shell .status, .callback-shell .detail { overflow-wrap: anywhere; }
.restart .button, [data-open-axis] { margin-top: 20px; color: #090b0f; text-decoration: none; }
.hidden { display: none; }
.new-account-analytics { text-align: left; }
.new-account-analytics .button { width: 100%; }
.invite-note { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 7px 12px; border: 1px solid rgba(53, 205, 188, .38); border-radius: 999px; background: rgba(53, 205, 188, .1); color: #8ff0e4; font-size: 13px; font-weight: 600; }
.invite-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #35cdbc; box-shadow: 0 0 10px rgba(53, 205, 188, .7); }
.invite-note[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .abyss-background { display: none; }
}

@media (max-width: 620px) {
  body { place-items: start center; padding: 22px 12px; }
  .shell { padding: 32px 24px 30px; border-radius: 18px; }
  .brand { margin-bottom: 30px; }
  .brand img { width: 46px; height: 46px; }
  .wordmark { font-size: 15px; }
  .code-row { grid-template-columns: 1fr; }
  .button { min-height: 48px; }
  /* Short status cards (Cloud open, setting up, callbacks) sit centred with room above and below instead of pinned to the top. */
  body:has(.callback-shell) { min-height: 100svh; place-items: center; padding: 48px 16px; }
  .callback-shell { padding: 48px 26px 44px; }
  .callback-shell .brand { margin-bottom: 34px; }
}
