/* Fornax web — sign up, sign in, password reset and the welcome steps. The site's look: near-black, one dithered dawn
   at the bottom (the app's own Bayer dither), a glass card, white pill buttons, Inter. */
:root {
  --bg: #05061a; --text: #f1f2fa; --muted: #9a9fbf; --faint: #636889; --line: rgba(255, 255, 255, .1);
  --ink: #3049ff; --ink-hi: #5268ff; --ink-text: #8c94f5; --ok: #6fd08c; --bad: #ff8a8a;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
#dawn { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; image-rendering: pixelated; pointer-events: none; z-index: 0;
  -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%); opacity: 0; transition: opacity 1.4s ease; }
#dawn.on { opacity: 1; }

.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 56px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.logo img { width: 26px; height: 26px; border-radius: 7px; }
.top .alt { font-size: 14px; color: var(--muted); }
.top .alt a { color: #fff; text-decoration: none; margin-left: 6px; }

main { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; padding: 24px 20px 120px; }
.card { width: min(420px, 100%); padding: 30px 28px 26px; border-radius: 24px; background: rgba(9, 11, 38, .66);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11), inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 90px -40px rgba(0, 0, 0, .9);
  animation: arrive .7s var(--ease) both; }
.card.wide { width: min(640px, 100%); }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
h1 { margin: 0; font: 600 30px/1.1 var(--display); letter-spacing: -.035em; }
h1 + p { margin: 8px 0 22px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--sans); text-decoration: none; transition: scale .5s cubic-bezier(.2, 1.4, .4, 1), box-shadow .25s ease, opacity .2s ease; }
.btn:active { scale: .97; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.white { color: #0b0c18; background: linear-gradient(180deg, #fff, #ecedf3); box-shadow: inset 0 -1px 0 rgba(10, 12, 40, .14), 0 0 0 1px rgba(255, 255, 255, .22); }
.btn.white:hover { box-shadow: inset 0 -1px 0 rgba(10, 12, 40, .14), 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 30px -12px rgba(140, 150, 255, .6); }
.btn.ghost { color: #eceef8; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.btn.blue { color: #fff; background: linear-gradient(180deg, #6377ff, #3a52ff 50%, #2b42ee); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(26, 38, 186, .9), 0 10px 26px -12px rgba(64, 86, 255, .8); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.small { width: auto; height: 36px; padding: 0 16px; font-size: 14px; }

.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
label { display: block; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
input[type=email], input[type=password], input[type=text] { display: block; width: 100%; height: 46px; margin-top: 6px; padding: 0 14px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .05); color: #fff; font: 400 15px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); outline: none; transition: box-shadow .2s ease; }
input:focus { box-shadow: inset 0 0 0 1px rgba(140, 150, 245, .8), 0 0 0 4px rgba(82, 104, 255, .2); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 16px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--ink-text); font: inherit; cursor: pointer; text-decoration: none; }
.link:hover { color: #fff; }
.msg { min-height: 20px; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
.fine { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--faint); }
.sent { text-align: center; }
.sent .ico { width: 54px; height: 54px; margin: 2px auto 14px; border-radius: 16px; display: grid; place-items: center; background: rgba(82, 104, 255, .16); color: #b4bdff; }
.sent .ico svg { width: 26px; height: 26px; }

/* the welcome steps */
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 500 13px/1 var(--mono); color: #b4bdff; background: rgba(82, 104, 255, .16); }
.step.done .n { color: #0b0c18; background: var(--ok); }
.step b { display: block; font-size: 15.5px; font-weight: 500; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.step ol { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.step ol li { margin: 3px 0; }
.step code { font: 500 12.5px/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #dfe3ff; }
.step .act { display: flex; gap: 8px; align-self: center; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ok); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.wait { color: var(--faint); }
.done-row { display: flex; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) { .step { grid-template-columns: 34px 1fr; } .step .act { grid-column: 2; } }
