/* Inter web font */
@import url('https://rsms.me/inter/inter.css');

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Case-file journal entries use a warmer serif per spec §9.3 */
.journal-entry {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: #1F2933;
}

/* Bottom ticker marquee (slow-scroll, respects reduced motion) */
.ticker         { overflow: hidden; white-space: nowrap; }
.ticker__track  { display: inline-block; animation: ticker 90s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}
@keyframes ticker {
  from { transform: translateX(0)    }
  to   { transform: translateX(-50%) }
}

/* Metric-card delta indicators */
.metric-delta-up   { color: #28A745; }
.metric-delta-down { color: #DC3545; }
.metric-delta-flat { color: #6C757D; }

/* Tabular numerals for any numeric column (census, cash, etc.) */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Account pages (/account/login, /account/register, etc.).
   Rendered in static SSR — no SignalR circuit yet because auth hasn't happened,
   so MudBlazor's interactive components add no value (MudTextField's value
   doesn't even round-trip through the HTML form POST). Plain HTML + CSS here.
   CRM palette matches ResidentialTheme so the pre-auth card visually belongs
   to the same app. */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  background: #F8F9FA;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.auth-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1F2933;
}
.auth-error-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #FBEAEA;
  color: #DC3545;
  border-radius: 4px;
  font-size: 0.9rem;
}
.auth-submit {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: #2A6FDB;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease-in-out;
}
.auth-submit:hover  { background: #245FBC; }
.auth-submit:active { background: #1F51A3; }
.auth-footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6C757D;
}
.auth-footer a          { color: #2A6FDB; text-decoration: none; }
.auth-footer a:hover    { text-decoration: underline; }

/* Form field internals (used by both login and register) — underline-style
   inputs that mimic MudBlazor's look for visual continuity with the rest of
   the app once the user lands inside the circuit. */
.account-form-field         { margin-bottom: 1.25rem; }
.account-form-field label   { display: block; font-size: 0.875rem; color: #6C757D; margin-bottom: 0.25rem; }
.account-form-input {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid #CFD8DC;
  font-size: 1rem;
  background: transparent;
  outline: none;
  transition: border-color 120ms ease-in-out;
}
.account-form-input:focus   { border-bottom-color: #2A6FDB; }
.account-form-helper        { font-size: 0.8125rem; color: #6C757D; margin-top: 0.25rem; }
.account-form-error         { color: #DC3545; font-size: 0.8125rem; margin-top: 0.25rem; display: block; }
