:root {
  color: #17211b;
  background: #f4f6f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 5vw;
  background: #153f2c;
  color: #fff;
}

.brand { display: inline-flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #d8f04e; color: #153f2c; font-size: 13px; }
main { width: min(1120px, 90vw); margin: 0 auto; }
.login-shell { display: grid; min-height: calc(100vh - 72px); place-items: center; padding: 48px 0; }
.login-card { width: min(100%, 440px); padding: 40px; border: 1px solid #dbe2da; border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(26, 57, 40, .08); }
.eyebrow { margin: 0 0 8px; color: #527060; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
h2 { margin: 0 0 18px; font-size: 22px; }
h3 { margin: 0 0 14px; font-size: 20px; }
.intro { margin: 14px 0 28px; color: #5e6b64; }
form { display: grid; gap: 10px; }
label { margin-top: 8px; font-size: 14px; font-weight: 700; }
input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aebbb3; border-radius: 9px; background: #fff; color: #17211b; }
input:focus { outline: 3px solid rgba(50, 111, 76, .24); border-color: #326f4c; }
button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 9px; background: #153f2c; color: #fff; font-weight: 750; }
button:focus-visible { outline: 3px solid #d8f04e; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .6; }
form button { margin-top: 12px; }
.secondary { border: 1px solid #153f2c; background: transparent; color: #153f2c; }
.message { padding: 12px 14px; border-radius: 9px; }
.error { background: #fce8e6; color: #8b2118; }
.dashboard { padding: 56px 0 80px; }
.dashboard-heading { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 52px; }
.organizations { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.organization-card, .empty-state { padding: 26px; border: 1px solid #dbe2da; border-radius: 14px; background: #fff; }
.role-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.role-list li { padding: 6px 10px; border-radius: 999px; background: #e6eee9; color: #28563d; font-size: 13px; font-weight: 750; }
.empty-state { margin-top: 38px; border-style: dashed; }
.empty-state p:last-child { margin-bottom: 0; color: #5e6b64; }

@media (max-width: 620px) {
  .site-header { padding: 0 20px; }
  main { width: min(100% - 32px, 1120px); }
  .login-card { padding: 28px 22px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
}
