:root {
    --keycloak-logo-url: url('../img/keycloak-logo-text.svg');
    --keycloak-bg-logo-url: url("../img/keycloak-bg-darken.svg");
    --keycloak-logo-height: 63px;
    --keycloak-logo-width: 300px;
    --keycloak-card-top-color: var(--pf-v5-global--palette--blue-400);

    --custom-white-color: #FFFFFF;
    --custom-purple-color: #672AA7;
    --custom-black-color: #231F20;
    --custom-turquoise-color: #2ABAFF;
    --custom-red-color: #FF0000;
    --custom-light-grey-color: #E2E8F0;
    --custom-hover-turquoise-color: #1da9ee;
    --custom-button-disabled-color: #94A3B8;

    --left-elements-padding-left: 220px;
}

.pf-v5-c-login__container {
    grid-template-columns: 34rem;
    grid-template-areas: "header"
                         "main"
}

.pf-v5-c-login__main-header {
    border-top: 4px solid var(--keycloak-card-top-color);
}

/* Info section - top margin + bottom padding */
.pf-v5-c-login__main-footer {
    position: relative;
}

.pf-v5-c-login__main-footer-band {
    border-block-start: none !important;
}

.pf-v5-c-login__main-footer-band:first-child {
    padding-block-start: 0 !important;
    padding-top: 0 !important;
    margin-block-start: 0 !important;
}

.pf-v5-c-login__main-footer-band:last-child {
    padding-bottom: 0;
}
/* Info section */

.login-pf body {
    /*background: var(--keycloak-bg-logo-url) no-repeat center center fixed;*/
    background-color: lightblue; !important;
    /*color: var(--keycloak-card-top-color);*/
    background-size: cover;
    height: 100%;
}

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;
}

.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: var(--pf-v5-global--Color--light-100) !important;
    text-align: center;
}

hr {
    margin-top: var(--pf-v5-global--spacer--sm);
    margin-bottom: var(--pf-v5-global--spacer--md);
}

/*In case we will want to add the default icons in the SSO providers button*/
/*#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);*/
/*    display: none !important;*/
/*}*/
/*   */
/*@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 (min-width: 768px) {
    div.pf-v5-c-login__main-header {
        grid-template-columns: 70% 30%;
    }
}

.svg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/Login-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -100;
}

/* Background section stripe*/
.svg-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 225px;
    width: 735px;
    height: 100%;
    opacity: 0.2;
    background: var(--base-accent, #F9FAFB);
    z-index: 1;
}

.custom-logo-container {
    position: fixed;
    top: clamp(46px, 3vh, 46px);
    left: clamp(44px, 10vw, 44px);
    z-index: 100;
    width: clamp(135px, 10vw, 135px);
    height: clamp(52px, 10vw, 52px);
}

/* Logo image itself */
.armis-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pf-v5-c-login__main {
    background-color: transparent; /* Remove background color */
    box-shadow: none;            /* Remove box shadow */
}

.decorative-element {
    position: fixed;
    bottom: 0;
    right: 0;
    width: clamp(15px, 40vw, 540px);   /* Min 180px (allows for 3x60px squares at smallest), preferred 40% of vw, max 540px */
    height: clamp(15px, 40vw, 540px);
    display: flex;
    flex-wrap: wrap;
    z-index: 10;
}

.square {
    width: 33.3333%;
    height: 33.3333%;
    box-sizing: border-box;
}

.black-square {background-color: var(--custom-black-color);}
.purple-square {background-color: var(--custom-purple-color);}
.white-square {background-color: var(--custom-white-color);}
.turquoise-square {background-color: var(--custom-turquoise-color);}

.pf-v5-c-login__main {
    background-color: transparent !important;
    box-shadow: none !important;
    width: 1000px;
    max-width: 50vw;
}

