/*!
 * RPI Ambulance — Keycloak login theme
 * Generated by RidgePoint Solutions Theme Forge.
 *
 * This file is layered on top of the stock `keycloak.v2` theme. No FreeMarker
 * template is overridden, so this theme stays compatible across Keycloak 26.x
 * upgrades. Edit freely — the tool can regenerate it from brand-profile.json.
 */

/* =================================================================
 * 1. Brand tokens
 * Every color below is derived from the brand colors and checked for
 * WCAG AA contrast at generation time.
 * ================================================================= */
:root {
  --rp-page-bg: #f5f0f0;
  --rp-page-bg-alt: #e9e8e8;
  --rp-surface: #fafafa;
  --rp-surface-alt: #f0f0ef;
  --rp-surface-border: #d8d7d4;
  --rp-panel-bg: #e21f26;
  --rp-panel-bg-alt: #58292a;
  --rp-panel-ink: #ffffff;
  --rp-panel-ink-muted: #f3d3ac;
  --rp-backdrop: #120c0b;
  --rp-backdrop-alt: #080707;
  --rp-on-backdrop: #fbfafa;
  --rp-on-backdrop-muted: #a09d9c;
  --rp-ink: #281513;
  --rp-ink-muted: #6f5754;
  --rp-ink-subtle: #927976;
  --rp-primary: #e21f26;
  --rp-primary-hover: #f83c3a;
  --rp-primary-active: #ff675d;
  --rp-on-primary: #ffffff;
  --rp-accent: #221f1f;
  --rp-on-accent: #fafafa;
  --rp-link: #e21f26;
  --rp-link-hover: #be0015;
  --rp-input-bg: #fdfdfd;
  --rp-input-border: #928f8b;
  --rp-input-border-hover: #7e736c;
  --rp-focus-ring: #e21f26;
  --rp-focus-ring-soft: rgba(226, 31, 38, 0.28);
  --rp-danger: #d02015;
  --rp-success: #5b7b15;
  --rp-warning: #9c6900;
  --rp-info: #4967d4;
  --rp-shadow: rgba(50, 0, 1, 0.1);
  --rp-shadow-strong: rgba(50, 0, 1, 0.18);
  --rp-glow: rgba(226, 31, 38, 0.32);

  --rp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rp-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rp-radius-card: 2px;
  --rp-radius-control: 2px;
  --rp-radius-pill: 2px;
  --rp-logo: url("../img/logo.svg");
  /* Sized from the logo's aspect ratio at 200% scale. */
  --rp-logo-h: 130px;
  --rp-logo-w: 122px;
  --rp-panel-logo-h: 192px;
  --rp-panel-logo-w: 181px;
  --rp-tagline: "Serving since 1976.";
}

/* Dark mode. Keycloak adds `.pf-v5-theme-dark` to <html> when the visitor's
 * OS is in dark mode; `darkMode=false` in theme.properties disables this. */
html.pf-v5-theme-dark {
  --rp-page-bg: #140e0d;
  --rp-page-bg-alt: #161616;
  --rp-surface: #241c1b;
  --rp-surface-alt: #2d2524;
  --rp-surface-border: #3e3735;
  --rp-panel-bg: #620d0d;
  --rp-panel-bg-alt: #461b1a;
  --rp-panel-ink: #fff8f7;
  --rp-panel-ink-muted: #d2b0ab;
  --rp-backdrop: #0b0606;
  --rp-backdrop-alt: #050404;
  --rp-on-backdrop: #fbfafa;
  --rp-on-backdrop-muted: #9d9999;
  --rp-ink: #ffffff;
  --rp-ink-muted: #aeaeae;
  --rp-ink-subtle: #868686;
  --rp-primary: #ff5850;
  --rp-primary-hover: #ff8176;
  --rp-primary-active: #ffa399;
  --rp-on-primary: #240706;
  --rp-accent: #6c6969;
  --rp-on-accent: #fafafa;
  --rp-link: #ffa398;
  --rp-link-hover: #ffd4ce;
  --rp-input-bg: #191312;
  --rp-input-border: #6e6765;
  --rp-input-border-hover: #7e7976;
  --rp-focus-ring: #ff8d82;
  --rp-focus-ring-soft: rgba(255, 141, 130, 0.28);
  --rp-danger: #ff7360;
  --rp-success: #8fb354;
  --rp-warning: #eba93e;
  --rp-info: #7f9fff;
  --rp-shadow: rgba(0, 0, 0, 0.4);
  --rp-shadow-strong: rgba(0, 0, 0, 0.6);
  --rp-glow: rgba(255, 88, 80, 0.4);
}

