/* background override per PF5 login */
.pf-v5-c-login {
    background: none;
}

.pf-v5-c-login body {
    background: url("../img/arcturus_bg.webp") no-repeat center center fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    image-rendering: crisp-edges;
    height: 100%;
    margin: 0;
    padding: 0;
}

html{
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

/* Form controls */
textarea.pf-v5-c-form-control {
    height: auto;
}

.pf-v5-c-alert__title {
    font-size: var(--pf-global--FontSize--xs);
}

.pf-v5-c-button.pf-m-control {
    border-color: rgba(230, 230, 230, 0.5);
}

/* Header */
#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
}

/* Logo */
.login-pf-page .pf-v5-c-brand {
    margin-top: 20px;
    max-width: 360px;
    width: 40%;
}

.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}

.kc-logo-text span {
    display: none;
}

/* Form card (was .card-pf) */
.pf-v5-c-card {
    margin: 0 auto;
    box-shadow: var(--pf-global--BoxShadow--lg);
    /* padding: 0 20px; */
    max-width: 500px;
    border-top: 4px solid var(--pf-global--primary-color--100);
}

/* Tooltip */
.kc-login-tooltip .kc-tooltip-text {
    background-color: black;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    padding: 5px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
}

.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity: 0.7;
}


@media (max-width: 768px) {
  body, html {
    height: 100%;
  }

  .pf-v5-l-bullseye,
  .pf-v5-c-login__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }
}



@media (min-width: 1200px) {
  .pf-v5-c-login__container {
    all: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
  }

  .pf-v5-c-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

.logoCustom{
    max-width: 190px !important;
    margin-top: 20px !important;
}

.titleFormCustom{
    text-align: center !important;
    font-family: "Open sans", sans-serif;
    margin-bottom: 20px !important;
    font-weight: 300 !important;
}

.customLabel{
    font-family: "Open sans", sans-serif;
    font-size: smaller !important;
}

.pf-v5-c-form__label{
line-height: 0% !important;
}

.pf-v5-c-form__label-text {
    font-weight: unset !important;
} 

.customForm{
    margin: 20px ! important;
    min-height: 200px !important;
}

/* CUSTOM RESET PASSWORD */

#kc-reset-password-form{
 height: auto !important;
 width: 380px !important;
 margin: 30px !important;
}

#kc-reset-password-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* spazio verticale tra gli elementi */
  width: 380px;
  margin: 30px auto; /* centrato */
}

#kc-reset-password-form .form-group {
  display: flex;
  flex-direction: column;
}

.customBtn{
    max-height: 40px !important;
    margin-bottom: 10px !important;
}


/* CUSTOM  PAGINA CAMBIO PASSOWRD */

#kc-passwd-update-form{
    align-items: center !important;
    justify-content: center !important ;
    min-height: 255px !important;
    min-width: 280px !important;
}

/* custom pagina conferma logout */


#kc-logout-confirm {
    display: flex !important;
    align-items: center !important;
    flex-direction: column;
    min-height: 255px !important;
    min-width: 280px !important;
}

.customLogoutForm{
    display: flex;
    flex-direction: column;
    
}

#kc-logout {
    margin-bottom: 20px !important;
}




