/*
 * LOGIN PAGE — Gradient Lights (Founder OS build, step 1, 18 Nov 2026). Used only by login.php.
 * Warm black ground, the dot mountain with the gold North Star, cream for text and the main button,
 * gold only for the star, the tester mark and messages that need a second look.
 * Buttons are pills, like the hub's. On the email and code steps the mountain steps back (smaller),
 * so the form sits high and the phone keyboard never covers it.
 */
:root{
  --ground:#0B0A09; --cream:#F3EFE6; --gold:#E9B85C; --gold-2:#F6DCA0; --ink:#14110A;
  --dim:rgba(243,239,230,.68); --faint:rgba(243,239,230,.48); --ghost:rgba(243,239,230,.3);
  --line:rgba(243,239,230,.15); --line-2:rgba(243,239,230,.28); --field:rgba(9,9,8,.74);
  --f:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif; --m:'Geist Mono',ui-monospace,Menlo,monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box}
html{background:var(--ground);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;color:var(--cream);font-family:var(--f);-webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;align-items:center;
  padding:calc(env(safe-area-inset-top,0px) + 18px) 22px calc(env(safe-area-inset-bottom,0px) + 18px);
  background:
    radial-gradient(110% 55% at 50% 10%,rgba(233,184,92,.11),rgba(233,184,92,0) 62%),
    radial-gradient(100% 45% at 50% 108%,rgba(58,50,38,.55),rgba(11,10,9,0) 72%),
    var(--ground)}
::selection{background:rgba(233,184,92,.3)}
a{color:inherit}
:focus-visible{outline:2px solid var(--gold-2);outline-offset:3px;border-radius:12px}

/* the quiet sky */
.sky{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;opacity:.6;z-index:0}
.sky .tw{animation:tw 6s ease-in-out infinite}
@keyframes tw{0%,100%{opacity:.12}50%{opacity:.7}}

.lg{position:relative;z-index:1;flex:1;width:100%;max-width:392px;display:flex;flex-direction:column;justify-content:center;text-align:center}
.head{display:flex;flex-direction:column;align-items:center}

/* the mountain and its star */
.art{position:relative;width:min(84vw,330px);aspect-ratio:358/312;margin:0 auto -12px;
  transition:width .55s var(--ease),margin .55s var(--ease)}
.art img{display:block;width:100%;height:100%;animation:rise 1.4s var(--ease) both}
.glow{position:absolute;left:67.35%;top:17.34%;width:24%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(246,220,160,.55),rgba(233,184,92,.12) 45%,rgba(233,184,92,0) 70%);
  mix-blend-mode:screen;animation:breathe 5.5s ease-in-out 1.2s infinite both}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes breathe{0%,100%{opacity:.35;transform:translate(-50%,-50%) scale(.88)}50%{opacity:.85;transform:translate(-50%,-50%) scale(1.08)}}
body[data-step="email"] .art,body[data-step="code"] .art,body[data-step="notlist"] .art,
body[data-step="closed"] .art,body[data-step="setup"] .art,body[data-step="error"] .art,body[data-step="in"] .art{width:min(42vw,150px);margin-bottom:8px}

.tester{display:inline-flex;align-items:center;gap:8px;margin:0 auto 18px;padding:7px 12px 6px;border-radius:999px;
  border:1px solid rgba(246,220,160,.36);background:rgba(233,184,92,.07);
  font:500 10.5px/1 var(--m);letter-spacing:.18em;text-transform:uppercase;color:var(--gold-2)}
.tester::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px var(--gold)}

/* panels: one calm screen at a time */
.pn{animation:pnin .45s var(--ease) both}
.pn[hidden]{display:none}
@keyframes pnin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ttl{margin:0;font-weight:300;font-size:clamp(36px,10vw,46px);letter-spacing:-.028em;line-height:1.02;outline:none}
/* "Northlock 90" in the landing page's heading font (Averia Serif Libre), 19 Nov 2026. The file is kept here (fonts/),
   so the title never waits on Google Fonts. */
@font-face{font-family:'Averia Serif Libre';font-weight:400;font-display:swap;src:url(fonts/averia-serif-libre-latin-400-normal.woff2) format('woff2')}
.ttl.first{font-family:'Averia Serif Libre',Georgia,serif;font-weight:400;letter-spacing:-.01em;font-size:clamp(40px,11vw,52px)}
.ttl.sm{font-size:clamp(27px,7.4vw,32px);letter-spacing:-.018em;line-height:1.12;text-wrap:balance}
.ttl.first{margin-bottom:30px}