/* =================================================================
 * 2. Map brand tokens onto PatternFly v5, which is what Keycloak 26
 * actually renders with. Setting these here means every component we
 * do not style by hand still inherits the brand.
 * ================================================================= */
:root {
  --pf-v5-global--primary-color--100: var(--rp-primary);
  --pf-v5-global--primary-color--200: var(--rp-primary-hover);
  --pf-v5-global--primary-color--300: var(--rp-primary-active);
  --pf-v5-global--active-color--100: var(--rp-primary);
  --pf-v5-global--active-color--200: var(--rp-primary-hover);

  --pf-v5-global--link--Color: var(--rp-link);
  --pf-v5-global--link--Color--hover: var(--rp-link-hover);
  --pf-v5-global--link--Color--visited: var(--rp-link);
  --pf-v5-global--link--FontWeight: 500;
  --pf-v5-global--link--TextDecoration: none;
  --pf-v5-global--link--TextDecoration--hover: underline;

  --pf-v5-global--BackgroundColor--100: var(--rp-surface);
  --pf-v5-global--BackgroundColor--200: var(--rp-surface-alt);
  --pf-v5-global--Color--100: var(--rp-ink);
  --pf-v5-global--Color--200: var(--rp-ink-muted);
  --pf-v5-global--BorderColor--100: var(--rp-surface-border);
  --pf-v5-global--BorderColor--200: var(--rp-surface-border);
  --pf-v5-global--BorderColor--300: var(--rp-surface-border);

  --pf-v5-global--danger-color--100: var(--rp-danger);
  --pf-v5-global--success-color--100: var(--rp-success);
  --pf-v5-global--warning-color--100: var(--rp-warning);
  --pf-v5-global--info-color--100: var(--rp-info);

  --pf-v5-global--FontFamily--text: var(--rp-font);
  --pf-v5-global--FontFamily--text--vf: var(--rp-font);
  --pf-v5-global--FontFamily--heading: var(--rp-font-heading);
  --pf-v5-global--FontFamily--heading--vf: var(--rp-font-heading);

  --pf-v5-global--BorderRadius--sm: var(--rp-radius-control);
  --pf-v5-global--BorderRadius--lg: var(--rp-radius-card);

  /* Repurpose the stock keycloak.v2 accent bar instead of fighting it. */
  --keycloak-card-top-color: var(--rp-primary);
}

/* =================================================================
 * 3. Page canvas
 * ================================================================= */
html.login-pf,
html.login-pf body {
  height: auto;
  min-height: 100%;
}

.login-pf body {
  /* Replaces the stock Keycloak background image entirely. */
  background: var(--rp-surface);
  background-attachment: fixed;
  color: var(--rp-ink);
  font-family: var(--rp-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* This layout uses a flat canvas — no decorative layer. */

/* =================================================================
 * 4. Brand header
 *
 * The logo is painted as a background image on the stock
 * `#kc-header-wrapper`, which contains the realm display name as text.
 * The text is collapsed visually but left in the DOM, so screen readers
 * still announce which service the user is signing in to.
 *
 * Set Realm settings -> General -> Display name for that to read correctly.
 * ================================================================= */
#kc-header {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding-inline: var(--pf-v5-global--spacer--md);
}

#kc-header-wrapper {
  background-image: var(--rp-logo);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  block-size: var(--rp-logo-h);
  inline-size: min(100%, var(--rp-logo-w));

  /* Collapse the stock uppercase realm-name styling without removing the text. */
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: normal !important;
  text-indent: -200vw;
  overflow: hidden;
  white-space: nowrap;
}

/* Tagline, as a pseudo-element on the header so it flows with the logo
 * instead of needing to be positioned against it. Decorative by definition:
 * pseudo-element content is not exposed to assistive technology, which is the
 * right call for marketing copy. */
