/* ==============================
   NST Login Theme Overrides
   ============================== */

:root {
  /* Rough NST palette */
  --nst-primary: #003c63;
  --nst-accent:  #00a6c4;
  --nst-bg:      #ffffff;       /* pure white */
}

/* Force a pure white background; override Keycloak/PatternFly defaults */
html,
body {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Some Keycloak layouts also set background on page sections */
.pf-c-background-image,
.pf-c-page__main-section,
#kc-page-container,
#kc-content {
  background-color: #ffffff !important;
  background-image: none !important;
}


/* Header: logo stacked above title, centered */
/* Header: logo stacked above, text hidden */
#kc-header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0;                      /* no extra gap between logo + (hidden) text */
  padding: 1.25rem 0 0.5rem;

  font-weight: 600;
  text-align: center;

  color: #000000;              /* keeps it sane if we ever re-show text */
  font-size: 0;                /* <-- hides the realm title text */
}


/* Logo above the text */
#kc-header-wrapper::before {
  content: "";
  display: block;

  /* Scale 1000x291 down to ~260x76 */
  width: 260px;
  height: 76px;

  background-image: url("../img/nst-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 0.25rem;
}


/* Primary "Log in" button */
.pf-c-button.pf-m-primary {
  background-color: var(--nst-primary);
  border-color: var(--nst-primary);
}

.pf-c-button.pf-m-primary:hover {
  background-color: #002743;
  border-color: #002743;
}

/* Links (forgot password, etc.) */
a,
.pf-c-button.pf-m-link {
  color: var(--nst-accent);
}

a:hover,
.pf-c-button.pf-m-link:hover {
  color: #00809a;
}

/* Placeholder for future Request Access block */
.kc-request-access {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}
