/*
 * PathGate branding for OpenIAM's sign-in pages (dmfiam-platform: platform/branding/pathgate/brand.css).
 * Used together with brand.js, which sets the classes pg-brand and pg-admin or pg-portal on <html>, then the
 * badge text in --pg-label and the class pg-ready. Everything is drawn with pseudo-elements, so OpenIAM's page
 * code is not touched.
 *
 * Colours (PathGate brand): midnight blue #19253D (base: surfaces, headers, text), deep blue #0D3B66
 * (marks, lines, accents), white #FFFFFF, gold #E2B25C (accent).
 */
:root {
  --pg-midnight: #19253d;
  --pg-deep: #0d3b66;
  --pg-white: #ffffff;
  --pg-gold: #e2b25c;
}

/* A stripe along the top of the page: gold for the admin console, deep blue for self-service. */
html.pg-brand body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 10000;
  background: var(--pg-deep);
}
html.pg-admin body::before {
  background: var(--pg-gold);
}

/* OpenIAM's logo is replaced by the PathGate logo (logo.png, 1000 x 354, transparent background). */
html.pg-brand .login-logo {
  text-align: center;
}
html.pg-brand .login-logo img {
  display: none !important;
}
html.pg-brand .login-logo::before {
  content: "";
  display: block;
  width: 300px;
  max-width: 80vw;
  height: 106px;
  margin: 0 auto;
  background: url("/pathgate-brand/logo.png") center / contain no-repeat;
}

/* The badge under the logo: which console the user is signing in to. */
html.pg-ready .login-logo::after {
  content: var(--pg-label);
  display: inline-block;
  margin-top: 10px;
  padding: 5px 16px;
  border-radius: 999px;
  font: 700 14px/1.4 "Aptos", "Segoe UI", system-ui, Arial, sans-serif;
  letter-spacing: 0.5px;
  background: var(--pg-deep);
  color: var(--pg-white);
}
html.pg-ready.pg-admin .login-logo::after {
  background: var(--pg-gold);
  color: var(--pg-midnight);
}