#kc-header::after {
  content: var(--rp-tagline);
  max-inline-size: 26rem;
  color: var(--rp-tagline-ink, var(--rp-ink-muted));
  font-family: var(--rp-font);
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.02rem);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

/* =================================================================
 * 5. Layout — "split"
 * ================================================================= */
/* Split hero.
 *
 * The trick that makes this work without a template override is
 * `display: contents` on .pf-v5-c-login__container. That removes the container's
 * own box and promotes its children — #kc-header and <main> — into
 * .pf-v5-c-login's grid, so the REAL header element can be placed in column 1,
 * on top of the brand panel.
 *
 * Why it matters: the header contains the realm's display name, which Keycloak
 * renders per request. Painting a logo or a name into the panel's background
 * instead would freeze it at generation time and lose the accessible text.
 * (Absolute positioning is not an option here: an abspos box inside a grid
 * containing block inherits `align-items`, shrink-wraps to zero height, and
 * percentage insets have no definite height to resolve against.)
 *
 * Below 62rem the panel is dropped and the page falls back to a centered card,
 * so mobile gets a layout designed for it rather than a squashed desktop one. */
.pf-v5-c-login {
  align-items: center;
  min-block-size: 100vh;
  padding: 0;
}

.pf-v5-c-login__container {
  --pf-v5-c-login__container--PaddingLeft: 0;
  --pf-v5-c-login__container--PaddingRight: 0;
  --pf-v5-c-login__container--MaxWidth: 25rem;
  --pf-v5-c-login__container--xl--MaxWidth: 25rem;
  --pf-v5-c-login__container--xl--GridColumnGap: 0;
  display: grid;
  grid-template-areas: "header" "main";
  grid-template-columns: minmax(0, 1fr);
  inline-size: 100%;
  max-inline-size: 25rem;
  padding-inline: var(--pf-v5-global--spacer--lg);
}

.pf-v5-c-login__container {
  padding-block: var(--pf-v5-global--spacer--2xl);
}

@media (min-width: 62rem) {
  .pf-v5-c-login {
    display: grid;
    grid-template-columns: minmax(20rem, 42%) minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
  }

  /* Ink for the header is read against the panel here, not the card. */
  :root,
  html.pf-v5-theme-dark {
    --rp-header-ink: var(--rp-panel-ink);
    --rp-tagline-ink: var(--rp-panel-ink-muted);
  }

  /* The panel surface. Shares its grid cell with #kc-header, which paints on top. */
  .pf-v5-c-login::before {
    content: "";
    grid-row: 1;
    grid-column: 1;
    align-self: stretch;
    min-block-size: 100vh;
    background-color: var(--rp-panel-bg);
    background-image:
      radial-gradient(38rem 26rem at 22% 12%, rgba(255, 255, 255, 0.16), transparent 62%),
      linear-gradient(155deg, var(--rp-panel-bg) 0%, var(--rp-panel-bg-alt) 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
  }

  /* Promote #kc-header and <main> into the grid above. */
  .pf-v5-c-login__container {
    display: contents;
  }

  /* Same cell as the panel, centred over it. PatternFly places this with
   * `grid-area: header`, which names a line that no longer exists once the
   * container is display:contents — so both axes are set explicitly. */
  #kc-header {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    inline-size: 100%;
    margin: 0;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
    padding-block: var(--pf-v5-global--spacer--2xl);
    z-index: 1;
  }

  #kc-header-wrapper {
    /* Panel-sized rather than header-sized. */
    block-size: var(--rp-panel-logo-h);
    inline-size: min(100%, var(--rp-panel-logo-w));
  }

  .pf-v5-c-login__main {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    justify-self: center;
    inline-size: min(100%, 25rem);
    margin: 0;
    padding-block: var(--pf-v5-global--spacer--2xl);
    padding-inline: clamp(1.5rem, 4vw, 4rem);
  }
}

@media (max-width: 61.99rem) {
  #kc-header {
    margin-block-end: var(--pf-v5-global--spacer--xl);
  }
}

/* =================================================================
 * 6. The login card
 * ================================================================= */
