/* ==========================================================
   Maha Study Abroad — Government of Maharashtra login theme
   Palette matches studyabroad.mahacet.org: navy #1a3b8b,
   saffron #FF9933, cool off-white page.
   ========================================================== */

/* Page background: light, with a tricolor hairline at the very top */
body#keycloak-bg {
  background: #eef2f7 !important;
  background-image: none !important;
}
body#keycloak-bg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #FF9933 0 33.4%, #ffffff 33.4% 66.7%, #138808 66.7% 100%);
  z-index: 10;
}

/* Brand header: emblem above the bilingual government wordmark */
#kc-header-wrapper.pf-v5-c-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
  color: #0f2a5f;
  text-align: center;
}
#kc-header-wrapper.pf-v5-c-brand::before {
  content: "";
  width: 72px;
  height: 72px;
  background: url("../img/govt-emblem.jpg") center / contain no-repeat;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(15, 42, 95, 0.18);
}
.gom-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
}
.gom-brand .gom-mr {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2a5f;
}
.gom-brand .gom-en {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a3b8b;
}
.gom-brand .gom-portal {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
}

/* Login card */
.pf-v5-c-login__main {
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  border-top: 4px solid #FF9933;
  box-shadow: 0 12px 32px rgba(15, 42, 95, 0.10);
  background: #ffffff;
}
.pf-v5-c-login__main-header .pf-v5-c-login__main-title,
h1#kc-page-title {
  color: #0f2a5f;
  font-weight: 700;
}

/* Primary actions: portal navy */
.pf-v5-c-button.pf-m-primary {
  background-color: #1a3b8b;
}
.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus {
  background-color: #142f73;
}

/* Links */
a,
.pf-v5-c-button.pf-m-link {
  color: #1a3b8b;
}
a:hover,
.pf-v5-c-button.pf-m-link:hover {
  color: #142f73;
}

/* Inputs: navy focus ring instead of PF blue */
.pf-v5-c-form-control:focus-within {
  --pf-v5-c-form-control--m-focus--after--BorderBottomColor: #1a3b8b;
}
.pf-v5-c-form__label-text {
  color: #334155;
}

/* Checkbox / remember me accent */
.pf-v5-c-check__input:checked {
  accent-color: #1a3b8b;
}

/* Footer band (e.g. the register link strip) */
.pf-v5-c-login__main-footer-band {
  color: #475569;
}

/* Small print under the card */
.pf-v5-c-login__footer,
#kc-info {
  color: #64748b;
}

/* PatternFly paints its own blue stripe on the card header — keep only the saffron one */
.pf-v5-c-login__main-header {
  border-top: 0 !important;
}

/* Registration: country-code select + mobile number side-by-side.
   Fields are matched by their user-profile attribute ids; browsers
   without :has() simply render them stacked. */
.pf-v5-c-form__group:has(#countryCode) {
  display: inline-block;
  width: 32%;
  margin-right: 3%;
  vertical-align: top;
}
.pf-v5-c-form__group:has(#mobileNumber) {
  display: inline-block;
  width: 65%;
  vertical-align: top;
}