/* the brand, top left: the NorthBound star, the name, and the line under it */
.brand{position:relative;z-index:2;align-self:stretch;text-align:left;margin:0 0 8px;animation:pnin .6s var(--ease) both}
.brand-in{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:var(--cream);border-radius:8px}
.bmark{width:22px;height:20px;flex:none}
.bname{font:500 11px/1 var(--m);letter-spacing:.16em;text-transform:uppercase}
.bline{margin:6px 0 0 31px;color:var(--faint);font-size:12.5px;line-height:1.3;font-weight:300}
/* the official Project NorthBound logo in the corner (from the website), the line under it aligned to its left edge */
.blogo{display:block;width:150px;height:auto}
.brand .bline{margin-left:0;margin-top:9px}
@media (min-width:760px){
  .brand{position:fixed;top:calc(env(safe-area-inset-top,0px) + 28px);left:32px;margin:0}
  .bmark{width:26px;height:23px}
  .bname{font-size:12px}
  .bline{margin-left:35px;font-size:13.5px}
  .blogo{width:170px}
  .brand .bline{margin-left:0}
}
.tnote{margin:-14px auto 24px;max-width:31ch;color:var(--faint);font-size:14px;line-height:1.55}
.sub{margin:12px auto 26px;max-width:33ch;color:var(--dim);font-size:15.5px;line-height:1.55;font-weight:300;text-wrap:pretty}
.sub b{color:var(--cream);font-weight:500;overflow-wrap:anywhere}
.hint{margin:20px auto 0;max-width:32ch;color:var(--faint);font-size:13.5px;line-height:1.55}
.note,.msg{margin:0 auto 14px;max-width:34ch;font-size:14.5px;line-height:1.45}
.note{color:var(--dim)}
.msg{color:var(--gold-2)}
.note:empty,.msg:empty{display:none}
.foot{margin:30px 0 0;font:400 10.5px/1.6 var(--m);letter-spacing:.14em;text-transform:uppercase;color:var(--ghost)}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* buttons: pills, like the hub */
.stack{display:flex;flex-direction:column;gap:12px}
.stack form{margin:0}
.btn{appearance:none;-webkit-appearance:none;position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  min-height:56px;padding:0 24px;border-radius:999px;border:1px solid transparent;cursor:pointer;text-decoration:none;
  font:500 16px/1 var(--f);letter-spacing:-.005em;-webkit-tap-highlight-color:transparent;
  transition:background .2s,border-color .2s,box-shadow .2s,transform .12s,opacity .2s}
