/* Generated by tools/keycloak_theme.py from design/branding/bic/college.json. Do not edit. */

/* THE TYPEFACES THE DESIGN NAMES, served from this theme and fetched from nobody
   else: the college's own files (SIL Open Font License, the licence beside each in
   fonts/), copied from design/branding/. If a file does not load — a first paint —
   the page falls back to a serif for headings and a sans for body, which is the same
   shape in different letters rather than Keycloak's own look. */
@font-face { font-family: "Crimson Pro"; src: url("../fonts/CrimsonPro-Variable.woff2?v=fb58d367d14f") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/InterVariable.woff2?v=693b77d4f32e") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --college-brand: #184174;
  --college-ink: #342e2e;
  --college-paper: #fbfbfb;
  --college-accent: #cfcdc7;
  --college-rule: #e8e8e8;
  --college-muted: #817a7a;
  --college-heading: "Crimson Pro", Georgia, "Times New Roman", serif;
  --college-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

body,
.pf-v5-c-login,
.pf-v5-c-background-image {
  background: var(--college-paper);
  color: var(--college-ink);
  font-family: var(--college-body);
}

/* THE COLLEGE'S HEADER, AS EVERY PAGE WITHOUT A SESSION HAS IT (M-264, Slim, amending M-261):
   a navy bar across the top, the crest cropped to its artwork (`mark_box` in college.json)
   and reversed to white, 44px tall, the college's name 20px in the heading face, and *Report a
   problem* at the right (drawn there by js/report.js). 7px top and bottom; on a phone 6px, the
   crest 38px and the name 19px. It is styled rather than templated because the header's markup
   belongs to the parent theme: no template of ours to keep in step when Keycloak's own
   changes. The bar is lifted out of the card's column to span the page, and the page gives
   it its height back. */
.pf-v5-c-login {
  position: relative;
  padding-top: 0;
}

.pf-v5-c-login__container {
  padding-top: 90px;
}

#kc-header,
.pf-v5-c-login__header {
  --h: 44px;
  --name: 20px;
  --door: 13.5px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 7px clamp(18px, 3vw, 44px);
  background: var(--college-brand);
  color: #fff;
  text-align: left;
}

/* !IMPORTANT, BECAUSE THE PARENT'S IS. keycloak.v2's styles.css sets this colour with
   !important, for its own dark backdrop (read in Keycloak 26.7, 25 September 2026). */
#kc-header-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font: 600 var(--name)/1.15 var(--college-heading);
  letter-spacing: .005em;
  color: rgba(255, 255, 255, .86) !important;
  text-transform: none;
}

#kc-header-wrapper::before {
  content: "";
  flex: none;
  width: calc(var(--h) * 1.5739);
  height: var(--h);
  background: url("../img/mark.png?v=19f7bf79bcd8") no-repeat;
  background-size: calc(var(--h) * 1.9922) calc(var(--h) * 1.9922);
  background-position: calc(var(--h) * -0.2160) calc(var(--h) * -0.3307);
  filter: brightness(0) invert(1);
}

#kc-header .report-door {
  color: rgba(255, 255, 255, .84);
  font: 500 var(--door)/1.4 var(--college-body);
  text-decoration: none;
  white-space: nowrap;
}

#kc-header .report-door:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  #kc-header,
  .pf-v5-c-login__header {
    --h: 38px;
    --name: 19px;
    --door: 13px;
    gap: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  #kc-header-wrapper {
    gap: 12px;
  }
  /* Here the door wraps under the name, as on the screens' guest header. */
  .pf-v5-c-login__container {
    padding-top: 104px;
  }
}

/* EACH NAME ONCE ON A PAGE (M-264): the sign-in card's heading would say the college's name
   the header above it already says, so its message is empty (`messages`) and the heading is
   not drawn. Only on the sign-in page itself: the heading of every other page (a forgotten
   password, a new one) says what that page is for, and stays. */
body[data-page-id="login-login"] #kc-page-title {
  display: none;
}

h1, h2, h3,
.pf-v5-c-title {
  font-family: var(--college-heading);
  color: var(--college-brand);
  text-transform: none;
}

.pf-v5-c-button.pf-m-primary {
  background: var(--college-brand);
  border-color: var(--college-brand);
  font-family: var(--college-body);
}

.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus {
  background: color-mix(in srgb, var(--college-brand) 88%, black);
  border-color: color-mix(in srgb, var(--college-brand) 88%, black);
}

a, .pf-v5-c-button.pf-m-link {
  color: var(--college-brand);
}

.pf-v5-c-form-control {
  border-color: var(--college-rule);
  font-family: var(--college-body);
}

.pf-v5-c-form-control:focus-within {
  border-color: var(--college-brand);
}

/* A WRONG PASSWORD FAILS THE WAY A PRODUCT FAILS: the message keeps the page's own
   type and colour rather than arriving as a coloured system banner. */
.pf-v5-c-alert.pf-m-danger,
.pf-v5-c-alert.pf-m-error {
  font-family: var(--college-body);
  color: var(--college-ink);
}

/* ONE CREDENTIAL FORM AND NOTHING ELSE. Whatever the college signs in against is
   the college's business and not the page's: the block that would name it is removed
   at its source by provision.sh, and this hides one added by hand in the console.
   THE WORDING HERE IS DELIBERATE — a stylesheet is served, and `tests/test_sign_in.py`
   reads this file for the terms UI-14 deletes. It failed on this very comment. */
#kc-social-providers,
.pf-v5-c-login__main-footer-band {
  display: none;
}
