html.login-pf {
    margin: 0;
    padding: 0;
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    background:transparent !important;
}

html.login-pf body {
    margin: 0;
    padding: 0;
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #fff;
    background-image: radial-gradient(circle at -10% 70%, #6bafe9 0%, #2d90ae 64%, #73e0f1 100%) !important;
    background-repeat: no-repeat !important;
    background-position: left top !important;
    background-attachment: scroll !important;
    background-size: 100vw 100% !important;
}
.pf-v5-c-login__main{
    border-radius: 16px !important;
}
.pf-v5-c-login__main-header {
    border-top:none !important;
}

#kc-header-wrapper {
    color: #ffffff;
}
.login-pf-page .card-pf {
    border-radius: 16px;
    width: 100%;
    margin-bottom:20px;
}
h1{
    margin-top: 10px !important;
}
.login-pf-page {
    padding:0px !important;
    min-width: 430px;
    max-width: 430px;
    margin: 0px auto;
    min-height: 100vh;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-pf-page .login-pf-signup {
    margin: 20px 0 0;
    font-size: 12px;
    text-align: center;
}
.resettxtlog{
    font-size: 11px;
    line-height:16px;
}

.kc-form-backtlog{
    text-align: center;
    margin-top:20px;
}
.par-reset-btnlog{
    width:100%;
    text-align: right;
}
.reset-btnlog{
    float:left;
}

.f14{
    font-size: 14px;
}

/* Left-side required marker for all labeled form fields */
#kc-content-wrapper form label[for]::before {
    content: "*";
    color: #ff0000;
    font-weight: 700;
    margin-right: 2px;
}

@media (max-width: 419px) {
    .login-pf-page {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    .password-requirements {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .requirement {
        margin: 4px 0;
    }
    
    .requirement-icon {
        min-width: 14px;
        width: 14px;
        height: 14px;
        font-size: 11px;
        margin-right: 6px;
    }
}

/* Hide default browser password reveal (eye) icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* Hide PatternFly / Keycloak password toggle button */
.pf-v5-c-button.pf-m-plain[aria-label],
button[data-ouia-component-id="password-toggle"],
.pf-v5-c-input-group__item > button.pf-v5-c-button {
    display: none !important;
}

.pf-m-error{
    color: #c9190b !important;
}

/* Form input sizing */
#kc-content-wrapper form input[type="text"],
#kc-content-wrapper form input[type="password"],
#kc-content-wrapper form input[type="email"] {
    font-size: 13px !important;
    height: 34px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
}

/* Placeholder styling */
#kc-content-wrapper form input::placeholder {
    font-size: 13px;
    color: #aaa !important;
    opacity: 1 !important;
}

/* Keep placeholder visible when field is focused */
#kc-content-wrapper form input:focus::placeholder,
#kc-content-wrapper form input:focus-visible::placeholder {
    color: #aaa !important;
    opacity: 1 !important;
}

/* Password Requirements Indicator Container */
#password-requirements-indicator,
#password-confirm-requirements-indicator {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Password Requirements Indicator Styles */
.password-requirements {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    background-color: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-sizing: border-box;
}

.requirement {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    word-break: break-word;
}

.requirement:first-child {
    margin-top: 0;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.met {
    color: #20a600;
}

.requirement.unmet {
    color: #c9190b;
}

.requirement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 8px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.requirement.met .requirement-icon {
    color: #20a600;
}

.requirement.unmet .requirement-icon {
    color: #c9190b;
}

.requirement-text {
    flex: 1;
    flex-wrap: wrap;
}

.input-error {
    border-color: #c9190b !important;
    background-color: #fff5f5 !important;
}

.kc-input-error-message {
    display: block;
    position: relative;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #c9190b;
    font-weight: 500;
    box-sizing: border-box;
    word-break: break-word;
    min-height: 0;
}

.kc-input-error-message:empty {
    display: none;
}