.btn:active{transform:scale(.985)}
.btn[hidden]{display:none}
.cream{background:var(--cream);color:var(--ink);box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 16px 36px -18px rgba(243,239,230,.55)}
.cream:hover{background:#fff}
.soft{background:rgba(243,239,230,.06);color:var(--cream);border-color:var(--line)}
.soft:hover{background:rgba(243,239,230,.1);border-color:var(--line-2)}
.btn .g{width:19px;height:19px;flex:none}
.btn.mail{display:inline-flex;width:auto;min-height:46px;margin:16px auto 0;padding:0 22px;font-size:15px}
.btn.mail svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.7}
/* busy: the label steps aside for a small turning ring */
.btn[aria-busy="true"]{pointer-events:none}
.btn[aria-busy="true"] > *{opacity:0}
.btn[aria-busy="true"]::after{content:'';position:absolute;width:20px;height:20px;border-radius:50%;border:2px solid currentColor;
  border-right-color:transparent;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.links{margin:16px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:2px 18px}
.link{appearance:none;background:none;border:0;padding:10px 4px;cursor:pointer;color:var(--dim);font:400 14.5px/1.2 var(--f);
  text-decoration:underline;text-decoration-color:rgba(243,239,230,.28);text-underline-offset:4px;-webkit-tap-highlight-color:transparent}
.link:hover{color:var(--cream);text-decoration-color:var(--cream)}
.link:disabled{cursor:default;color:var(--faint);text-decoration:none}
.link.inline{padding:0;font-size:inherit}
.link.quiet{padding:0;font-size:inherit;color:var(--dim)}

/* fields */
form{margin:0}
.lbl{display:block;text-align:left;margin:0 0 9px 6px;font:500 11px/1 var(--m);letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.in{display:block;width:100%;min-height:58px;margin:0 0 14px;padding:0 20px;border-radius:18px;border:1px solid var(--line);
  background:var(--field);color:var(--cream);font:400 17px/1.2 var(--f);caret-color:var(--gold-2);
  transition:border-color .2s,box-shadow .2s}
.in::placeholder{color:rgba(243,239,230,.28)}
.in:focus{outline:none;border-color:rgba(246,220,160,.55);box-shadow:0 0 0 4px rgba(233,184,92,.13)}
.in[aria-invalid="true"]{border-color:rgba(246,220,160,.75)}

/* "Did you mean …?" */
.fix{margin:-4px 0 14px;padding:14px 14px 12px;border-radius:16px;border:1px solid rgba(246,220,160,.28);background:rgba(233,184,92,.06)}
.fix[hidden]{display:none}
.fix p{margin:0 0 10px;color:var(--dim);font-size:14.5px}
.fix b{color:var(--cream);font-weight:500;overflow-wrap:anywhere}
.fix-acts{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.chip{appearance:none;border:1px solid var(--line-2);background:rgba(243,239,230,.08);color:var(--cream);border-radius:999px;
  padding:9px 14px;font:500 13.5px/1 var(--f);cursor:pointer}
.chip:hover{background:rgba(243,239,230,.14)}
.chip.quiet{background:none;border-color:transparent;color:var(--dim);text-decoration:underline;text-underline-offset:4px}

/* the code: six cells over one real input (so paste, autofill and screen readers all work) */
.otp{position:relative;margin:0 0 14px}
.otp .cells{display:none}
.otp input.in{margin:0;text-align:center;font:500 24px/1 var(--m);letter-spacing:.4em;padding-left:.4em}
.js .otp .cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.js .otp input.in{position:absolute;inset:0;z-index:2;width:100%;height:100%;min-height:0;opacity:1;border:0;background:transparent;box-shadow:none;
  color:transparent;caret-color:transparent;-webkit-text-fill-color:transparent;font-size:16px;letter-spacing:0;padding:0;cursor:text}
.js .otp input.in::selection{background:transparent}
.js .otp input.in::placeholder{color:transparent}
.cells i{position:relative;display:flex;align-items:center;justify-content:center;height:58px;border-radius:16px;border:1px solid var(--line);
  background:var(--field);font:500 26px/1 var(--m);font-style:normal;color:var(--cream);
  transition:border-color .16s,box-shadow .16s,transform .16s,background .16s}
.cells i:nth-child(4){margin-left:6px}
.cells i:nth-child(3){margin-right:6px}
.cells i.full{border-color:var(--line-2)}
.cells i.on{border-color:rgba(246,220,160,.6);box-shadow:0 0 0 4px rgba(233,184,92,.13)}
.cells i.on:empty::after{content:'';width:2px;height:26px;border-radius:2px;background:var(--gold-2);animation:blink 1.05s steps(1) infinite}
.cells.wait i{animation:pulse 1s ease-in-out infinite}
.cells.wait i:nth-child(2){animation-delay:.08s}.cells.wait i:nth-child(3){animation-delay:.16s}.cells.wait i:nth-child(4){animation-delay:.24s}
.cells.wait i:nth-child(5){animation-delay:.32s}.cells.wait i:nth-child(6){animation-delay:.4s}
.cells.ok i{border-color:rgba(246,220,160,.75);color:var(--gold-2);background:rgba(233,184,92,.08)}
.cells.bad{animation:shake .42s cubic-bezier(.36,.07,.19,.97)}
.cells.bad i{border-color:rgba(246,220,160,.8)}
@keyframes blink{50%{opacity:0}}
@keyframes pulse{50%{border-color:rgba(246,220,160,.5)}}
@keyframes shake{20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}

/* the home-screen app on an iPhone: Google sign-in would leave the app, so email only */
.ios-app [data-google]{display:none}

@media (min-width:720px){
  .lg{max-width:400px}
  .hint{max-width:40ch}
  .art{width:360px}
  body[data-step="email"] .art,body[data-step="code"] .art,body[data-step="notlist"] .art,
  body[data-step="closed"] .art,body[data-step="setup"] .art,body[data-step="error"] .art,body[data-step="in"] .art{width:170px}
}
@media (max-height:700px){
  .art{width:min(66vw,250px)}
  .ttl.first{margin-bottom:24px}
  body[data-step="email"] .art,body[data-step="code"] .art{width:110px;margin-bottom:4px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .glow{opacity:.6}
}
