/* ============================================================================
   Trillumize CRM — design tokens and overrides on top of Bootstrap 5.3.

   Everything visual keys off the tokens in this first block. To rebrand,
   change the --brand-* values and nothing else.

   Audience: sales and finance staff working long sessions on mid-range
   Android phones and desktops over slow connections. That drives three
   choices throughout: system fonts (no blocking web-font fetch), high
   information density, and status cues that never depend on colour alone.
   ========================================================================= */

:root {
  /* --- Brand -------------------------------------------------------------
     REPLACE THESE THREE with the Trillumize palette. Everything else is
     derived from them. */
  --brand-50:  #eef2ff;   /* tint: active nav, table hover, subtle fills */
  --brand-600: #4f46e5;   /* primary: buttons, links, focus rings */
  --brand-700: #4338ca;   /* primary hover / pressed */
  /* Triplets for rgba(): a hex custom property cannot be used inside rgba(). */
  --brand-600-rgb: 79, 70, 229;
  --brand-700-rgb: 67, 56, 202;

  /* --- Neutrals ---------------------------------------------------------- */
  --ink-900: #111827;     /* headings */
  --ink-700: #374151;     /* body text */
  --ink-500: #6b7280;     /* secondary text, labels */
  --ink-300: #d1d5db;     /* borders on inputs */
  --ink-200: #e5e7eb;     /* hairlines, card borders */
  --ink-50:  #f9fafb;     /* page background, table headers */

  /* --- Semantic ---------------------------------------------------------- */
  --ok:    #16a34a;
  --warn:  #b45309;
  --stop:  #b91c1c;
  --info:  #0369a1;

  /* --- Accents: one hue per kind of thing, so a chip's colour is a cue,
     not decoration. Each has a solid tone and a pale fill. --- */
  --a-indigo: #4f46e5;  --a-indigo-bg: #eef2ff;
  --a-green:  #16a34a;  --a-green-bg:  #ecfdf5;
  --a-purple: #9333ea;  --a-purple-bg: #f5f3ff;
  --a-orange: #ea580c;  --a-orange-bg: #fff7ed;
  --a-blue:   #2563eb;  --a-blue-bg:   #eff6ff;
  --a-pink:   #db2777;  --a-pink-bg:   #fdf2f8;
  --a-teal:   #0d9488;  --a-teal-bg:   #f0fdfa;

  /* --- Metrics ----------------------------------------------------------- */
  --sidebar-w: 13rem;
  --radius: 0.75rem;
  --cell-y: 0.6rem;
  --cell-x: 0.85rem;

  /* Bootstrap reads these, so components inherit the brand automatically. */
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: var(--brand-600);
  --bs-link-hover-color: var(--brand-700);
  --bs-body-color: var(--ink-700);
  --bs-body-bg: var(--ink-50);
  --bs-border-color: var(--ink-200);
  --bs-border-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------ */

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--ink-50);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Keyboard users must always be able to see where they are. */
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------------------
   Numerals

   The signature of this interface. Money and quantities are set in tabular
   figures so digits line up in a column and magnitude can be judged by shape
   alone -- the single most common thing anyone does on these screens.
   Right-aligned table cells are money or counts by convention here, so this
   needs no extra markup.
   ------------------------------------------------------------------------ */

