/*backend/docker/keycloak/themes/custom/login/resources/css/styles.css*/
:root {
  --default-background-color: #97a1cdff;
  --link-hover-color: #02499a;
}

#main {
  visibility: hidden;
  display: grid !important;
  align-items: center;
  line-height: normal;
  padding: 0 !important;
}

.logo-acca {
  height: 50px !important;
}

.without-dynamic-content #main {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#main .wrap-content {
  flex: 1 1 10px;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  overflow: auto;
  padding: 0 30px;
  /* width: 100%; */

  height: 100vh;
}

/* Testo messaggio di errore */
.pf-c-form__helper-text {
  color: #ff0033 !important;
}

.pf-c-form-control[aria-invalid='true'] {
  border-bottom-color: #ff0033 !important;
}

a {
  user-select: none !important;
  text-decoration: none !important;
}

/* a:hover {
  text-decoration: underline !important;
} */

.fa-google {
  background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.fa-apple{
  background: #000000;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.fa-facebook{
  background: #4267B2;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.fa-twitter{
  background: #1DA1F2;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.fa-x-twitter {
  background-image: url('../img/Twitter-X.svg');
  background-repeat: no-repeat;
}
.fa-linkedin{
  background: #0077b5;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 600px) {
  .kc-social-icon-text{
    font-size: 12px;
  }
}

.login-pf-settings {
  user-select: none !important;
  gap: 10px;
}

.form-group--password {
  margin-top: 20px;
}

.cta-register {
  user-select: none;
  color: #6c757d;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.pf-c-form__label {
  user-select: none;
  color: #6c757d;
}

.without-dynamic-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.without-dynamic-content .wrap-content {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

/*
   * Centriamo il form di login quando non esiste il contenuto dinamico 
   */
.without-dynamic-content #static-content {
  grid-column: 1 / -1 !important;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
}

.with-dynamic-content #static-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.with-dynamic-content #tsparticles {
  z-index: -1;
  height: 0 !important;
}

/* .with-dynamic-content .dynamic-content {
  padding: 20px;
}

.with-dynamic-content .dynamic-content {
  padding: 20px;
} */

.with-dynamic-content .static-content {
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

#dynamic-content {
  grid-column: 1 / 2;

  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  height: auto;
}

#static-content {
  grid-column: 2 / 3;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#main,
#spinner {
  display: flex;
  flex-direction: row;
  font-family: 'Open-Sans', Helvetica, sans-serif;
}

#spinner,
#tsparticles,
#parallax-top,
#parallax-bottom {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: calc(100% + 50px);
}

#spinner {
  align-items: center;
  justify-content: center;
}

#parallax-top {
  background-image: url('../img/bg-login.png');
}

#parallax-bottom {
  background-image: url('../img/bg-login-cloud.jpg');
  background-color: #f4f4f4;
}

.login-pf body {
  background-image: none;
}

.login-pf a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

.pf-c-form-control {
  --pf-global--primary-color--100: unset;
}

.card-pf {
  position: relative;
  width: 100% !important;
  min-width: 460px;
  margin: 0px !important;
  background-color: white;
  box-shadow: 0 0 20px #00000059;
  border-radius: 16px;
  line-height: 1;
  padding: 30px !important;
  border-top: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pf-c-dropdown {
  flex: 1 1 auto;
}

.login-pf-page {
  padding-top: 0px;
  /* flex: 1 1 auto !important; */

  display: flex;
  align-items: center;
  justify-content: center;
}

.login-pf-page .login-pf-header {
  margin-bottom: 20px !important;
}

#kc-info-wrapper {
  padding: 20px 0 0 0;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  background-color: white;
}

.kc-social-section {
  margin-top: 30px;
}

.text-muted {
  user-select: none;
  font-weight: normal !important;
  margin-bottom: 0px !important;
  font-size: 18px;
  --bs-text-opacity: 1;
  color: #6c757d !important;
  margin: 12px 0px;
}

.copyright {
  user-select: none;
  font-family: 'Open Sans Light', 'Open Sans Regular', 'Open Sans';
  font-size: 12px;
  text-align: center;
}

.kc-social-links {
  margin-top: 12px !important;
}

#kc-header-wrapper {
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2em;
  padding: 0px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#kc-header-wrapper img {
  /* position: absolute; */
  height: 46px;
}

.btn-accedi {
  user-select: none;
  height: 60px !important;
  font-size: 24px !important;
  background-color: #0180ff !important;
  font-weight: bold !important;
}

.btn-accedi:disabled {
  color: hsl(210, 100%, 36%) !important;
}

.btn-accedi:hover {
  background-color: hsl(210, 100%, 45%) !important;
}

#rememberMe {
  margin: 0px 0px 0px -20px !important;
}

h1#kc-page-title {
  margin-top: 30px;
}

.kc-social-grid {
  row-gap: 0px;
  --pf-l-grid__item--GridColumnEnd: span 4 !important;
}

.kc-social-provider-logo {
  float: unset !important;
}

/* .pf-l-grid > *, .pf-l-grid .pf-l-grid__item {
      grid-column-end: span 3 !important;
  } */

#kc-info {
  margin: 0 !important;
}

.margin-bottom-5 {
  margin-bottom: 5px !important;
}

.select-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

@media (max-width: 768px) {
  #kc-locale {
    position: unset !important;
    text-align: right;
    z-index: 9999;
  }
}

@media only screen and (max-width: 1200px) {
  #dynamic-content {
    grid-column: unset;
    order: 2;
  }

  #static-content {
    grid-column: unset;
    order: 1;
  }

  .wrap-content {
    padding-top: 7%;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr auto;
    gap: 50px;
  }

  #login-info {
    padding: 0px 10% !important;
  }
}

@media only screen and (max-width: 768px) {
  .card-pf {
    height: 100%;
  }

  #main {
    background-color: white;
  }
}

@media only screen and (max-width: 500px) {
  .card-pf {
    min-width: unset;
  }
}

.select2-selection {
  height: 36px !important;
  border-color: #ced4da !important;
}
.select2-selection__rendered,
.select2-selection__arrow {
  height: 36px !important;
  padding: 3px 0px 3px 0px;
}

.pf-c-form__helper-text.pf-m-error {
  font-size: small;
  line-height: 20px;
}

/* @media (max-width: 767px) {
    .kc-social-grid {
      grid-column-end: 6 !important;
      --pf-l-grid__item--GridColumnEnd: span 6 !important;
    }
  } */

/* @media (min-width: 768px) {
    .login-pf-page .login-pf-header {
      margin-bottom: 30px !important;
    }
  } */

/* @media (max-width: 480px) {
    i::before {
          content: none !important;
      }
  } */

#dynamic-content {
  grid-column: 1 / 2;

  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  height: auto;
}

.without-dynamic-content #dynamic-content {
  display: none !important;
}

@media screen and (max-width: 550px) {
  .with-dynamic-content #main .wrap-content {
    padding: 0 !important;
  }

  .without-dynamic-content #main .wrap-content {
    padding: 0 !important;
  }
}

.highlight + label {
  border: 2px solid #ff0000;
  border-radius: 2px;
  /* padding: 5px; */
}

#kc-username {
  padding-top: 15px;
}

.pf-c-tile {
  padding: var(--pf-global--spacer--md);
}