/* Saba look for Hi.Events (tickets2), injected into every page by the container nginx
   (sub_filter before </head>). Matches the portal / sabacenter.org brand tokens
   (static/app.css: --primary #0a7a45, --bg #f4f7fc, --grad-brand, system font).
   Selectors use [class*="_name_"] because Hi.Events ships CSS modules with hashed
   suffixes (e.g. _rightPanel_q5yz2_133); the readable part survives upgrades.
   Licence: the "Powered by Hi.Events" notice (AGPL s.7(b) additional term) is NOT
   hidden, shrunk, recoloured to the background or moved; it only inherits the font. */

:root {
  --saba-primary: #0a7a45;
  --saba-primary-hover: #07623a;
  --saba-bg: #f4f7fc;
  --saba-surface: #ffffff;
  --saba-fg: #0f1a2e;
  --saba-muted: #4a5a75;
  --saba-border: #dde5f0;
  --saba-grad: linear-gradient(90deg, #2fae5f, #1d63d6 55%, #e8453c);
  --saba-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Brand rule across the top of every screen page (as on the portal header). */
@media screen {
  body::before {
    content: ""; position: fixed; z-index: 2147483000; inset: 0 0 auto 0; height: 3px;
    background: var(--saba-grad); pointer-events: none;
  }
}

/* ---------- Staff sign-in, forgot / reset password, register, 404 (AuthShell) ---------- */
[class*="_authLayout_"],
[class*="_authLayout_"] h1, [class*="_authLayout_"] h2, [class*="_authLayout_"] h3,
[class*="_authLayout_"] input, [class*="_authLayout_"] button, [class*="_authLayout_"] label {
  font-family: var(--saba-font) !important;
  letter-spacing: normal !important;
}
[class*="_authLayout_"] {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(47, 174, 95, .12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(29, 99, 214, .08), transparent 60%),
    var(--saba-bg) !important;
}
/* The marketing panel ("Sell out your event", sample ticket, feature ticker) is not ours. */
[class*="_authLayout_"] [class*="_rightPanel_"] { display: none !important; }
[class*="_authLayout_"] [class*="_leftPanel_"] { background: transparent !important; width: 100% !important; }
[class*="_authLayout_"] [class*="_leftPanel_"]::after { display: none !important; }
[class*="_authLayout_"] [class*="_container_"] {
  max-width: 560px; width: 100%; margin: 0 auto; padding-top: 40px !important;
}
[class*="_authLayout_"] [class*="_logo_"] { align-self: center !important; }
[class*="_authLayout_"] [class*="_logo_"] img { height: 96px !important; width: auto; }
[class*="_authLayout_"] [class*="_formArea_"] { align-items: flex-start !important; padding-top: 20px !important; }
[class*="_authLayout_"] [class*="_wrapper_"] {
  background: var(--saba-surface); border: 1px solid var(--saba-border); border-radius: 16px;
  padding: 36px 36px 28px; box-shadow: 0 1px 2px rgba(15, 26, 46, .04), 0 8px 24px rgba(15, 26, 46, .05);
  max-width: 480px !important;
}
@media (max-width: 600px) {
  [class*="_authLayout_"] [class*="_wrapper_"] { padding: 24px 20px 20px; }
  [class*="_authLayout_"] [class*="_logo_"] img { height: 80px !important; }
}
[class*="_authLayout_"] h1, [class*="_authLayout_"] h2 { color: var(--saba-fg) !important; font-weight: 700 !important; }
[class*="_authLayout_"] [class*="_wrapper_"] a { color: var(--saba-primary) !important; text-decoration: underline; text-underline-offset: 2px; }
[class*="_authLayout_"] button[type="submit"],
[class*="_authLayout_"] .mantine-Button-root[data-variant="filled"],
[class*="_authLayout_"] .mantine-Button-root:not([data-variant]) {
  background: var(--saba-primary) !important; color: #fff !important; box-shadow: none !important;
  border-radius: 10px !important;
}
[class*="_authLayout_"] button[type="submit"]:hover { background: var(--saba-primary-hover) !important; }
[class*="_authLayout_"] input:focus, [class*="_authLayout_"] input:focus-visible {
  border-color: var(--saba-primary) !important; box-shadow: 0 0 0 3px rgba(10, 122, 69, .15) !important;
}
[class*="_authLayout_"] [class*="_panelFooter_"] { color: var(--saba-muted); }
[class*="_authLayout_"] [class*="_poweredBy_"] a { color: var(--saba-fg) !important; }
[class*="_authLayout_"] label, [class*="_authLayout_"] .mantine-InputWrapper-label { color: var(--saba-fg) !important; font-weight: 600 !important; }
[class*="_authLayout_"] .mantine-InputWrapper-required { color: #c0362c !important; }

/* ---------- Admin (logged in): the stacked Saba logo needs room and a light plate on the green sidebar ---------- */
#app-manage-sidebar [class*="_logo_"] img {
  height: 72px !important; max-height: 72px !important; width: auto !important; max-width: none !important;
  background: #fff; border-radius: 12px; padding: 6px 12px; box-sizing: content-box;
}
[class*="_topbar_"] img[class*="_logo_"] {
  height: 40px !important; max-height: 40px !important; width: auto !important; background: #fff; border-radius: 8px; padding: 3px 6px;
}