.pf-v5-c-login__main {
  --pf-v5-c-login__main--BackgroundColor: var(--rp-surface);
  border-radius: var(--rp-radius-card);
  color: var(--rp-ink);
  overflow: hidden;
}

.pf-v5-c-login__main {
  background: transparent;
  --pf-v5-c-login__main--BackgroundColor: transparent;
  box-shadow: none;
}

/* No card chrome next to the brand panel — the panel is the visual weight. */
.pf-v5-c-login__main-header {
  border-block-start: 0;
  padding-inline: 0;
  padding-block-start: 0;
}

.pf-v5-c-login__main-body {
  padding-inline: 0;
}

@media (max-width: 61.99rem) {
  .pf-v5-c-login__main {
    background: var(--rp-surface);
    --pf-v5-c-login__main--BackgroundColor: var(--rp-surface);
    border: 1px solid var(--rp-surface-border);
    box-shadow: 0 1px 2px var(--rp-shadow), 0 20px 40px -22px var(--rp-shadow-strong);
  }

  .pf-v5-c-login__main-header,
  .pf-v5-c-login__main-body {
    padding-inline: var(--pf-v5-global--spacer--xl);
  }

  .pf-v5-c-login__main-header {
    padding-block-start: var(--pf-v5-global--spacer--xl);
  }
}

.pf-v5-c-login__main-header {
  padding-block-start: var(--pf-v5-global--spacer--xl);
  padding-inline: var(--pf-v5-global--spacer--xl);
}

#kc-page-title {
  color: var(--rp-ink);
  font-family: var(--rp-font-heading);
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.pf-v5-c-login__main-body {
  padding-inline: var(--pf-v5-global--spacer--xl);
  padding-block-end: var(--pf-v5-global--spacer--lg);
}

@media (max-width: 35.99rem) {
  .pf-v5-c-login__main-header,
  .pf-v5-c-login__main-body {
    padding-inline: var(--pf-v5-global--spacer--lg);
  }
}

/* =================================================================
 * 7. Form controls
 * PatternFly v5 draws inputs with a ::before box border and an ::after
 * underline. We keep the box, drop the underline, and round the corners.
 * ================================================================= */
.pf-v5-c-form__label-text,
.pf-v5-c-form__label {
  color: var(--rp-ink);
  font-size: 0.875rem;
  font-weight: 550;
}

.pf-v5-c-form__group {
  margin-block-end: var(--pf-v5-global--spacer--md);
}

.pf-v5-c-form-control {
  --pf-v5-c-form-control--BackgroundColor: var(--rp-input-bg);
  --pf-v5-c-form-control--Color: var(--rp-ink);
  --pf-v5-c-form-control--before--BorderTopColor: var(--rp-input-border);
  --pf-v5-c-form-control--before--BorderRightColor: var(--rp-input-border);
  --pf-v5-c-form-control--before--BorderBottomColor: var(--rp-input-border);
  --pf-v5-c-form-control--before--BorderLeftColor: var(--rp-input-border);
  --pf-v5-c-form-control--before--BorderTopWidth: 1px;
  --pf-v5-c-form-control--before--BorderRightWidth: 1px;
  --pf-v5-c-form-control--before--BorderBottomWidth: 1px;
  --pf-v5-c-form-control--before--BorderLeftWidth: 1px;
  --pf-v5-c-form-control--after--BorderBottomWidth: 0;
  --pf-v5-c-form-control--hover--after--BorderBottomColor: transparent;
  --pf-v5-c-form-control--focus--after--BorderBottomWidth: 0;
  --pf-v5-c-form-control--PaddingTop: 0.6rem;
  --pf-v5-c-form-control--PaddingBottom: 0.6rem;
  --pf-v5-c-form-control--PaddingLeft: 0.85rem;
  --pf-v5-c-form-control--PaddingRight: 0.85rem;
  --pf-v5-c-form-control--FontSize: 1rem; /* >=16px stops iOS Safari zooming on focus */

  border-radius: var(--rp-radius-control);
  min-block-size: 2.75rem;
  transition: box-shadow 0.16s ease, background-color 0.16s ease;
}

