@media (max-width: 1200px) {
  .pf-v5-c-login__main {
    padding: 32px 45px;
    box-sizing: border-box;
    width: 100%!important;
    margin: 0!important;
    height: unset!important;
    flex-grow: 1;
  }

  .pf-v5-c-login__main-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
  }

  .pf-v5-c-login__main-header {
    margin-bottom: 32px;  
  }

  .pf-v5-c-login__main-header, 
  .pf-v5-c-login__main-body{
    padding-inline-start: 0!important;
    padding-inline-end: 0!important;
    padding-block-end: 0%!important;
  }

  #brand {
    margin: 28px 78px!important;
  }
  
  #intescia_sentence {
    display: none!important;
  }
  
  #kc-header-wrapper {
    margin-block-end:0!important;
  }
  
  #brand {
    padding-top: 0!important;
    padding-bottom: 0!important;
  }
  
  #logo_intescia {
    margin-bottom: 1.5rem!important;
    margin-top: 1.5rem!important;
  }
  
  
  .pf-v5-c-login {
    padding: 0;
  }
  
  .mobile-header {
    height: 88px;
    background-image: url(../img/background.png);
  }
  
  .pf-v5-c-login__container {
    display: flex;
    flex-direction: column;
  }
  
  .mobile-links {
    color: var(--light-text-color);
    /* Text */
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .mobile-links {
    display: block!important;
  }

  .mobile-link:not(:last-of-type) {
    margin-bottom: 12px;
  }

  .links {
    display: none!important;
  }
  
  .pf-v5-c-login__header {
    padding-inline-end: 0!important;
    padding-inline-start: 0!important;
  }
}

@media (min-width: 1200px) {
  .pf-v5-c-login {
    display: flex;
    padding: 0;
  }

  .pf-v5-c-login__main-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
  }

  .pf-v5-c-login__main>.pf-v5-c-login__main-footer,
  .pf-v5-c-login__main-body,
  .pf-v5-c-login__main-header {
    padding-inline-start: 45px;
    padding-inline-end: 45px;
  }
  
  .pf-v5-c-login__container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    height: 100vh;
    grid-column-gap: unset;
    justify-content: start;
    padding-inline-start: unset;
    padding-inline-end: unset;
  }

  .pf-v5-c-login__header {
    --pf-v5-c-login__header--xl--MarginTop: 0;
    flex-grow: 1;
    height: 100%;
  }
  
  .pf-v5-c-brand {
    height: 100%;
  }


  .pf-v5-c-login__main-header {
    padding-block-start: 6rem!important;
  }
}

.mobile-links {
  display: none;
}

.pf-v5-c-login__main>:last-child:not(.pf-v5-c-login__main-footer) {
  padding-block-end: 25px;
}

.pf-v5-c-login__main-header-utilities {
  display: none;
}

#right-part {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  justify-content: space-between;
  flex-direction:column;
  align-items: center;
  background-color: #1B0E36;
  background-image: url(../img/squares.svg);
  background-size: 119% auto;
  background-origin:border-box;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
}

#brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 25vh;
  padding-bottom: 3rem;
  color: #FFF;
  font-family: 'Montserrat';
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 200;
  line-height: normal;
}

.pf-v5-c-form__label-text, .pf-v5-c-check__label {
  font-size: 0.875rem;
  font-weight: 400;
}
.pf-v5-c-check__label {
  line-height: normal;
  padding-top: 3px;
}

#logo_intescia {
  margin-top: 2rem;
  height: 54px;
  width: auto;
}