td.text-end,
th.text-end,
.money,
dd,
.h5,
.display-5 {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

td.text-end { white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Shell
   ------------------------------------------------------------------------ */

.app-shell { display: flex; align-items: flex-start; }

.app-sidebar {
  /* Fixed width, not a grid column: a percentage sidebar wastes 400px of a
     wide monitor that could be showing deal rows instead. */
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  position: sticky;
  top: 3.75rem;
  height: calc(100vh - 3.75rem);
  overflow-y: auto;
  padding: 0.75rem;
  background: #fff;
  border-right: 1px solid var(--ink-200);
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;              /* lets wide tables scroll instead of overflow */
  padding: 1.25rem 1.5rem 3rem;
  max-width: 100rem;
}

.navbar {
  background: var(--brand-600) !important;
  border-bottom: none;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  min-height: 3.75rem;
}

.navbar-brand, .navbar-brand:hover {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Controls sitting on the coloured bar are translucent white, so they read
   as part of the bar rather than as pale boxes dropped onto it. */
.navbar .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
}
.navbar .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.navbar .form-control {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .15);
  color: #fff;
}
.navbar .form-control::placeholder { color: rgba(255, 255, 255, .75); }
.navbar .form-control:focus {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

@media (max-width: 991.98px) {
  .app-main { padding: 1rem; }
}

/* ---------------------------------------------------------------------------
   Sidebar navigation
   ------------------------------------------------------------------------ */

.app-nav .nav-link {
  color: var(--ink-700);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.app-nav .nav-link i { color: var(--ink-500); font-size: 1rem; }
.app-nav .nav-link:hover { background: var(--ink-50); text-decoration: none; }

.app-nav .nav-link.active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

.app-nav .nav-link.active i { color: var(--brand-600); }

.app-nav hr { border-color: var(--ink-200); margin: 0.6rem 0.25rem; }

.app-nav .nav-section {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  font-weight: 600;
  padding: 0.5rem 0.6rem 0.25rem;
}

/* ---------------------------------------------------------------------------
   Cards — hairline borders, no shadows. Shadows on every panel turn a dense
   screen into visual noise.
   ------------------------------------------------------------------------ */

.card {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  background: #fff;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-900);
  padding: 0.75rem 1rem;
}

.card-body { padding: 1rem; }
.card-footer { background: var(--ink-50); font-size: 0.8125rem; }

/* ---------------------------------------------------------------------------
   Tables — tuned for scanning thirty rows, not for reading one.
   ------------------------------------------------------------------------ */

.table { font-size: 0.9375rem; margin-bottom: 0; }

.table > :not(caption) > * > * {
  padding: var(--cell-y) var(--cell-x);
  border-bottom-color: var(--ink-200);
}

.table thead th {
  background: var(--ink-50);
  color: var(--ink-500);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink-200);
  white-space: nowrap;
}

.table-hover > tbody > tr:hover > * {
  background: var(--brand-50);
}

.table td small, .table td .text-muted { font-size: 0.875rem; }

/* ---------------------------------------------------------------------------
   Status

   Colour is a second signal, never the only one: every state also carries a
   word, and rows needing attention carry a left rule that survives printing
   and greyscale.
   ------------------------------------------------------------------------ */

.badge {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.32em 0.6em;
  border-radius: 0.25rem;
}

.text-bg-success { background: #ecfdf5 !important; color: var(--ok) !important; }
.text-bg-warning { background: #fffbeb !important; color: var(--warn) !important; }
.text-bg-danger  { background: #fef2f2 !important; color: var(--stop) !important; }
.text-bg-primary { background: var(--brand-50) !important; color: var(--brand-700) !important; }
.text-bg-secondary { background: var(--ink-50) !important; color: var(--ink-500) !important; }
.text-bg-light { background: #fff !important; color: var(--ink-700) !important; }

.row-attention { box-shadow: inset 3px 0 0 var(--stop); }
.row-due       { box-shadow: inset 3px 0 0 var(--warn); }

/* ---------------------------------------------------------------------------
   Forms and buttons
   ------------------------------------------------------------------------ */

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.25rem;
}

.form-control, .form-select {
  border-color: var(--ink-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.form-text { font-size: 0.875rem; color: var(--ink-500); }

.btn { font-size: 0.9375rem; font-weight: 500; border-radius: var(--radius); }
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); }
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-700);
  border-color: var(--brand-700);
}
.btn-outline-secondary { color: var(--ink-700); border-color: var(--ink-300); }
.btn-outline-secondary:hover { background: var(--ink-50); color: var(--ink-900); border-color: var(--ink-300); }

/* ---------------------------------------------------------------------------
   Definition lists (record detail panels)
   ------------------------------------------------------------------------ */

dl.row { margin-bottom: 0; }
dl.row dt {
  font-weight: 500;
  color: var(--ink-500);
  font-size: 0.875rem;
  padding-top: 0.2rem;
}
dl.row dd { font-size: 0.9375rem; padding-top: 0.2rem; margin-bottom: 0.35rem; }

/* ---------------------------------------------------------------------------
   Pipeline board
   ------------------------------------------------------------------------ */

.board-column { width: 18rem; flex: 0 0 18rem; }
.board-column .card-header { background: var(--ink-50); }
.board-column .list-group-item { padding: 0.7rem 0.8rem; font-size: 0.875rem; }
.board-column .list-group-item:hover { background: var(--brand-50); }

/* A row action should not out-shout the row it belongs to. */
.btn-quiet {
  border: 1px solid transparent;
  background: none;
  color: var(--ink-500);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius);
  line-height: 1;
}
.btn-quiet:hover { background: #f0fdf4; color: var(--ok); border-color: #bbf7d0; }

/* Units belong in the header, not repeated down every row. */
.unit-note { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-500); }

/* ---------------------------------------------------------------------------
   Contact actions

   A number an agent cannot tap is a number they have to copy by hand.
   WhatsApp gets its own colour because it is the channel most of this
   conversation actually happens on.
   ------------------------------------------------------------------------ */

.contact-actions { display: inline-flex; gap: 0.25rem; vertical-align: middle; }

.contact-btn {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  background: var(--ink-50);
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
  font-size: 0.9375rem;
  text-decoration: none;
}

.contact-btn:hover {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-600);
  text-decoration: none;
}

.contact-btn.wa:hover { background: #e7f8ef; color: #128c7e; border-color: #25d366; }

/* ---------------------------------------------------------------------------
   Empty states — an empty screen should tell you what to do next.
   ------------------------------------------------------------------------ */

.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--ink-500); }
.empty-state i { font-size: 1.75rem; color: var(--ink-300); display: block; margin-bottom: 0.5rem; }