.pf-v5-c-form-control::before,
.pf-v5-c-form-control::after {
  border-radius: var(--rp-radius-control);
}

.pf-v5-c-form-control:hover {
  --pf-v5-c-form-control--before--BorderTopColor: var(--rp-input-border-hover);
  --pf-v5-c-form-control--before--BorderRightColor: var(--rp-input-border-hover);
  --pf-v5-c-form-control--before--BorderBottomColor: var(--rp-input-border-hover);
  --pf-v5-c-form-control--before--BorderLeftColor: var(--rp-input-border-hover);
}

.pf-v5-c-form-control:focus-within {
  --pf-v5-c-form-control--before--BorderTopColor: var(--rp-focus-ring);
  --pf-v5-c-form-control--before--BorderRightColor: var(--rp-focus-ring);
  --pf-v5-c-form-control--before--BorderBottomColor: var(--rp-focus-ring);
  --pf-v5-c-form-control--before--BorderLeftColor: var(--rp-focus-ring);
  box-shadow: 0 0 0 3px var(--rp-focus-ring-soft);
}

.pf-v5-c-form-control > input,
.pf-v5-c-form-control > select,
.pf-v5-c-form-control > textarea {
  color: var(--rp-ink);
}

.pf-v5-c-form-control > input::placeholder {
  color: var(--rp-ink-subtle);
}

/* Input group (password reveal, username reset) should read as one field. */
.pf-v5-c-input-group {
  --pf-v5-c-input-group--BackgroundColor: transparent;
  border-radius: var(--rp-radius-control);
}

.pf-v5-c-form-control.pf-m-error,
.pf-v5-c-form-control[aria-invalid="true"] {
  --pf-v5-c-form-control--before--BorderTopColor: var(--rp-danger);
  --pf-v5-c-form-control--before--BorderRightColor: var(--rp-danger);
  --pf-v5-c-form-control--before--BorderBottomColor: var(--rp-danger);
  --pf-v5-c-form-control--before--BorderLeftColor: var(--rp-danger);
}

.pf-v5-c-check__label {
  color: var(--rp-ink-muted);
  font-size: 0.875rem;
}

.pf-v5-c-check__input {
  accent-color: var(--rp-primary);
  inline-size: 1rem;
  block-size: 1rem;
}

.pf-v5-c-helper-text__item-text {
  color: var(--rp-ink-muted);
}

.pf-v5-c-helper-text__item-text.pf-m-error,
.kc-feedback-text.pf-m-error {
  color: var(--rp-danger);
}

/* =================================================================
 * 8. Buttons
 * ================================================================= */
.pf-v5-c-button {
  --pf-v5-c-button--BorderRadius: var(--rp-radius-pill);
  --pf-v5-c-button--FontWeight: 600;
  --pf-v5-c-button--PaddingTop: 0.68rem;
  --pf-v5-c-button--PaddingBottom: 0.68rem;
  --pf-v5-c-button--PaddingLeft: 1.15rem;
  --pf-v5-c-button--PaddingRight: 1.15rem;
  letter-spacing: 0.005em;
  transition: background-color 0.16s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.pf-v5-c-button.pf-m-primary {
  --pf-v5-c-button--m-primary--BackgroundColor: var(--rp-primary);
  --pf-v5-c-button--m-primary--Color: var(--rp-on-primary);
  --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--rp-primary-hover);
  --pf-v5-c-button--m-primary--hover--Color: var(--rp-on-primary);
  --pf-v5-c-button--m-primary--focus--BackgroundColor: var(--rp-primary-hover);
  --pf-v5-c-button--m-primary--focus--Color: var(--rp-on-primary);
  --pf-v5-c-button--m-primary--active--BackgroundColor: var(--rp-primary-active);
  --pf-v5-c-button--m-primary--active--Color: var(--rp-on-primary);
  box-shadow: 0 1px 2px var(--rp-shadow), 0 10px 22px -12px var(--rp-glow);
}

.pf-v5-c-button.pf-m-primary:hover {
  box-shadow: 0 2px 4px var(--rp-shadow), 0 14px 26px -12px var(--rp-glow);
  transform: translateY(-1px);
}

.pf-v5-c-button.pf-m-primary:active {
  transform: translateY(0);
}

