:root {
    --keycloak-logo-url: url('../img/keycloak-logo-text.svg');
    --keycloak-bg-logo-url: url("../img/keycloak-bg.png");
    --keycloak-logo-height: 63px;
    --keycloak-logo-width: 300px;
    --keycloak-card-top-color: var(--pf-v5-global--palette--blue-400);
}
.w-128{
  min-width:128px;
  text-align: start;
}
.text-center{
  text-align:center;
}
.cusrsor-pointer{
  cursor:pointer
}
.pf-v5-c-helper-text__item-text{
  color: #e53e3e;
    font-size: 12px;
    margin-top: 0px;
    display: block;
    text-align: start;
}
.margin-none{
  margin: 0px !important;
}
.cus-py-wrap{
  padding:5px 4px;
}
.custom-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  margin: 3px 0px;
  background-color: #f7fbff;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

.custom-input:focus {
  border-color: #4a90e2;
}

.input-error {
  border-color: #e53e3e;
}

.error-message {
  color: #e53e3e;
  font-size: 12px;
  margin-top: 0px;
  display: block;
  text-align: start;
}
.password-requirements-hint {
  color: #757575;
  font-size: 12px;
  margin: 4px 0 0 0;
  text-align: start;
}
@font-face {
            font-family: 'Segoe UI Semi Bold';
            src: url('../font/segoe-semibold.ttf') format('truetype'); 
}
@font-face {
            font-family: 'Segoe UI';
            src: url('../font/Segoe-UI.ttf') format('truetype');
            
        }



.pf-v5-c-check__input{
  width: 15px;
  height: 18px;
  flex-shrink: 0;
}

.pf-v5-c-login__container {
    grid-template-columns: 40rem;
}

.cus-forgot-title{
  font-size:20px;
}

.pf-v5-c-login__container {
    grid-template-columns: 100%;
    padding: 0px;
    grid-column-gap: 0 !important;
}

/* Info section - top margin + bottom padding */
.pf-v5-c-login__main-footer-band:first-child {
    margin-block-start: var(--pf-v5-global--spacer--lg);
}

.pf-v5-c-login__main-footer-band:last-child {
    padding-bottom: 0;
    padding-top:6px;
    border:0px !important;
}
/* Info section */

.login-pf body {
    background: var(--keycloak-bg-logo-url) no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}
.regular-font{
  font-family: "Segoe UI", Arial, sans-serif;
}
.semi-bold-font{
  font-family: "Segoe UI Semi Bold", Arial, sans-serif;
}
div.kc-logo-text {
    background-image: var(--keycloak-logo-url);
    height: var(--keycloak-logo-height);
    width: var(--keycloak-logo-width);
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

.pf-v5-c-check__label{
    color: #757575;
    font-size:14px;
}

.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text{
    top:-3px;
    left:160%;
    background-color: black;
    visibility: hidden;
    color: #fff;

    min-width:130px;
    text-align: center;
    border-radius: 2px;
    box-shadow:0 1px 8px rgba(0,0,0,0.6);
    padding: 5px;

    position: absolute;
    opacity:0;
    transition:opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity:0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

#kc-recovery-codes-list {
    columns: 2;
}

#certificate_subjectDN {
    overflow-wrap: break-word
}

#kc-verify-email-form {
    margin-top: 24px;
    margin-bottom: 24px;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    white-space: normal;
    color: black;
    text-align: center;
    margin-bottom: 5px;
}

#kc-header{
  margin-top:10px;
}

#kc-login{
	width: 72%;
    border-radius: 12px;
    font-size: 13px;
    background-color: #001ACB;
    padding: 7px;
  font-family: 'Segoe UI Semi Bold';
}

.pf-v5-u-flex-wrap, #kc-passwd-update-form .pf-v5-u-flex-nowrap{
    flex-wrap: wrap !important;
    justify-content: center;
}

hr {
    margin-top: var(--pf-v5-global--spacer--sm);
    margin-bottom: var(--pf-v5-global--spacer--md);
}

#kc-social-providers svg:not(.google) {
    filter: invert(47%) sepia(88%) saturate(7486%) hue-rotate(199deg) brightness(91%) contrast(101%);
}

#kc-social-providers svg {
    height: var(--pf-v5-global--FontSize--xl);
    min-width: 20px;
}

#kc-page-title{
	font-size: xx-large;
    margin: auto;
    color: #333;
    text-align: center;
}