.pf-v5-c-login {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    --pf-v5-c-login__container--PaddingLeft: 0 !important;
    --pf-v5-c-login__container--PaddingRight: 5vw !important; /* Adjust as desired, 5vw is 5% of viewport width */
    --pf-v5-c-login__container--MaxWidth: unset !important; /* Allow container to take full width of .pf-v5-c-login */

    margin-left: 0 !important;
}

.pf-v5-c-login__container {
    width: 100%;
    padding-right: 0;
    display: flex;
    justify-content: flex-start;
    padding-left: 287px;
    margin-top: 150px;
}

.pf-v5-c-title.pf-m-3xl {
    font: 20px "proxima-nova", sans-serif;
}

.pf-v5-c-form__label {
    display: none !important;
}

.pf-v5-c-form-control {
    background: var(--custom-white-color);
    border: 1px var(--custom-white-color) solid;
    border-radius: 8px;
    width: 312px;
    max-width: 312px;
    color: var(--custom-black-color) !important;
}

.pf-v5-c-form-control::before,
.pf-v5-c-form-control::after {
    display: none !important;
    border: none !important;
 }

.pf-v5-c-button {
    width: 312px;
    max-width: 312px;
}

.pf-v5-c-button.pf-m-primary {
    background-color: var(--custom-turquoise-color);
    border-radius: 8px;
    cursor: pointer;
}

.pf-v5-c-button.pf-m-primary:disabled,
.pf-v5-c-button.pf-m-primary.disabled {
    background-color: var(--custom-button-disabled-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.pf-v5-c-button.pf-m-secondary {
    background-color: #F8F3FE;
    color: #8338EC;
    border-radius: 8px;
}

.pf-v5-c-button.pf-m-secondary::after {
    border: 0 none !important;
    display: none !important;
}

.pf-v5-c-button.pf-m-link {
    background-color: #F8F3FE;
    color: #8338EC;
    border-radius: 8px;
}

.pf-v5-c-button.pf-m-link::after {
    border: 0 none !important;
    display: none !important;
}

/* Style original "Or" divider */
.pf-v5-c-login__main-footer-band-item.pf-v5-u-font-size-sm.pf-v5-u-color-200 {
    display: flex !important;
    align-items: center;
    width: 312px !important;
    max-width: 312px !important;
    min-width: 312px !important;
    margin: 27px 0 0 -16px !important;
    gap: 12px;
    box-sizing: border-box;
    color: var(--custom-white-color) !important;
    font-size: 14px !important;
    white-space: nowrap;
}

.pf-v5-c-login__main-footer-band-item.pf-v5-u-font-size-sm.pf-v5-u-color-200::before,
.pf-v5-c-login__main-footer-band-item.pf-v5-u-font-size-sm.pf-v5-u-color-200::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background-color: var(--custom-white-color);
    min-width: 0;
}

/* Social providers "Or" divider */
.kc-social-divider {
    display: flex;
    align-items: center;
    width: 312px;
    max-width: 312px;
    margin: 30px 0px 30px 0;
    gap: 12px;
}

.kc-social-divider::before,
.kc-social-divider::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background-color: var(--custom-white-color);
}

.kc-social-divider-text {
    color: var(--custom-white-color);
    font-size: 14px;
    white-space: nowrap;
    font-family: "Proxima Nova", sans-serif;
}

.pf-v5-c-login__main-body {
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-v5-c-login__main-header {
    padding-inline-start: 0;
    border-top: none;
}

#kc-header {
    display: none;
}

/* Spacing for login form fields */
#kc-form-login .pf-v5-c-form__group {
    margin-bottom: -15px;
}

/* Space between password field and login button */
#kc-form-login .pf-v5-c-button {
    margin-top: 15px;
    margin-bottom: 10px;
}

#username {
    color: var(--custom-black-color) !important;
    font: 250 14px "proxima-nova", sans-serif;
    height: 36px;
    padding-left: 15px;
}

#username::placeholder {
    letter-spacing: 0.5px;
}

#username:focus {
    outline: none;
    border: none;
}

#password {
    color: var(--custom-black-color) !important;
    font: 250 14px "proxima-nova", sans-serif;
    height: 36px;
    padding-left: 15px;
}

