/* Center content */
/*
#kc-content {
    display: flex;
    justify-content: center;
}
*/

#kc-content {
    display: grid;
    grid-template-columns: 1fr minmax(520px, 520px) 1fr;
    align-items: start;
    padding: 40px 20px;
}

/*
#kc-content-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
*/

#kc-content-wrapper {
    grid-column: 2;   /* 👈 middle column */
    width: 100%;
}

#kc-form {
    text-align: center;
}

#kc-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#kc-form-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#kc-header-wrapper {
    font-size: 29px;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 16px 10px 0px;
    white-space: normal;
}

/*
.login-pf body {
    background: #000;
    background-size: cover;
    height: 100%;
}
*/

.login-pf body {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Fix language selector positioning */
#kc-locale {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

#kc-locale-wrapper {
  position: static;
}

#kc-locale-dropdown {
  position: relative;
}

#kc-current-locale-link {
  float: none;
}

.login-pf-page .login-pf-page-header {
    margin-bottom: 0px;
    margin-top: 0px;
    text-align: center;
    padding-top: 0px;
}


/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header container */
.ipb-header {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

/* Top area with logo */
.ipb-top {
    background-color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

/* Logo */
.ipb-logo {
    max-height: 50px;
    width: auto;
}

/* Purple bar */
.ipb-bar {
    background-color: #6a1b5d; /* IPB purple tone */
    background-color: #8C0B2E; /* IPB purple tone */
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .ipb-top {
        justify-content: center;
    }

    .ipb-logo {
        max-height: 50px;
    }

    .ipb-bar {
        font-size: 13px;
        padding: 12px 10px;
    }
}

.ipb-warning {
  background-color: #640954;
  background-color: #ccc;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  margin: 16px 0;
}

.ipb-warning p {
  color: #ffffff !important;
  color: #000 !important;
  margin: 0 0 10px 0;
}

.ipb-warning p:last-child {
  margin-bottom: 0;
}

/* ===============================
   GRID LAYOUT
   =============================== */

#kc-content {
    display: grid;
    grid-template-columns: 1fr minmax(520px, 520px) 1fr;
    padding: 40px 20px;
    width: 100%;
}

/* ===============================
   COLUMN 2 (WHITE PANEL)
   =============================== */

#kc-content-wrapper {
    grid-column: 2;
    background: #ffffff;              /* 👈 WHITE COLUMN */
    padding: 32px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 0px;
}

/* ===============================
   COLUMNS 1 & 3 (TRANSPARENT)
   =============================== */

#kc-content::before,
#kc-content::after {
    content: "";
    display: block;
}

/* ===============================
   REMOVE CARD STYLES (VERY IMPORTANT)
   =============================== */

/* Kill legacy PatternFly v3 */
.card-pf {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Kill PF4 cards */
.pf-c-card {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

/* ===============================
   KEEP OUTER AREA TRANSPARENT
   =============================== */

.login-pf,
.login-pf .container,
.pf-c-login,
.pf-c-login__container,
#kc-content {
    background: transparent !important;
}

/* ===============================
   FORM ALIGNMENT
   =============================== */

#kc-form {
    text-align: center;
}

#kc-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===============================
   MOBILE
   =============================== */

@media (max-width: 600px) {
    #kc-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    #kc-content-wrapper {
        grid-column: 1;
        padding: 24px;
        border-radius: 0;
    }
}

.login-pf-page {
    padding-top: 0px;
}



#kc-login,
.kc-button-primary,
.pf-v5-c-button.pf-m-primary {
  background-color: #8C0B2E;
  border-color: #8C0B2E;
}

#kc-login:hover,
.pf-v5-c-button.pf-m-primary:hover {
  background-color: #7d1007;
  border-color: #7d1007;
}


.pf-v5-c-button {
  border-radius: 6px;
}

.pf-v5-c-button:not(.pf-m-primary) {
  border-color: #8C0B2E;
  color: #8C0B2E;
}


/* Primary buttons */
.pf-v5-c-button.pf-m-primary,
button.pf-v5-c-button.pf-m-primary,
a.pf-v5-c-button.pf-m-primary {
  background-color: #8C0B2E !important;
  border-color: #8C0B2E !important;
  color: #fff !important;
}

/* Hover */
.pf-v5-c-button.pf-m-primary:hover {
  background-color: #004494 !important;
  border-color: #004494 !important;
}

/* Focus */
.pf-v5-c-button.pf-m-primary:focus {
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.4);
}

/* Disabled */
.pf-v5-c-button.pf-m-primary:disabled,
.pf-v5-c-button.pf-m-primary.pf-m-disabled {
  background-color: #9bbce3 !important;
  border-color: #9bbce3 !important;
}