/* ---------------------------------------------------------------------------
   KPI figures
   ------------------------------------------------------------------------ */

.kpi-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  font-weight: 600;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--kpi-tone, var(--ink-900));
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kpi-label { color: var(--ink-500); }

.kpi-chip {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--kpi-fill, var(--ink-50));
  color: var(--kpi-tone, var(--ink-500));
  font-size: 1.25rem;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------------------
   Quick actions — a tinted tile per task, colour-coded by the area it opens
   so the grid can be navigated by position and hue rather than by reading.
   ------------------------------------------------------------------------ */

.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
}

.qa-tile {
  background: var(--tile-fill);
  color: var(--ink-700);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform .12s ease, border-color .12s ease;
}

.qa-tile:hover {
  text-decoration: none;
  color: var(--ink-900);
  border-color: var(--tile-tone);
  transform: translateY(-1px);
}

.qa-tile i { font-size: 1.5rem; color: var(--tile-tone); display: block; margin-bottom: 0.5rem; }
.qa-tile span { font-size: 0.875rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .qa-tile:hover { transform: none; } }

/* ---------------------------------------------------------------------------
   Sign-in

   Seen every morning, mostly on a mid-range Android phone on a patchy
   connection. Colours come from the brand tokens, so rebranding moves this
   page with everything else.
   ------------------------------------------------------------------------ */

/* Narrow column for the password-reset pages, which no longer inherit a
   container from base.html. */
.auth-narrow {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  /* The photo sits behind everything, under a wash dark enough that the
     white card and its shadow still read against any image. Without the
     wash, a busy or pale photo swallows the card edge. If no image is
     present the url() fails and the flat colour below remains. */
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(17, 24, 39, .55), rgba(17, 24, 39, .55)),
    url("../img/login-bg.163ae1a875a4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.auth-card {
  width: 100%;
  max-width: 65rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 1.25rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 8px 20px rgba(0, 0, 0, .18);
}

/* --- Left panel --- */

.auth-side {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-700) 0%, var(--brand-600) 55%, var(--a-blue) 100%);
}

/* Two large rings, drawn as borders rather than images: no extra request,
   and nothing to load on a slow connection. */
.auth-side::before,
.auth-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-side::before {
  width: 17rem; height: 17rem; right: -8rem; top: -7.5rem;
  border: 2.75rem solid rgba(255, 255, 255, .06);
}
.auth-side::after {
  width: 13rem; height: 13rem; left: -8rem; bottom: -7rem;
  border: 2.2rem solid rgba(255, 255, 255, .05);
}

.auth-side-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.auth-logo {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: .75rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
}

.auth-intro { margin-top: auto; margin-bottom: 2.5rem; }
.auth-intro h1 {
  max-width: 24rem;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
}
.auth-intro p {
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
}

.auth-points {
  display: flex; flex-direction: column; gap: 1rem;
  margin: 0; padding: 0; list-style: none;
}
.auth-points li { display: flex; align-items: center; gap: .9rem; }
.auth-point-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: .7rem;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .12);
}
.auth-points strong, .auth-points span { display: block; }
.auth-points strong { margin-bottom: .15rem; font-size: .875rem; font-weight: 600; }
.auth-points span { color: rgba(255, 255, 255, .66); font-size: .8125rem; }