#password::placeholder {
    letter-spacing: 0.5px;
}

#password:focus {
    outline: none;
    border: none;
}

#userLabel {
    color: var(--custom-black-color) !important;
    font: 250 14px "proxima-nova", sans-serif;
    height: 36px;
    padding-left: 15px;
}

#userLabel::placeholder {
    letter-spacing: 0.5px;
}

#userLabel:focus {
    outline: none;
    border: none;
}

.one-time-code-label {
    overflow: hidden;
    color: var(--custom-white-color);
    text-overflow: ellipsis;
    font-family: ProximaNovaW08-Regular, "Proxima Nova", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--text-sm-line-height, 16px);
    margin-bottom: 12px;
}

#password-new {
    color: var(--custom-black-color) !important;
    font: 250 14px "proxima-nova", sans-serif;
    height: 36px;
    padding-left: 15px;
}

#password-new::placeholder {
    letter-spacing: 0.5px;
}

#password-new:focus {
    outline: none;
    border: none;
}

#password-confirm {
    color: var(--custom-black-color) !important;
    font: 250 14px "proxima-nova", sans-serif;
    height: 36px;
    padding-left: 15px;
}

#password-confirm::placeholder {
    letter-spacing: 0.5px;
}

#password-confirm:focus {
    outline: none;
    border: none;
}

.product-logo-container {
    position: absolute;
    width: 610px;
    height: 198px;
    left: 288px;
    z-index: 50;
}

.product-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-tagline {
    color:  var(--custom-white-color) !important;;
    font-family: "Proxima Nova", sans-serif;
    font-size: 34px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 10px 0 0;
    text-align: left;
}

#kc-page-title {
    color:  var(--custom-white-color) !important;
    text-align: left;
    font-family: "Proxima Nova", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 10px;
    margin-top: 120px;
}

/* Error header with icon */
.error-header-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    height: 20px;
    padding-top: 140px;
}

.error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Error page title styling (We are sorry...) */
[data-page-id="login-error"] #kc-page-title {
    font-family: "Proxima Nova", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
}

/* Error page message styling */
[data-page-id="login-error"] .instruction {
    font-family: "Proxima Nova", sans-serif;
    color: var(--custom-white-color);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Reusable turquoise button styling */
.kc-button-turquoise,
[data-page-id="login-error"] .instruction a,
[data-page-id="login-error"] #backToApplication,
[data-page-id="login-login-otp"] #loginRestartLink,
[data-page-id="login-login-page-expired"] #loginRestartLink {
    display: flex;
    margin-top: 24px;
    width: 174px;
    height: 36px;
    padding: 12px 10px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    background: var(--custom-turquoise-color);
    font-family: "Proxima Nova", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    color: var(--custom-white-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.kc-button-turquoise:hover,
[data-page-id="login-error"] .instruction a:hover,
[data-page-id="login-error"] #backToApplication:hover,
[data-page-id="login-login-otp"] #loginRestartLink:hover,
[data-page-id="login-login-page-expired"] #loginRestartLink:hover {
    background: var(--custom-hover-turquoise-color);
    text-decoration: none;
}

.fixed-product-logo {
    position: fixed;
    width: 610px;
    height: 198px;
    top: 150px;
    left: 177px;
    z-index: 50;
}

.fixed-product-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.totp-header-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    height: 20px;
    padding-top: 20px;
}

.totp-info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.totp-header-with-icon span {
    text-align: center;
    font-family: "Proxima Nova", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 52px;
    color: var(--custom-white-color);
}

.update-password-header-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    height: 20px;
    padding-top: 20px;
}

.update-password-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.update-password-header-with-icon span {
    font-family: "proxima-nova", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--custom-white-color);
    line-height: 1.2;
}

.otp-header-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 300px;
    height: 20px;
    padding-top: 20px;
}

.otp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.otp-header-with-icon span {
    flex: 1;
    font-family: "Proxima Nova", sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    color: var(--custom-white-color);
    line-height: 52px;
}

