/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
   This clashes with the "keycloak-bg.png' background defined on the body below.
   Therefore the Patternfly background must be set to none. */
.login-pf {
    background: none !important; /* This removes the existing background */
}

.login-pf body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: url("../img/gendox-back-dark.webp") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh; /* ensure full viewport height but allow expansion */
    overflow-y: auto;  /* allow vertical scrolling */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EAEAFF;
    margin: 0;
    padding: 0 15px;
}


h1#kc-page-title {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
}

.subtitle {
    color: #bbb;
    font-size: 14px;
    /*margin-top: 10px;*/
    text-align: center;
    margin-bottom: 10px;

}

.subtitle-right{
    color: #bbb;
    font-size: 14px;
    /*margin-top: 10px;*/
    text-align: right;
    margin-bottom: 20px;

}

/* Logo Styling */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 5px;
}

.logo-container img {
    max-width: 250px;
    height: auto;
}

/* Card Styling */
.card-pf {
    box-sizing: border-box;
    width: 100%;
    max-width: 450px;
    background-color: #3A3E5B;
    border: 2px solid #0CD4A5;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin: 0 auto;
}

.card-pf h1, .card-pf label, .card-pf p {
    color: #ffffff;
}

.card-pf input, .card-pf button {
    font-family: 'Inter', sans-serif;
}

/* Input Styling */
.pf-c-form-control {
    background-color: #3A3E5B;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(234, 241.75, 255, 0.22);
    color: #EAEAFF;
    font-size: 16px;
    letter-spacing: 0.15px;
    font-weight: 500;
    transition: border-color 0.3s;
}

.pf-c-form-control:focus {
    border-color: #0CD4A5;
    outline: none;
    box-shadow: 0 0 8px rgba(8, 182, 141, 0.5);
}

/* Button Styling */
.pf-c-button.pf-m-primary {
    background-color: #0CD4A5;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 12px 16px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, transform 0.3s;
}

.pf-c-button.pf-m-primary:hover {
    background-color: #0CD4A5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(8, 182, 141, 0.3);
}

.pf-c-button.pf-m-control {
    position: absolute;
    right: 10px; /* Position the button inside the input field */
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    /*background-color: #3C3F5A;*/
    background-color: transparent;
    border: 1px solid #3A3E5B;
    /*margin-left: -45px;*/
    cursor: pointer;
}

/*.pf-c-button.pf-m-control:hover {*/
/*    background-color: #3C3F5A;*/
/*}*/


.pf-c-button.pf-m-control {
    --pf-c-button--after--BorderWidth: 0; /* No border width */
    --pf-c-button--after--BorderColor: transparent; /* Make sure the border color is transparent */
    border: none; /* Ensure there's no border */
}


/*.pf-c-button.pf-m-control {*/
/*    --pf-c-button--after--BorderColor: var(--pf-c-button--m-control--after--BorderColor, #08B68D); !* Example color *!*/
/*    --pf-c-button--after--BorderWidth: var(--pf-c-button--m-control--after--BorderWidth, 2px); !* Default border width *!*/
/*}*/




/* Icons Styling */
.fa-eye, .fa-eye-slash {
    color: #ffffff;
}

/* Remember Me and Forgot Password */
#kc-form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #bbb;
    font-size: 14px;
}

#kc-form-options a {
    color: #08B68D;
    text-decoration: none;
    transition: color 0.3s;
}

#kc-form-options a:hover {
    color: #0CD4A5;
}

/* Social Provider Buttons */
.kc-social-section {
    text-align: center;
    margin-top: 30px;
}

.kc-social-section hr {
    border-color: rgba(234, 241.75, 255, 0.1);
    margin-bottom: 20px;
}

.kc-social-item {
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
    background-color: #3C3F5A;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.kc-social-item:hover {
    background-color: #08B68D;
    transform: translateY(-2px);
}

.kc-social-provider-name {
    margin-left: 10px;
    font-size: 16px;
}

/* Locale Dropdown */
#kc-locale {
    margin-top: 20px;
    text-align: right;
}

#kc-locale-dropdown button {
    color: #bbb;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

#kc-locale-dropdown button:hover {
    color: #08B68D;
}

#kc-locale ul {
    background-color: #3C3F5A;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#kc-locale ul a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 5px;
}

#kc-locale ul a:hover {
    color: #08B68D;
}


/* Input Group Styling */
.pf-c-input-group {
    background: transparent;
    /*display: flex;*/
    align-items: center;
    position: relative;
}

.pf-c-input-group input {
    background-color: #3C3F5A;
    padding-right: 40px;
    position: relative;
    z-index: 1; /* Ensure the input stays behind the button */
}

.pf-c-input-group input:focus {
    z-index: 1; /* Ensure the input doesn't come in front when focused */
}


/* Alert Messages */
.pf-c-alert {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.pf-c-alert.pf-m-danger {
    background-color: #FF4C4C;
    color: #fff;
}

.pf-c-alert.pf-m-warning {
    background-color: #FFA500;
    color: #fff;
}

.pf-c-alert.pf-m-success {
    background-color: #08B68D;
    color: #fff;
}

.pf-c-alert.pf-m-info {
    background-color: #17A2B8;
    color: #fff;
}

.pf-c-alert__icon {
    margin-right: 10px;
}

.pf-m-error {
    color: #FF8C90;
}

.pf-c-form-control.pf-m-error {
    border: 1px solid #FF8C90;
}

.kc-alert-title {
    font-size: 16px;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .card-pf {
        max-width: 90%;
        padding: 20px;
    }

    .logo-container img {
        max-width: 120px;
    }

    .login-pf body {
        display: block;
        padding-top: 20px; /* add extra spacing at the top */
    }
}

@media (max-height: 500px) {
    .login-pf body{
        /* align-items: flex-start; Start the card at the top instead of centering */
        padding-top: 20px; /* Ensure there's some top padding */
        display: block;
    }
    .card-pf {
        margin-top: 20px; /* Optional: add extra space so the card isn't flush against the top */
    }
}