.home-page-title{
  margin: 0px 0px 18px 0px;
  color: #FFFFFF;
  font-size: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.pf-v5-u-pb-sm{
  margin: auto;
  --pf-v5-global--spacer--sm: 0.6rem;
}

.pf-v5-c-button.pf-m-secondary {
    --pf-v5-c-button--after--BorderColor: transparent;
    color: inherit;
}

.pf-v5-c-button.pf-m-secondary:hover {
    --pf-v5-c-button--after--BorderColor: transparent;
    color: inherit;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 5px, rgb(205 198 198 / 0%) 0px 2px 0px !important;
}

.social-btn-wrap{
    border-radius: 11.129px;
    padding: 8px 15px;
    color: #313957;
    background: #F3F9FA !important;
    font-size:13px;
  justify-content: center !important;
    gap: 10px;
}

.pf-v5-c-login__main{
    display: flex;
    height: 100%;
}

.baymain-logo, #kc-info-message{
  text-align: center;
  margin-bottom: 5px;
}

.pf-v5-c-login__main-header{
  width: 50%;
  display: flex;
  flex-direction: column-reverse;
}

#kc-header-wrapper{
    display: none;
}

.all-social-providers{
    padding: 15px 0 2px 0;
}

.pf-v5-c-login {
    align-items: normal;
    padding: 0;
    }

.pf-v5-c-login__main-body{
    margin: auto;
    padding: 25px;
    border-radius: 16px;
    width: 38%;
    min-width: 580px;
    border: 1px solid #E5E1E1;
}

#kc-social-providers .pf-v5-c-login__main-body{
  box-shadow: 0px 0px 0px 0px;
    width: 80%;
    min-width: unset;
    padding: 8px;
    border: 0px;
}
@media (min-width: 1600px) {
  .pf-v5-c-login__main-body{
      width: 30%;
  }
  #kc-social-providers .pf-v5-c-login__main-body{
  
    
   
  }
}
#kc-info{
  border-top: none;
  padding-top: 0px;
}

.pf-v5-c-login__main-header {
    background-image: url("../img/keycloak-bg.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.baystream-banner {
  text-align: center;
  color: white;
  padding: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.baystream-banner h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.baystream-banner p {
  font-size: 13px;
  line-height: 1.4;
}

#kc-form-login{
  text-align: center;
  font-size: 20px;
}

.current-page-login .pf-v5-c-helper-text__item-text a, #kc-registration a{
    color: #001ACB;
}

#kc-registration, .back-to-signin{
    color: #000;
    font-size: 13px;
}

.alter-login{
    color: #294957;
    text-align: center;
    line-height: 100%;
    letter-spacing: 0.12px;
    margin-top: 10px;
    font-size: 13px;
}

.register-title{
    text-align: center;
    font-size: 20px;
}

.current-page-register .pf-v5-c-login__main-body{
  padding:0px 25px 25px 25px;
}

.term-checkbox{
    display: flex;
    gap: 2%;
    align-items: center;
    color: #757575;
    font-size: 13px;
    line-height: 20.896px;
    padding-left: 0px;
}

.pf-v5-c-form-control::before {
  --pf-v5-c-form-control--before--BorderTopColor: transparent;
  --pf-v5-c-form-control--before--BorderRightColor: transparent;
  --pf-v5-c-form-control--before--BorderBottomColor: transparent;
  --pf-v5-c-form-control--before--BorderLeftColor: transparent;
}
.pf-v5-c-form-control {
    display: flex;
}
.custom-input-wrapper{
  width:100%;
}
.pf-v5-c-form-control::after {
  --pf-v5-c-form-control--after--BorderBottomColor: transparent;
}

.pf-v5-c-button::after {
  --pf-v5-c-button--after--BorderColor: transparent;
  --pf-v5-c-button--m-control--after--BorderTopColor: transparent;
  --pf-v5-c-button--m-control--after--BorderRightColor: transparent;
  --pf-v5-c-button--m-control--after--BorderBottomColor: transparent;
  --pf-v5-c-button--m-control--after--BorderLeftColor: transparent;
}

.pf-v5-c-form {
    --pf-v5-c-form--GridGap: 4px;
}

.back-to-signin a, .term-checkbox a, .terms-scrollable a{
  color: #001ACB;
}

.show-eye-icon{
    position: absolute;
    right: 0px;
    top: 10px;
    background: none;
    border: 0px;
}


.pf-v5-c-input-group{
  position: relative;
}

.show-button-eye{
    background: none;
}

#kc-form-buttons, .pf-v5-c-form__actions{
  display: flex;
  justify-content: center;
  font-size: 13px;
  font-family: 'Segoe UI Semi Bold';
}

.kc-form-submit, .current-page-login-reset-password #kc-form-buttons, #kc-passwd-update-form button.pf-v5-c-button.pf-m-primary.pf-m-block, #kc-logout{
    width: 75% !important;
    border-radius: 12px;
    background-color: #001ACB !important;
    padding: 6px;
}

.email-verify-wrap, .email-verify-title, .update-password-title, .update-password-wrap{
  display:none
}

.current-page-login-verify-email .email-verify-wrap, .current-page-login-verify-email .email-verify-title, .current-page-login-update-password .update-password-title, .current-page-login-update-password .update-password-wrap{
  display:inline-block;
}

