/* Page styling lifted out of the template's <style> block so the policy
   needs no inline-style hole (#1616). Per the single style point rule every
   brand value here is a var(--token); only layout is literal. */

/* login.html */
html,body{margin:0;box-sizing:border-box;color:var(--ink);font:15px/1.5 var(--font-ui);
  min-height:100vh;display:grid;place-items:center;padding:24px}
html{background:var(--grad-auth)}
body{background:transparent}
.box{background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-card);padding:40px 40px 30px;width:min(380px,100%);
  box-sizing:border-box;text-align:center;box-shadow:var(--shadow-hero);
  position:relative;overflow:hidden;display:flex;flex-direction:column;
  animation:rise .5s ease both}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* Molten seam: the brand flame gradient as the card's top edge, with heat
   bleeding down into the surface below it - the one bold moment on the page. */
.box::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:var(--grad-flame);box-shadow:var(--glow-flame)}
/* The lockup the signed-in header carries (_brand.html) leads the card, so
   sign-in follows the deployment's branding: a client's logo with "powered by" and
   the product's name beneath, or that name alone as a wordmark when no logo
   is set. A
   deployment serves one client, so its brand is known before sign-in, and a
   mark of this page's own would be the one screen that ignores it.
   --heading is navy on this light-only page, and a logo drawn in
   fill:currentColor takes it. max-width keeps a wide logo inside the card. */
.brand{display:flex;flex-direction:column;align-items:center;gap:4px;margin:2px 0 22px}
.brand-logo{display:flex;align-items:center;max-width:100%;color:var(--heading)}
.brand .logo{height:36px;width:auto;max-width:100%;display:block}
.powered-by{font-size:11px;line-height:1;color:var(--muted);white-space:nowrap}
/* The wordmark per the brand guidelines: display weight, tight tracking,
   navy word, orange period. */
.brand-word{font-family:var(--font-head);font-weight:800;font-size:29px;
  letter-spacing:-.02em;line-height:1;color:var(--heading)}
.brand-word .dot{color:var(--lava)}
.title{font-family:var(--font-head);font-weight:700;font-size:18px;
  letter-spacing:-.01em;line-height:1.25;color:var(--ink);margin:0 0 4px}
.sub{margin:0 0 22px;font-size:13px;color:var(--muted)}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  border:1px solid var(--line-strong);border-radius:var(--r);background:var(--surface);
  color:var(--ink);padding:12px;font:inherit;font-weight:600;font-size:14px;cursor:pointer;
  margin:0 0 10px;transition:border-color .15s,box-shadow .15s,transform .15s}
.btn:last-of-type{margin-bottom:0}
.btn:hover{border-color:var(--auth);box-shadow:var(--shadow-card);transform:translateY(-1px)}
.btn:focus-visible{outline:2px solid var(--auth);outline-offset:2px}
.err{color:var(--bad);font-size:13px;min-height:20px;margin-top:12px}
.idle-note{font-size:13.5px;color:var(--muted);margin:0 0 12px}
.foot{margin:24px 0 0;font-size:11px;color:var(--muted);letter-spacing:.02em}
.spin-wrap{display:flex;flex-direction:column;align-items:center;gap:14px;padding:14px 0}
.spinner{width:34px;height:34px;border:3px solid var(--line);border-top-color:var(--lava);
  border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .spinner{animation:none}
  .box{animation:none}
  .btn{transition:none}
  .btn:hover{transform:none}
}
.loadtxt{margin:0;color:var(--muted);font-size:14px}
[hidden]{display:none!important}