.line {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.line:nth-of-type(1),
.line:nth-of-type(3) {
  margin-left: 2rem;
  margin-right: 2rem;
}

.line a {
  height: 17px;
}

#intescia_sentence {
  font-size: 1.25rem;
  color: #FFF;
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.pf-v5-c-form__label {
  padding-bottom: 8px;
}

.pf-v5-c-login__main {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0;
  height: 100%;
  width: 500px;
}

.pf-v5-c-button.pf-m-primary.pf-m-block {
  border-radius: 3px;
  padding: 0.5rem 1.5rem;
  width: unset;
  background: var(--login-button--BackgroundColor);
  color: var(--login-button--Color);
  height:41px;
  font-size: 14px;
  padding: 0 26px;
}

.pf-v5-c-button.pf-m-primary.pf-m-block:hover {
  background: var(--login-button-hover--BackgroundColor);
  box-shadow: var(--login-button-hover--shadow);
  color: var(--login-button-hover--Color);
}

.pf-v5-c-button.pf-m-primary.pf-m-block:active {
  background: var(--login-button-pressed--BackgroundColor);
  box-shadow: var(--login-button-pressed--shadow);
  color: var(--login-button-pressed--Color);
}

.pf-v5-c-login__main-header {
  padding-block-start: 1rem;
  padding-bottom: 4rem;
}


:root,
:where(:root) {
  --pf-v5-global--FontFamily--heading: 'Montserrat', sans-serif!important;
  --pf-v5-global--FontFamily--text: 'Montserrat', sans-serif!important;
  --pf-v5-global--FontSize--3xl: 2rem!important;
  --pf-v5-global--Color--100: #1B0E36;
  --links-card--BackgroundColor: #FFF;
  --links-button--BackgroundColor: rgba(15, 57, 160, 0.12);
  --links-button-hover--BackgroundColor: rgba(15, 57, 160, 0.29);
  --links-button-pressed--BackgroundColor: rgba(15, 57, 160, 0.22);
  --links-button--BorderColor: rgb(97, 126, 191);
  --links-button--TextColor: #1B0E36;
  --links-button-hover--TextColor: #26144C;
  --links-button-pressed--TextColor: #1B0E36;
  --login-button--BackgroundColor: #1B0E36;
  --login-button-hover--BackgroundColor: #26144C;
  --login-button-pressed--BackgroundColor: #26144C;
  --login-button-hover--shadow: 0px 4px 6.8px 0px rgba(0, 0, 0, 0.17);
  --login-button-pressed--shadow: -3px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
  --login-button--Color: #FFFFFF;
  --login-button-hover--Color: #FFFFFF;
  --login-button-pressed--Color: #FFFFFF;
  color: var(--pf-v5-global--Color--100);
  --login-left-part-background-color: #F4F3F5;
  --checkbox-color: #fff;
  --checkbox-accent-color: #1B0E36;
  font-family: Montserrat;
  --light-text-color: #8D869B;
}

.pf-v5-theme-dark {
  --pf-v5-global--Color--100: #ffffff;
  --links-card--BackgroundColor: #493E5E;
  --links-button--BackgroundColor: rgba(27, 14, 54, 0.47);
  --links-button-hover--BackgroundColor: rgba(27, 14, 54, 0.60);
  --links-button-pressed--BackgroundColor: rgba(27, 14, 54, 0.47);
  --links-button--BorderColor: #1B0E36;
  --links-button--TextColor: #FFF;
  --links-button-hover--TextColor: #FFF;
  --links-button-pressed--TextColor: #FFF;
  --login-left-part-background-color: #32264A;
  --login-button--BackgroundColor: #F0F9FF;
  --login-button-hover--BackgroundColor: #D2E4EF;
  --login-button-pressed--BackgroundColor: #D2E4EF;
  --login-button-hover--shadow: 0px 4px 6.8px 0px rgba(0, 0, 0, 0.17);
  --login-button-pressed--shadow: -3px 4px 4px 0px rgba(0, 0, 0, 0.11) inset;
  --pf-v5-global--BackgroundColor--400: #5E5672;
  --login-button--Color: #1B0E36;
  --login-button-hover--Color: #26144C;
  --login-button-pressed--Color: #1B0E36;
  --checkbox-color: #1B0E36;
  --checkbox-accent-color: #F0F9FF;
  --light-text-color: #776E86;
}

.links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

#reset-login .kc-tooltip-text {
  display: none;
}

.pf-v5-c-check__input {
  accent-color: var(--checkbox-accent-color);
  color: var(--checkbox-color);
  border: 1px solid var(--checkbox-accent-color);
}

.links .link {
  background-color: var(--links-card--BackgroundColor);
  padding: 20px;
  height: 220px;
  width: 195px;
  display: flex;
  flex-direction: column;
}

.links .link .title {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.links .link .content {
  font-size: 12px;
  font-weight: 400;
  flex-grow: 1;
  margin: 12px 0;
  line-height: normal;
}

.links .link .action {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

a.pf-v5-c-button.pf-m-secondary.pf-m-block {
  display: flex;
  align-items: anchor-center;
  font-size: 14px;
}

#kc-info {
  margin-top: 10px;
}

.pf-v5-c-button.pf-m-secondary.pf-m-block:hover,
.links .link .action .pf-v5-c-button:hover {
  background-color: var(--links-button-hover--BackgroundColor);
  color: var(--links-button-hover--TextColor);
}

.pf-v5-c-button.pf-m-secondary.pf-m-block:active,
.links .link .action .pf-v5-c-button:active {
  background-color: var(--links-button-pressed--BackgroundColor);
  color: var(--links-button-pressed--TextColor);
}

.pf-v5-c-button.pf-m-secondary.pf-m-block,
.links .link .action .pf-v5-c-button {
  background-color: var(--links-button--BackgroundColor);
  border-color: var(--links-button--BorderColor)!important;
  border: 1px solid;
  color: var(--links-button--TextColor);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  height: 41px;
  padding: 0 12px;
  width: auto;
}

.pf-v5-c-login__main {
  background-color: var(--login-left-part-background-color);
}

.pf-v5-c-alert__title {
  font-weight: 500;
}

@media (orientation: portrait) {
  .pf-v5-c-login {
    background-size: auto 100%;
    background-origin: border-box;
  }
  .pf-v5-c-login__main {
    margin: 0 8px;
  }
}