/* Tempfort — shared design tokens & site styles */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#0b1420; --surface:#101b29; --surface-2:#152234; --surface-3:#1b2a3f;
  --border:rgba(255,255,255,.09); --border-2:rgba(255,255,255,.14);
  --text:#eef3f8; --text-muted:#93a6bc; --text-faint:#5f7086;
  --cool:#37c9c0; --cool-strong:#2ab3ab; --cool-soft:rgba(55,201,192,.14);
  --warm:#ff9a52; --warm-strong:#ff7a34; --warm-soft:rgba(255,154,82,.15);
  --good:#3ecf8e; --good-soft:rgba(62,207,142,.15);
  --radius:16px;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{background:var(--bg);color:var(--text);font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;min-height:100vh;}
h1,h2,h3,.disp{font-family:'Unbounded',system-ui,sans-serif;letter-spacing:-0.01em;margin:0;}
p{margin:0;line-height:1.65;}
a{color:var(--cool);text-decoration:none;}
a:hover{color:var(--cool-strong);}
.wrap{max-width:1180px;margin:0 auto;padding:0 32px;}
.muted{color:var(--text-muted);}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14.5px;padding:13px 24px;border-radius:11px;border:1px solid transparent;cursor:pointer;white-space:nowrap;font-family:'Plus Jakarta Sans',sans-serif;text-decoration:none;}
.btn-primary{background:linear-gradient(135deg,var(--cool) 0%,var(--cool-strong) 100%);color:#052421;box-shadow:0 8px 24px -8px rgba(55,201,192,.55);}
.btn-warm{background:linear-gradient(135deg,var(--warm) 0%,var(--warm-strong) 100%);color:#3a1400;box-shadow:0 8px 24px -8px rgba(255,122,52,.5);}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border-2);}
.btn:disabled{opacity:.6;cursor:not-allowed;}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cool);background:var(--cool-soft);border:1px solid rgba(55,201,192,.3);padding:7px 14px;border-radius:100px;}

/* nav */
.nav{position:sticky;top:0;z-index:40;backdrop-filter:blur(10px);background:rgba(11,20,32,.82);border-bottom:1px solid var(--border);}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:76px;}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);}
.brand span{font-family:'Unbounded',sans-serif;font-size:19px;font-weight:700;}
.navlinks{display:flex;align-items:center;gap:34px;}
.navlinks a{color:var(--text-muted);font-weight:600;font-size:14.5px;}
.navlinks a.active{color:var(--text);}
.navactions{display:flex;align-items:center;gap:12px;}
/* Auth pages: a two-column split on a desktop, one column on a phone.
   These need real classes rather than inline styles because the phone is the
   primary surface — the Android app sends every user through /login. */
.auth-split{display:grid; grid-template-columns:1fr 1fr; min-height:100vh;}
.auth-aside{
  position:relative; overflow:hidden; padding:48px;
  display:flex; flex-direction:column; justify-content:space-between;
  background:linear-gradient(155deg,#0e2b29 0%,#101b29 60%,#1c1810 100%);
  border-right:1px solid var(--border);
}
.auth-main{display:flex; align-items:center; justify-content:center; padding:48px;}

@media (max-width:860px){
  .navlinks{display:none;}

  /* One column, and the decorative panel shrinks to just the brand mark so
     the form is what you see when the page opens on a phone. The explicit
     rows matter: without them the two panels split the viewport evenly and
     the header sits on a block of empty gradient. */
  .auth-split{grid-template-columns:1fr; grid-template-rows:auto 1fr; min-height:100dvh;}
  .auth-aside{
    padding:22px 20px; border-right:none; border-bottom:1px solid var(--border);
    justify-content:flex-start; gap:14px;
  }
  .auth-aside h1{font-size:22px !important;}
  .auth-aside p{font-size:13.5px !important; margin-top:8px !important;}
  .auth-aside > p:last-child{display:none;}      /* the copyright line */
  .auth-main{padding:28px 20px; align-items:flex-start;}

  /* Signed-in app shell: the fixed 240px sidebar becomes a top bar. */
  .layout{grid-template-columns:1fr !important;}
  .sidebar{
    border-right:none !important; border-bottom:1px solid var(--border);
    padding:16px 18px !important; flex-direction:row !important;
    align-items:center; gap:12px; flex-wrap:wrap;
  }
  .sidebar > div[style*="flex-direction:column"]{flex-direction:row !important; flex-wrap:wrap;}
  .sidebar > div[style*="margin-top:auto"]{margin-top:0 !important; margin-left:auto;}
  .sidebar .btn{width:auto !important;}
  .layout > div:last-child{padding:22px 18px !important;}
}

/* Narrow phones: collapse every remaining fixed multi-column grid. Written as
   one rule keyed on the inline styles the pages already use, so a new section
   inherits the behaviour instead of needing its own breakpoint. */
@media (max-width:720px){
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1.05fr .95fr"],
  [style*="grid-template-columns:.85fr 1.15fr"],
  [style*="grid-template-columns:1.3fr 1fr 1fr"]{
    grid-template-columns:1fr !important;
    gap:20px !important;
  }
  .wrap{padding-left:18px !important; padding-right:18px !important;}
  h1{font-size:30px !important;}

  /* Device pairing: two inputs side by side squeeze the code field until its
     placeholder truncates. One per row on a phone. */
  .pair-form > div{flex:1 1 100% !important; min-width:0 !important;}
  .pair-form button{width:100%;}
}

/* forms */
label{font-size:13px;font-weight:700;color:var(--text-muted);display:block;margin-bottom:7px;}
input{width:100%;background:var(--surface-3);border:1px solid var(--border-2);border-radius:11px;padding:13px 14px;color:var(--text);font-size:14.5px;font-family:inherit;}
input::placeholder{color:#5f7086;}
input:focus{outline:2px solid var(--cool);outline-offset:1px;}
.field{margin-bottom:16px;}
.form-error{background:rgba(255,90,90,.12);border:1px solid rgba(255,90,90,.35);color:#ffb3b3;font-size:13.5px;padding:11px 14px;border-radius:10px;margin-bottom:16px;display:none;}
.form-error.show{display:block;}

footer.site-footer{border-top:1px solid var(--border);}