.otp-description {
    color: var(--custom-white-color);
    text-align: left;
    font-family: "Proxima Nova", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    margin-top: 16px;
}

/* Hide username field on OTP page */
[data-page-id*="otp"] #kc-attempted-username,
[data-page-id*="otp"] .pf-v5-c-form__group:has(#kc-attempted-username) {
    display: none !important;
}

/* Add margin to OTP input container only on login-otp page */
[data-page-id="login-login-otp"] .otp-input-container {
    margin: 20px 0 36px 0;
}

/* Remove background from all alerts (warnings, errors, etc.) across all login pages */
.pf-v5-c-alert {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.pf-v5-c-alert .pf-v5-c-alert__icon {
    display: none !important;
}

.pf-v5-c-alert.pf-m-inline {
    margin-top: 20px !important;
}

.kc-feedback-text {
    font-family: "proxima-nova", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    color: var(--custom-white-color);
}

/* Push password input fields down */
[data-page-id="login-login-update-password"] #kc-passwd-update-form {
    margin-top: 15px;
    gap: 5%;
}


.totp-step-one-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 900px;
}

.step-one-badge {
    flex-shrink: 0;
    width: 32px;
    height: 31px;
    opacity: 1;
    border-radius: 90px;
    border: 1px solid transparent;
    transform: rotate(0deg);
    margin-left: 32px;
    margin-top: 20px;
}

.totp-step-one-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 10px;
    color: var(--custom-white-color);
}

#kc-totp-settings li:first-child .totp-step-one-text {
    margin-top: 20px;
}

#kc-totp-settings {
    list-style-type: none;
    padding-left: 0;
}

.qr-code-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-left: 68px;
    margin-top: -5px;
}

#kc-totp-secret-qr-code {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: cover;
    object-position: center;
    clip-path: inset(12px 12px 12px 12px);
}

#mode-manual {
    color: var(--custom-turquoise-color);
    text-decoration: none;
    font-size: 12px;
    margin-left: 76px;
    white-space: nowrap;
}

#mode-manual:hover {
    text-decoration: underline;
}

/* Align "Scan barcode?" link in manual mode */
#mode-barcode {
    color: var(--custom-turquoise-color);
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 76px;
    display: inline-block;
}

#mode-barcode:hover {
    text-decoration: underline;
}

/* Style for the secret key container */
.secret-key-container {
    display: inline-flex;
    align-items: center;
    min-width: 320px;
    width: fit-content;
    height: 22px;
    background-color: var(--custom-light-grey-color);
    border-radius: 4px;
    padding: 0 4px 0 8px;
    margin: 35px 0 35px 76px;
    gap: 4px;
}

/* Style for the secret key code */
#kc-totp-secret-key {
    flex: 1;
    color: var(--custom-black-color);
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Style for the copy button */
.copy-secret-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.copy-secret-btn:hover {
    opacity: 0.7;
}

.copy-icon {
    width: 12px;
    height: 12px;
    display: block;
}

/* Style for TOTP configuration details */
#kc-totp-settings ul {
    margin-left: 76px;
    padding-left: 0;
    list-style-type: none;
    color: var(--custom-white-color);
    font-size: 12px;
    line-height: 1.4;
}

#kc-totp-settings ul li {
    color: var(--custom-white-color);
    font-size: 12px;
    margin-bottom: 4px;
}

/* Align step 3 paragraph content */
#kc-totp-settings li:last-child p {
    margin-left: 76px;
    color: var(--custom-white-color);
    font-size: 12px;
    margin-top: -10px;
    padding-bottom: 15px
}

/* Align form elements under step 3 */
#kc-totp-settings-form {
    margin-left: 76px;
}

#kc-totp-settings-form .pf-v5-c-form-control {
    margin-left: 0;
    margin-bottom: -25px;
}

#kc-totp-settings-form .pf-v5-c-button {
    margin-left: 0;
}