.auth-help {
  display: flex; align-items: flex-start; gap: .65rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .65);
  font-size: .8125rem;
  line-height: 1.5;
}

/* --- Right panel --- */

.auth-form-inner {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  padding: 3.25rem 3.5rem;
}

.auth-form-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2rem;
}

.auth-eyebrow {
  display: block; margin-bottom: .5rem;
  color: var(--brand-600);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

.auth-form-header h2 {
  margin: 0 0 .4rem;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em;
}
.auth-form-header p { margin: 0; color: var(--ink-500); font-size: .9375rem; }

.language-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 2.25rem;
  padding: 0 .65rem;
  border: 1px solid var(--ink-200);
  border-radius: .55rem;
  color: var(--ink-500);
  background: #fff;
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 600;
}

.language-select:hover { border-color: var(--ink-300); background: var(--ink-50); }
.language-select span { color: var(--ink-700); }
.language-select i:last-of-type { font-size: .7rem; }

/* The select covers the whole pill and is invisible, so a click anywhere --
   globe, code or chevron -- opens it. The text you see is the span behind. */
.language-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  cursor: pointer;
}

.language-select:focus-within {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.auth-error {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1.25rem; padding: .8rem .9rem;
  border: 1px solid #fecaca; border-radius: .625rem;
  color: var(--stop); background: #fef2f2;
  font-size: .875rem;
}

.auth-group { margin-bottom: 1.25rem; }
.auth-label {
  display: block; margin-bottom: .5rem;
  color: var(--ink-700); font-size: .875rem; font-weight: 600;
}
.auth-label-row { display: flex; align-items: center; justify-content: space-between; }
.auth-label-row a { font-size: .8125rem; font-weight: 600; }

.auth-input { position: relative; }
.auth-input > i {
  position: absolute; z-index: 2; top: 50%; left: .95rem;
  transform: translateY(-50%);
  color: var(--ink-300); font-size: .95rem; pointer-events: none;
}
.auth-input input {
  width: 100%; height: 3rem;
  padding: 0 2.8rem;
  border: 1px solid var(--ink-300); border-radius: .7rem;
  outline: none; color: var(--ink-900); background: #fff;
  font-size: .9375rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input input::placeholder { color: var(--ink-300); }
.auth-input input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px var(--brand-50);
}

/* A password typed blind on a phone keyboard is the commonest cause of a
   failed sign-in, and this app locks the account after repeated failures. */
.auth-reveal {
  position: absolute; z-index: 3; top: 50%; right: .8rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  transform: translateY(-50%);
  border: 0; border-radius: .45rem;
  color: var(--ink-500); background: transparent; cursor: pointer;
}
.auth-reveal:hover { color: var(--brand-600); background: var(--ink-50); }

.auth-submit {
  width: 100%; height: 3.05rem;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-top: 1.5rem;
  border: 0; border-radius: .7rem;
  color: #fff;
  background: var(--brand-600);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.auth-submit:hover { background: var(--brand-700); transform: translateY(-1px); }
.auth-submit i { transition: transform .15s ease; }
.auth-submit:hover i { transform: translateX(3px); }

.auth-footer {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-top: 1.75rem;
  color: var(--ink-500); font-size: .8125rem;
}

@media (max-width: 991.98px) {
  .auth-side-inner { padding: 2.5rem; }
  .auth-intro { margin-top: 2.5rem; margin-bottom: 2rem; }
  .auth-form-inner { padding: 2.75rem 2.5rem; }
}

@media (max-width: 575.98px) {
  /* Full-bleed on a phone, and the selling points give way so the form is
     reachable without scrolling. */
  .auth-page { padding: 0; align-items: stretch; background-image: none; }
  .auth-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-side-inner { padding: 1.75rem 1.5rem; }
  .auth-intro { margin-top: 1.5rem; margin-bottom: 1.25rem; }
  .auth-intro h1 { font-size: 1.6rem; }
  .auth-points, .auth-help { display: none; }
  .auth-form-inner { padding: 2rem 1.5rem; }
  .auth-form-header h2 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit:hover { transform: none; }
  .auth-submit:hover i { transform: none; }
}

/* ---------------------------------------------------------------------------
   Accessibility and print
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .navbar, .app-sidebar, .offcanvas, .btn, form, .no-print { display: none !important; }
  .app-main { padding: 0; max-width: none; }
  .card { border: 1px solid #999; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
