/* Sign-in page for Founder OS (nanofox.tech). Standalone: the dashboard's styles.css isn't loaded here.
   Nanofox orange glow drifting behind a glass card; light and dark follow the phone until you tap the sun/moon. */
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url(/fonts/mona-sans-latin-standard-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url(/fonts/mona-sans-latin-ext-standard-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light;
  --brand: #ff5808;            /* Nanofox orange (from the fox mark) */
  --brand-deep: #c2410c;       /* the same orange dark enough for text on light */
  --bg: #f7f4f1; --ink: #14181d; --ink-2: #4a4f57; --muted: #6b7079;
  --card: rgba(255, 255, 255, .72); --card-line: rgba(20, 24, 29, .08); --field: rgba(255, 255, 255, .9); --field-line: #d9d4ce;
  --go: #14181d; --go-ink: #ffffff; --ring: rgba(255, 88, 8, .35);
  --b1: #ff7a2f; --b2: #ffb185; --b3: #9fb5d1; --sky-op: .55;
  --bad: #b4332a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-deep: #ff7a2f;
  --bg: #08090b; --ink: #f2f1ef; --ink-2: #b9b7b3; --muted: #8d8b88;
  --card: rgba(18, 19, 22, .62); --card-line: rgba(255, 255, 255, .08); --field: rgba(10, 11, 13, .7); --field-line: #2c2d31;
  --go: #ff5808; --go-ink: #170802; --ring: rgba(255, 110, 40, .4);
  --b1: #ff5808; --b2: #8a2a00; --b3: #1f3a5c; --sky-op: .5;
  --bad: #f87171;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lx {
  min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
button, input { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

/* ── the drifting light ── */
.lx-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lx-sky i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--sky-op); will-change: transform; }
.lx-sky .b1 { width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax; background: radial-gradient(circle at 40% 40%, var(--b1), transparent 62%); animation: drift1 26s var(--ease) infinite alternate; }
.lx-sky .b2 { width: 54vmax; height: 54vmax; right: -20vmax; bottom: -26vmax; background: radial-gradient(circle at 50% 50%, var(--b2), transparent 60%); animation: drift2 31s var(--ease) infinite alternate; }
.lx-sky .b3 { width: 40vmax; height: 40vmax; right: 8vmax; top: -14vmax; background: radial-gradient(circle at 50% 50%, var(--b3), transparent 62%); animation: drift3 23s var(--ease) infinite alternate; opacity: calc(var(--sky-op) * .8); }
.lx-grain { position: absolute; inset: -50%; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-theme="dark"] .lx-grain { mix-blend-mode: screen; opacity: .05; }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-12vmax, -8vmax, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-10vmax, 12vmax, 0) scale(1.18); } }

/* ── top bar ── */
.lx-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(18px, env(safe-area-inset-top)) clamp(18px, 4vw, 44px) 0; animation: fade .8s var(--ease) both; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 800 17px/1 var(--sans); overflow: hidden; flex: none; }
.brand-mark.has-mark, .brand-mark.has-logo { background: #fff; box-shadow: 0 0 0 1px var(--card-line); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark.has-logo { width: auto; max-width: 130px; padding: 4px 8px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.15; }
.brand-t b { font-weight: 700; font-size: 15px; }
.brand-t small { color: var(--muted); font-size: 12px; }
.brand.with-logo .brand-t { display: none; }
.lx-top-r { display: flex; align-items: center; gap: 14px; }
.lx-clock { font: 600 12px/1 var(--sans); font-stretch: 90%; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--card-line); background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), background-color .3s; }
.theme-btn:hover { transform: rotate(-12deg); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ── hero + card ── */
.lx-main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 6vh, 72px) clamp(18px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: clamp(28px, 6vw, 96px); align-items: center; }
.lx-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font: 650 12px/1 var(--sans); font-stretch: 95%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); animation: rise .9s var(--ease) .05s both; }
.lx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--ring); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lx-title { margin: 0; font: 820 clamp(52px, 9.2vw, 132px)/.88 var(--sans); font-stretch: 76%; letter-spacing: -.035em; text-wrap: balance; }
.lx-title .w { display: inline-block; animation: word 1.1s var(--ease) both; animation-delay: calc(.12s + var(--i) * .11s); }
.lx-title .w.accent { color: var(--brand-deep); }
.lx-lede { margin: 22px 0 0; max-width: 34ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-2); animation: rise 1s var(--ease) .45s both; }
@keyframes word { from { opacity: 0; transform: translateY(.42em) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lx-card { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--card-line);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 80px -30px rgba(20, 24, 29, .35); animation: card 1s var(--ease) .3s both; }
:root[data-theme="dark"] .lx-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 90px -30px rgba(0, 0, 0, .8); }
@keyframes card { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.lx-card-h { margin: 0 0 2px; font: 760 22px/1.1 var(--sans); font-stretch: 85%; letter-spacing: -.01em; }
.lx-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lx-input { position: relative; display: block; }
.lx-input input { width: 100%; height: 52px; padding: 0 52px 0 16px; border-radius: 14px; border: 1px solid var(--field-line); background: var(--field); font-size: 17px; letter-spacing: .04em;
  transition: border-color .2s, box-shadow .2s, background-color .3s; }
.lx-input input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.lx-eye { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.lx-eye:hover { color: var(--ink); }
.lx-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.lx-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lx-eye .c, .lx-eye[aria-pressed="true"] .o { display: none; }
.lx-eye[aria-pressed="true"] .c { display: block; }
.err { margin-top: -4px; font-size: 13.5px; font-weight: 550; color: var(--bad); }
.err:empty { display: none; }
.lx-go { position: relative; height: 54px; border: 0; border-radius: 14px; background: var(--go); color: var(--go-ink); display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer; overflow: hidden; transition: transform .18s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 12px 30px -12px rgba(255, 88, 8, .55); }
.lx-go::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.lx-go:hover::before { transform: translateX(120%); }
.lx-go:hover { box-shadow: 0 16px 36px -12px rgba(255, 88, 8, .7); }
.lx-go:active { transform: scale(.985); }
.lx-go:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.lx-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.lx-go:hover svg { transform: translateX(3px); }
.lx-go:disabled { cursor: progress; }
.lx-go.busy .t::after { content: '…'; }
.lx-go.busy svg { animation: nudge .9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.lx-card.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.lx-note { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.lx-note svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── word strip along the bottom ── */
.lx-strip { position: relative; z-index: 1; overflow: hidden; padding: 16px 0 max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--card-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); animation: fade 1.2s var(--ease) .6s both; }
.lx-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.lx-track span { font: 760 13px/1 var(--sans); font-stretch: 80%; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0 26px; display: inline-flex; align-items: center; gap: 26px; }
.lx-track span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── phone ── */
@media (max-width: 860px) {
  .lx-main { grid-template-columns: 1fr; gap: 26px; align-content: center; padding-top: 22px; padding-bottom: 22px; }
  .lx-title { font-size: clamp(46px, 15vw, 84px); }
  .lx-lede { margin-top: 14px; font-size: 16px; }
  .lx-kicker { margin-bottom: 14px; }
  .lx-card { padding: 22px; border-radius: 22px; }
}
@media (max-width: 420px) { .lx-clock { display: none; } .brand-t small { display: none; } }
@media (max-height: 700px) and (max-width: 860px) { .lx-lede { display: none; } .lx-strip { display: none; } }

/* ── motion off ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lx-track { transform: none; }
}