.current-page-login-update-password .mainImage,
.current-page-login-update-password .welcome-header-title,
.current-page-login-update-password .baystream-banner,
.current-page-login-verify-email .mainImage,
.current-page-login-verify-email .welcome-header-title,
.current-page-login-verify-email .baystream-banner {
  display: none;
}

@media (prefers-color-scheme: dark) {
    #kc-social-providers svg:not(.google) {
      filter: invert(54%) sepia(96%) saturate(2028%) hue-rotate(174deg) brightness(99%) contrast(97%);
    }
}

@media (max-width: 439px) {

  #kc-login {
    width: 28%;
}
}

@media (max-width: 360px) {
  .pf-v5-u-pb-sm {
    width: 100%;
    margin: auto;
  }
}

@media (max-width: 1200px) {
  .pf-v5-c-login__main{
      display: block;
  }
  
  .pf-v5-c-login__main-header {
      border-bottom-style: groove;
      border-right-style: hidden;
      width: auto;
  }
}

@media (max-width: 767px){
  .pf-v5-c-login__main {
      /* display: flex;
      flex-direction: column-reverse; */
    }
  .pf-v5-c-login__main-header {
      border-bottom-style: hidden;
      border-right-style: hidden;
      border-top-style: groove;
      width: auto;
  }
}
@media (max-width: 1200px){
 
  .baystream-banner, .mainImage, .logout-confirm-image{
    display:none
  }
  .pf-v5-c-login__main-header {
    background-image: none;
    border: none;
    padding: 0px;
    width: 100%;
  }
  .pf-v5-c-login__main{
    background:transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    box-shadow:none;
  }
  .pf-v5-c-login__main-body {
    margin: 0 auto;
    background: white;
    width:85%;
    padding: 25px !important;
  }
  #kc-social-providers .pf-v5-c-login__main-body{
          padding: 8px !important;
  }
  #kc-header{
    display:none;
  }
  #kc-login {
        width: 69% !important;
        margin: 8px 0px !important;
  }
  .pf-v5-c-login__container {
    max-width: var(--pf-v5-c-login__container--MaxWidth) !important;
    width: 100% !important;
  }
  .pf-v5-c-login__container {
    grid-template-columns: 100%;
    justify-content: center;
    padding: 0px;
    grid-column-gap: 0 !important;
  }

  .current-page-login-page-expired .welcome-header-title,
  .current-page-error .welcome-header-title{
    display: none;
  }
}

@media (min-width: 1201px) {
  .current-page-login-page-expired .baystream-banner,
  .current-page-error .baystream-banner,
  .current-page-login-page-expired .mainImage,
  .current-page-error .mainImage {
    display: none;
  }

  .current-page-login-page-expired .welcome-header-title,
  .current-page-error .welcome-header-title{
    display: none;
  }

  .current-page-login-page-expired .pf-v5-c-login__main-header,
  .current-page-error .pf-v5-c-login__main-header {
    background-image: none;
    border: none;
    padding: 0px;
    margin: 0 auto;
  }

  .current-page-login-page-expired .pf-v5-c-login__main,
  .current-page-error .pf-v5-c-login__main {
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 10px;
    box-shadow: none;
  }

  .current-page-login-page-expired .pf-v5-c-login__main-body,
  .current-page-error .pf-v5-c-login__main-body {
    margin: 0 auto;
    background: white;
    width: 70%;
    padding: 25px !important;
  }

  .current-page-login-page-expired #kc-social-providers .pf-v5-c-login__main-body,
  .current-page-error #kc-social-providers .pf-v5-c-login__main-body {
    padding: 8px !important;
  }

  .current-page-login-page-expired #kc-header,
  .current-page-error #kc-header {
    display: none;
  }

  .current-page-login-page-expired #kc-login,
  .current-page-error #kc-login {
    width: 60% !important;
  }

  .current-page-login-page-expired .pf-v5-c-login__container,
  .current-page-error .pf-v5-c-login__container {
    max-width: var(--pf-v5-c-login__container--MaxWidth) !important;
    width: 100% !important;
    grid-template-columns: 40%;
    padding: 0px;
    grid-column-gap: 0 !important;
  }
}
 

button[aria-label="Show password"] .eye-open, button[aria-label="Passwort einblenden"] .eye-open { display: none !important; }
button[aria-label="Hide password"] .eye-close, button[aria-label="Passwort ausblenden"] .eye-close { display: none !important; }

