/* InterVarsity brand styling — Brand Book v2.1 palette + Avenir stack + divot.
   Missional Blue = structure/headings; Revival Orange = CTAs/energy.
   (Official logo lockup + Tonia sign-off are the final approved-for-distribution step.) */
:root {
  --blue: #006880;     /* Missional Blue (brand) — structure, header, headings */
  --blue-d: #004750;   /* Missional Blue shade */
  --orange: #E76127;   /* Revival Orange — CTAs, energy */
  --orange-d: #DC4128; /* Revival Orange shade */
  --ink: #333333;      /* Text Gray — body */
  --muted: #6b7280;
  --line: #E5E5E5;
  --bg: #f6f9fa;
  --card: #ffffff;
  --gold: #FFC60B;     /* Fiya Gold (secondary, <=25%) */
  /* back-compat aliases so existing var(--teal*) usages map to brand blue */
  --teal: #006880; --teal-d: #004750;
}
* { box-sizing: border-box; }
body {
  font-family: 'Avenir Next', Avenir, 'Century Gothic', 'Lucida Sans', Tahoma, sans-serif;
  color: var(--ink); background: var(--bg); margin: 0; line-height: 1.45;
  min-height: 100vh; padding-bottom: 28px; /* room for the divot */
}
/* the divot — signature IV element, flat Revival Orange along the bottom */
body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 12px;
  background: var(--orange); z-index: 50;
}
header.bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue); color: #fff; padding: 12px 20px;
}
header.bar h1 { font-size: 16px; margin: 0; font-weight: 600; letter-spacing: .2px; }
header.bar h1 .wm { font-weight: 800; }
header.bar h1 .sub { font-weight: 400; opacity: .92; }
header.bar .who { font-size: 13px; opacity: .9; }
header.bar a, header.bar button {
  color: #fff; background: rgba(255,255,255,.16); border: 0; border-radius: 6px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; text-decoration: none; margin-left: 8px;
}
main { max-width: 900px; margin: 0 auto; padding: 24px 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 8px; font-size: 15px; color: var(--blue); }
.muted { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; background: #fff3ec; color: var(--orange-d); border: 1px solid #fad6c4;
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }

/* login */
.login-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; width: 360px; box-shadow: 0 4px 20px rgba(0,0,0,.06); border-top: 5px solid var(--orange); }
.login-box .wm { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .5px; text-transform: uppercase; }
.login-box h1 { font-size: 18px; color: var(--blue); margin: 2px 0 4px; }
.login-box p { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.login-box label { display: block; font-size: 13px; margin: 12px 0 4px; font-weight: 600; }
.login-box input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.login-box button { width: 100%; margin-top: 20px; padding: 11px; background: var(--orange); color: #fff;
  border: 0; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
