/* Shared styling for login.html / signup.html / invite.html — kept in one
   file since all three are small, single-purpose forms that should look
   like the same product. Palette matches app.html's own tokens. */
:root{
  --bg:#f3f2ee; --surface:#ffffff; --border:#dedcd5; --border-strong:#c7c4ba;
  --text:#1c2126; --text-dim:#5b6470; --text-faint:#8b93a0;
  --accent:#0f8d92; --accent-strong:#0b6d71; --accent-ink:#ffffff;
  --error:#c9302c; --error-wash:rgba(201,48,44,.1);
  --ok:#1c8a51; --ok-wash:rgba(28,138,81,.1);
  --shadow:0 1px 2px rgba(30,26,18,.06), 0 6px 20px -10px rgba(30,26,18,.14);
  --radius:10px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#10141a; --surface:#171d25; --border:#2a323d; --border-strong:#394453;
    --text:#e7ecf1; --text-dim:#9aa6b3; --text-faint:#69747f;
    --accent:#3ad6d1; --accent-strong:#5fe6e1; --accent-ink:#08201f;
    --error:#ff6b66; --error-wash:rgba(255,107,102,.13);
    --ok:#3fc37a; --ok-wash:rgba(63,195,122,.13);
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 28px -12px rgba(0,0,0,.5);
  }
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg); color:var(--text); min-height:100vh;
  display:flex; align-items:center; justify-content:center; padding:24px;
  font-family:"IBM Plex Sans",system-ui,sans-serif;
}
.card{
  width:100%; max-width:400px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:32px 28px;
}
.brand{ display:flex; align-items:baseline; gap:8px; margin-bottom:4px; }
.brand .mark{
  font-family:"Barlow Condensed",sans-serif; font-weight:700; font-size:26px;
  letter-spacing:.02em; color:var(--text);
}
.brand .mark em{ color:var(--accent); font-style:normal; }
h1{ font-family:"Barlow Condensed",sans-serif; font-weight:600; font-size:17px;
    color:var(--text-dim); margin:0 0 22px; text-transform:uppercase; letter-spacing:.06em; }
p.sub{ margin:-14px 0 22px; font-size:13.5px; color:var(--text-faint); line-height:1.5; }
label{ display:block; font-size:12px; font-weight:600; color:var(--text-dim);
       text-transform:uppercase; letter-spacing:.04em; margin:16px 0 6px; }
label:first-of-type{ margin-top:0; }
input{
  width:100%; padding:10px 12px; border:1px solid var(--border-strong); border-radius:7px;
  background:var(--bg); color:var(--text); font-size:15px; font-family:inherit;
}
input:focus{ outline:2px solid var(--accent); outline-offset:1px; }
.hint{ margin-top:5px; font-size:12px; color:var(--text-faint); }
button.primary{
  width:100%; margin-top:22px; padding:11px; border:none; border-radius:7px;
  background:var(--accent); color:var(--accent-ink); font-size:15px; font-weight:600;
  cursor:pointer; font-family:inherit;
}
button.primary:hover{ background:var(--accent-strong); }
button.primary:disabled{ opacity:.55; cursor:default; }
.error{
  display:none; margin-top:16px; padding:10px 12px; border-radius:7px;
  background:var(--error-wash); color:var(--error); font-size:13.5px; line-height:1.4;
}
.error.show{ display:block; }
.notice{
  display:none; margin-top:16px; padding:10px 12px; border-radius:7px;
  background:var(--ok-wash); color:var(--ok); font-size:13.5px; line-height:1.4;
}
.notice.show{ display:block; }
.foot{ margin-top:22px; text-align:center; font-size:13.5px; color:var(--text-faint); }
.foot a{ color:var(--accent); text-decoration:none; font-weight:600; }
.foot a:hover{ text-decoration:underline; }
.spinner-text{ text-align:center; color:var(--text-faint); font-size:14px; padding:8px 0; }