.pf-v5-c-button.pf-m-secondary {
  --pf-v5-c-button--m-secondary--BackgroundColor: transparent;
  --pf-v5-c-button--m-secondary--Color: var(--rp-ink);
  --pf-v5-c-button--m-secondary--BorderColor: var(--rp-input-border);
  --pf-v5-c-button--m-secondary--hover--BackgroundColor: var(--rp-surface-alt);
  --pf-v5-c-button--m-secondary--hover--Color: var(--rp-ink);
  --pf-v5-c-button--m-secondary--hover--BorderColor: var(--rp-input-border-hover);
}

.pf-v5-c-button.pf-m-link {
  --pf-v5-c-button--m-link--Color: var(--rp-link);
  --pf-v5-c-button--m-link--hover--Color: var(--rp-link-hover);
}

.pf-v5-c-button:focus-visible {
  outline: 2px solid var(--rp-focus-ring);
  outline-offset: 2px;
}

/* The submit button carries the page; give it presence. */
#kc-form-buttons .pf-v5-c-button.pf-m-primary,
.pf-v5-c-form__actions .pf-v5-c-button.pf-m-primary {
  font-size: 1rem;
  min-block-size: 2.85rem;
}

/* =================================================================
 * 9. Alerts, identity providers, footer
 * ================================================================= */
.pf-v5-c-alert {
  border-radius: var(--rp-radius-control);
  border: 1px solid currentColor;
  background: var(--rp-surface-alt);
}

.pf-v5-c-alert.pf-m-danger { color: var(--rp-danger); }
.pf-v5-c-alert.pf-m-success { color: var(--rp-success); }
.pf-v5-c-alert.pf-m-warning { color: var(--rp-warning); }
.pf-v5-c-alert.pf-m-info { color: var(--rp-info); }

.pf-v5-c-alert__title,
.pf-v5-c-alert .kc-feedback-text {
  color: inherit;
  font-weight: 550;
}

/* Identity provider buttons */
#kc-social-providers h2,
#kc-social-providers hr + h2 {
  color: var(--rp-ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pf-v5-c-login__main-footer-band {
  --pf-v5-c-login__main-footer-band--BorderTopColor: var(--rp-surface-border);
  background: transparent;
  color: var(--rp-ink-muted);
  font-size: 0.9rem;
}

#kc-social-providers .pf-v5-c-button {
  border-radius: var(--rp-radius-control);
}

/* keycloak.v2 recolors provider icons with a hard-coded blue filter. */
#kc-social-providers svg:not(.google) {
  filter: none;
}

#kc-info-wrapper {
  color: var(--rp-ink-muted);
}

hr {
  border: 0;
  border-block-start: 1px solid var(--rp-surface-border);
}

/* Language switcher */
.pf-v5-c-login__main-header-utilities .pf-v5-c-form-control {
  min-block-size: 2.25rem;
  font-size: 0.875rem;
}

/* Tooltip on the "restart login" control */
.kc-login-tooltip .kc-tooltip-text {
  background-color: var(--rp-ink);
  color: var(--rp-surface);
  border-radius: var(--rp-radius-control);
  box-shadow: 0 6px 18px -6px var(--rp-shadow-strong);
}

.kc-login-tooltip .kc-tooltip-text::after {
  border-color: transparent var(--rp-ink) transparent transparent;
}

/* Recovery codes and OTP tiles */
.pf-v5-c-tile {
  --pf-v5-c-tile--BackgroundColor: var(--rp-surface-alt);
  --pf-v5-c-tile--BorderColor: var(--rp-surface-border);
  --pf-v5-c-tile--m-selected--BorderColor: var(--rp-primary);
  border-radius: var(--rp-radius-control);
}

.select-auth-box-parent {
  border-radius: var(--rp-radius-control);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.select-auth-box-parent:hover {
  background: var(--rp-surface-alt);
}

/* =================================================================
 * 11. Motion and print
 * ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pf-v5-c-button.pf-m-primary:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .pf-v5-c-login__main {
    border: 1px solid CanvasText;
  }
}

@media print {
  .login-pf body { background: #fff; }
  .pf-v5-c-login__main { box-shadow: none; }
}
