/* Lifted out of public/index.html unchanged.
 *
 * It sat in an inline <style> for the same reason the JavaScript sat in an
 * inline <script>: there was no build step and nothing forced the issue. The
 * cost was the same too — style-src had to keep 'unsafe-inline', so an
 * injected <style> block would run on a page that shows the contents of
 * other people's meetings. */

:root {
  --bg:#0d1117; --surface:#1a2332; --surface-2:#1f2a3a; --hover:#22304a;
  --border:#26364a; --border-strong:#6b7b8d; --border-input:#4a9ba8;
  --fg:#ffffff; --fg-2:#c8d4dc; --fg-3:#8b9bad; --label:#c8d4dc;  /* see app.html: #6b7b8d was under WCAG AA on every surface */
  --accent:#7ec8c8; --accent-fill:#4a9ba8; --accent-fill-fg:#ffffff; --accent-soft:rgba(74,155,168,.20); --ring:#7ec8c8;
  --success:#2eb89a; --warn:#e0a63c; --danger:#e08585;
  --shadow:0 2px 6px 0 rgba(0,0,0,.45);
  --font-brand:'Calibri Light',Calibri,Arial,sans-serif;
  --font-body:Calibri,Arial,sans-serif;
  --radius:8px; --radius-sm:6px;

  /* Kept in step with app.html's scale — the two pages are seen one after
     the other, so a different body size on each is visible as a jump. */
  --fs-scale:1;
  --fs-micro:calc(12.5px * var(--fs-scale));
  --fs-sm:calc(14px * var(--fs-scale));
  --fs-base:calc(15.5px * var(--fs-scale));
  --fs-lg:calc(18px * var(--fs-scale));
  --fs-h1:calc(28px * var(--fs-scale));

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:#ffffff; --surface:#f4f6f8; --surface-2:#eaeef2; --hover:#eef2f5;
  /* --border-strong draws the edge of checkboxes, radios, inputs and
     buttons, so it is a control boundary and 3:1 is the bar. #c7ced6 was
     1.59:1 on white - the outline of an unchecked box was barely there.
     Now 3.66 / 3.37 / 3.13. */
  --border:#dde3e9; --border-strong:#79879a; --border-input:#4a9ba8;
  --fg:#0d1117; --fg-2:#445266; --fg-3:#5a6878; --label:#445266;
  --accent:#276a74; --accent-fill:#4a9ba8; --accent-fill-fg:#ffffff; --accent-soft:rgba(74,155,168,.12); --ring:#2f7f8a;
  --success:#187059; --warn:#8f5e04; --danger:#b3271b;
  --shadow:0 2px 4px 0 rgba(13,17,23,.10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background: var(--bg);
  color: var(--fg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.signin-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100dvh;
  min-height: 100dvh;
}
/* Hidden until /api/session says this visitor is not already signed in.
   Otherwise a signed-in user sees the whole hero before being forwarded to
   the dashboard. A watchdog reveals it regardless if the check hangs. */
html:not([data-booted]) .signin-shell { visibility: hidden; }
@media (max-width: 860px) {
  .signin-shell { grid-template-columns: 1fr; }
  .signin-art { display: none; }
}

.signin-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.signin-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.signin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  height: 34px; width: auto; flex: 0 0 auto;
  display: flex; align-items: center;
}
.brand-mark svg { height: 100%; width: auto; display: block; }
.signin-wordmark { font-family: var(--font-brand); font-size: var(--fs-lg); font-weight: 600; }
.signin-wordmark .accent { color: var(--accent); }

.signin-card h1 {
  font-family: var(--font-brand); font-size: var(--fs-h1); font-weight: 600; line-height: 1.3; margin: 0;
}
.signin-card p.signin-desc {
  font-size: var(--fs-base); line-height: 1.6; color: var(--fg-2); margin: 0;
}

.btn-ms-signin {
  width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent-fill); color: #fff; border: 0; border-radius: var(--radius-sm);
  font-size: var(--fs-base); font-weight: 700; cursor: pointer; transition: filter .18s ease;
}
.btn-ms-signin:hover { filter: brightness(1.08); }
.btn-ms-signin:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn-ms-signin svg { width: 15px; height: 15px; }
.btn-ms-signin:disabled { cursor: default; opacity: .8; }
.btn-spinner {
  width: 14px; height: 14px; flex: 0 0 auto;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: ntp-signin-spin .7s linear infinite;
}
@keyframes ntp-signin-spin { to { transform: rotate(360deg); } }

.signin-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: var(--fs-micro); line-height: 1.55; color: var(--fg-3);
}
.signin-note svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 2px; color: var(--success); }

/* Why the user is looking at this page rather than the dashboard. Hidden
   until there is something to say — see NOTICES in the script below. */
.signin-notice {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-2);
}
/* A class-level `display` outranks the user-agent's [hidden] rule, so
   without this the empty notice renders as a 24px gap above the heading. */
.signin-notice[hidden] { display: none; }
.signin-notice svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; color: var(--warn); }
.signin-notice.is-error { border-color: var(--danger); }
.signin-notice.is-error svg { color: var(--danger); }

.signin-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 15%, rgba(126,200,200,.16) 0%, transparent 55%),
    linear-gradient(160deg, #0d1117 0%, #101a26 45%, #0d1117 100%);
}
.signin-art::before {
  content: "";
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 30% 70%, rgba(74,155,168,.18) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(46,184,154,.14) 0%, transparent 45%);
  filter: blur(30px);
}
.signin-bars {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
}
.signin-bars span {
  display: block; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: .55;
  animation: ntp-wave 2.6s ease-in-out infinite;
}
@keyframes ntp-wave {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .signin-bars span { animation: none; }
}