#kc-totp-settings-form .control-label {
    color: var(--custom-white-color);
    font-size: 12px;
    display: inline-block !important;
}

#kc-totp-settings-form .required {
    color: var(--custom-white-color);
}

/* OTP digit input boxes */
.otp-input-container {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
}

.otp-digit {
    width: 40px;
    height: 53px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid var(--custom-white-color);
    border-radius: 8px;
    background-color: var(--custom-white-color);
    color: var(--custom-black-color);
    outline: none;
    transition: border-color 0.2s;
}

.otp-digit:focus {
    border-color: var(--custom-turquoise-color);
    border-width: 2px;
}

.otp-digit::placeholder {
    color: #999;
}

/* Page expired button message styling */
#instruction1.instruction {
    color: var(--custom-turquoise-color);
    font-family: "Proxima Nova", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
}

/* Page expired header with icon */
.page-expired-header-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    padding-top: 20px;
}

.page-expired-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.page-expired-header-with-icon span {
    font-family: "Proxima Nova", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--custom-white-color);
    line-height: 1.2;
}

/* Page expired title styling*/
[data-page-id="login-login-page-expired"] #kc-page-title,
[data-page-id="login-login-page-expired"] .pf-v5-c-title {
    color: var(--custom-white-color);
    margin-bottom: 65px;
}

/* Loading overlay for SSO redirect */
.sso-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 31, 32, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sso-loading-overlay.active {
    display: flex;
}

.sso-loader {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(94, 42, 167, 0.2);
    border-top-color: var(--custom-turquoise-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.sso-loading-text {
    margin-top: 24px;
    color: var(--custom-white-color);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Realm disclaimer modal */
.disclaimer-modal {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-sizing: border-box;
    max-width: 500px;
    width: 90%;
    min-width: 500px;
    min-height: 300px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.disclaimer-modal-body {
    color: var(--custom-black-color);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
}

#disclaimerContinueBtn {
    max-width: 100%;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Password update page - error alert styling */
.password-update-error-alert {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

/* Password update page - error message text with icon */
.password-update-error-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: top;
}

/* Field error container animation */
[id^="input-error-container-"] {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
}

[id^="input-error-container-"]:has(.pf-v5-c-form__helper-text) {
    max-height: 100px;
    opacity: 1;
    margin-top: 4px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        max-height: 100px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password field container with icons */
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-container input[type="password"],
.password-field-container input[type="text"] {
    flex: 1;
    padding-right: 60px; /* Space for icons */
}

/* Password visibility toggle button - always on the right */
.password-visibility-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--custom-black-color);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.password-visibility-toggle:hover {
    opacity: 0.6;
}

/* Forgot password link */
[data-test-id="forgot-password-link"] {
    color: var(--custom-white-color);
    text-decoration: none;
}

[data-test-id="forgot-password-link"]:hover {
    text-decoration: underline;
}


.reset-login-icon {
    height: 16px;
    width: auto;
}

/* Error icon - positioned to the left of visibility toggle */
.password-field-container .pf-v5-c-form-control__utilities,
.password-field-container .kc-form-control-util {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-57%);
    display: flex;
    align-items: center;
}

.eye-icon {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Email validation - visual feedback for blocked characters */
#username.invalid-char-blocked {
    animation: shake 0.2s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Forgot password page */
.forgot-password-header-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    height: 20px;
    padding-top: 20px;
}

.forgot-password-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.forgot-password-header-with-icon span {
    font-family: "Proxima Nova", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--custom-white-color);
    line-height: 1.2;
}

.forgot-password-instruction {
    font-family: "Proxima Nova", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--custom-white-color) !important;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 20px;
    max-width: 312px;
}

.forgot-password-back-link-container {
    margin-top: 16px;
    text-align: center;
}

[data-page-id="login-login-reset-password"] .forgot-password-back-link-container a {
    color: var(--custom-white-color) !important;
    font-family: "Proxima Nova", sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

[data-page-id="login-login-reset-password"] .forgot-password-back-link-container a:hover {
    text-decoration: underline;
}
