/* Phemia standalone pages (sign-in, register, invite, admin screens): the modern theme layer.
   Same system as the app and the public pages: Sora headings, Plus Jakarta Sans text and logo,
   warm paper, rounded tiles, pill buttons. Loaded after each page's own <style>; switched off
   with SITE_THEME=classic (see app.py). */

:root {
  --m-paper: #fbfaf8; --m-paper-3: #efe9e0; --m-ink: #1a1614; --m-ink-2: #4a423c; --m-muted: #8c8179;
  --m-rule: #e6e0d6; --m-rule-2: #d8cfc2; --m-tan: #9d7c62; --m-brand: #0891b2;
  --m-display: 'Sora', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --m-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body { font-family: var(--m-sans); background: var(--m-paper); color: var(--m-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h2.sect, header h1 {
  font-family: var(--m-display); font-style: normal; letter-spacing: -.03em; line-height: 1.18; text-wrap: balance;
}
h1, header h1 { font-weight: 300; }
h2, h2.sect { font-weight: 400; }
h3 { font-weight: 500; }
.summary .cell .n { font-family: var(--m-display); font-weight: 300; letter-spacing: -.04em; }
.brand-title { color: var(--m-brand); font-family: var(--m-sans); }
.card { border-radius: 22px; border: 1px solid var(--m-rule); box-shadow: 0 30px 60px -44px rgba(26, 22, 20, .45); }
button, .btn, .del-btn { border-radius: 999px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  border-radius: 12px; border-color: var(--m-rule-2); font-family: var(--m-sans);
}
code { border-radius: 6px; }

/* Sign-in, register and invite (login.html): a calm card on warm paper, like the front page. */
body.auth-page {
  background: radial-gradient(70% 60% at 85% 0%, rgba(157, 124, 98, .16), transparent 70%),
              radial-gradient(60% 50% at 0% 100%, rgba(8, 145, 178, .08), transparent 70%), var(--m-paper);
}
body.auth-page .card { padding: 40px 42px 36px; width: 430px; background: #fff; }
body.auth-page .brand { margin-bottom: 26px; }
body.auth-page .brand-title { font-size: 18px; letter-spacing: .2em; }
body.auth-page .brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--m-muted); }
body.auth-page h1 { font-size: 30px; margin: 0 0 18px 0; }
body.auth-page label { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--m-ink-2); margin-top: 16px; }
body.auth-page input { padding: 12px 14px; font-size: 15px; outline-color: var(--m-tan); background: #fff; }
body.auth-page input:focus { border-color: var(--m-tan); }
body.auth-page button { margin-top: 24px; padding: 14px; background: var(--m-ink); font-size: 15px; transition: background .2s ease, box-shadow .2s ease; }
body.auth-page button:hover { background: var(--m-tan); box-shadow: 0 12px 24px -12px rgba(26, 22, 20, .5); }
body.auth-page .error { border-radius: 12px; }
body.auth-page .alt { margin-top: 22px; }
body.auth-page .alt a { color: var(--m-ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--m-tan); padding-bottom: 1px; }