#back-to-login {
    width: 75% !important;
    border-radius: 12px;
    background-color: transparent;
    padding: 6px;
    color: #001ACB !important;
    border: 1px solid #001ACB !important;
    font-family: 'Segoe UI Semi Bold';
    font-size:13px;
  display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pf-v5-c-button.pf-m-primary{
  font-size:13px;
  cursor:pointer;
}
.current-page-login-reset-password .pf-v5-c-login__main-footer{
  display:none
}
.pf-v5-c-form__helper-text{
    margin: 0px;
}
@media (max-width:375px){
  #kc-login {
        width: 75% !important;
       
  }
}

.cus-new-select-wrap.custom-input {
    max-width: 150px;
    min-width: 150px;
    width: auto;
    padding: 0px 4px;
    position:fixed;
    right:30px;
    top:20px;
    z-index:100;
}
.cus-new-select-wrap.custom-input .pf-v5-c-form-control, select{
      background-color: transparent !important;
}
.cus-new-select-wrap.custom-input .pf-v5-c-form-control select{
  padding:5px 5px;
  max-width: 130px;
  outline: none;
}
.cus-new-select-wrap.custom-input .pf-v5-c-form-control .pf-v5-c-form-control__utilities{
  width:20px;
  height:20px;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 100;
}
.cus-new-select-wrap.custom-input .pf-v5-c-form-control .pf-v5-c-form-control__utilities .pf-v5-c-form-control__toggle-icon{
  padding:5px 0px;
}

@media (max-width:485px){
  .pf-v5-c-login__main{
    /* padding-top:120px */
  }
  .cus-new-select-wrap.custom-input {
    position:relative;
    right: -100px;
    top: -10px;
    margin-bottom: 5px;
  }
}
img.mainImage {
    max-width: 80%;
}
.logout-confirm-image{
    max-width: 75%;
}
.email-verify-wrap, .update-password-wrap{
  max-width:80%;
}
.pf-v5-c-title.pf-m-3xl{
  text-align:center;
}
@media (max-width: 1200px){
  .email-verify-wrap, .update-password-wrap{
    display:none !important;
  }
  .w-128 {
    min-width: 130px;
    text-align: start;
    white-space: normal;
}
}
.error-main-wrap{
  display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    text-align: center;
    gap: 10px;
    justify-content:center;
    align-items: center;
}
.instruction{
  text-align:center;
}
.current-page-error .cus-new-select-wrap.custom-input, .current-page-login-page-expired .cus-new-select-wrap.custom-input, .current-page-login-verify-email .cus-new-select-wrap.custom-input, .current-page-login-reset-password .cus-new-select-wrap.custom-input
, .current-page-logout-confirm .cus-new-select-wrap.custom-input
, .current-page-login-update-password .cus-new-select-wrap.custom-input{
        position: fixed;
        right: 20px;
        top: 20px;
        margin-bottom: 0px;
}

.logout-title{
    padding-bottom: 10px;
    margin-bottom: 5px;
    text-align: center;
}

#kc-form-buttons input, .pf-v5-c-form__actions button, .pf-v5-c-form__actions input {
  width: 75% !important;
  border-radius: 12px;
  background-color: #001ACB !important;
  padding: 6px;
}

.partial-header-section, .current-page-logout-confirm .default-header-section {
  display: none;
}

.current-page-logout-confirm .partial-header-section{
  display: block;
}

.social-btn-wrap {
  white-space: normal !important;
}

.pf-v5-l-grid{
  grid-template-columns: none;
}

#social-apple span {
  font-family: "Segoe UI Semi Bold", Arial, sans-serif;
}

#social-apple svg {
  filter: contrast(150%) brightness(110%) !important;
  transform: scale(1.3);
  transform-origin: center;
}

.fa-apple:before {
  content: none;
}


@media (max-width: 360px) {
    .w-128 {
        min-width: 80px;
        text-align: start;
        white-space: normal;
    }
}

/* Force center of the white login card at medium widths */
@media (max-width: 1200px) {
  .pf-v5-c-login {
    padding-block-start: 0 !important;
    padding-block-end: 0 !important;
  }

  .pf-v5-c-login__container,
  .pf-v5-c-login__main {
    height: 100vh;
    min-height: 100vh;
  }

  .pf-v5-c-login__main {
    position: relative;
  }

  .pf-v5-c-login__main-header,
  .pf-v5-c-login__main-footer {
    position: absolute;
    left: 0;
    right: 0;
  }

  .pf-v5-c-login__main-header {
    top: 24px;
  }

  .pf-v5-c-login__main-footer {
    bottom: 12px;
  }

  .pf-v5-c-login__main-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
  }
}





/* Allow natural flow on very small screens to avoid clipping */
@media (max-width: 600px) {
  .pf-v5-c-login__main {
    height: auto;
    min-height: 100vh;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pf-v5-c-login__main-header,
  .pf-v5-c-login__main-footer {
    position: static;
  }

  .pf-v5-c-login__main-body {
    position: static;
    transform: none;
    margin: 0 auto !important;
    width: 92%;
    min-width: 0;
  }
}
