.authBody {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.40) 100%), url("../images/background.png.xhtml?ln=tipx") lightgray 50% / cover no-repeat !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;

    min-height: 100vh;
    margin: 0;
}

.authCenter {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.authCard {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: visible;
}

.authTitle {
    color: #0A0E15;
    text-align: center;
    font-family: "Libertinus Sans";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: -0.55px;
}

.authInputWrapper {
    position: relative;
    width: 100%;
}

.authInputIcon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8c9ab3;
    font-size: 1.05rem;
    z-index: 2;
    pointer-events: none;
}

.authInputWrapper>input.ui-inputfield,
.authInputWrapper>span.ui-password>input.ui-inputfield {
    width: 100%;
    min-height: 3.2rem;
    padding-left: 2.85rem;
    border-radius: 12px;
    box-sizing: border-box;
}

.authInputWrapper>span.ui-password {
    display: block;
    width: 100%;
    position: relative;
}

.authInputWrapper>span.ui-password>input.ui-inputfield {
    padding-right: 2.95rem;
}

.authInputWrapper>span.ui-password>.ui-password-icon,
.authInputWrapper>span.ui-password>.ui-password-show-icon,
.authInputWrapper>span.ui-password>.ui-password-hide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8c9ab3;
    margin-top: 0;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 1;
    visibility: visible;
    z-index: 3;
    cursor: pointer;
    pointer-events: auto;
}

/* Local auth-page fallback: keep password toggle eye visible without relying on global PF theme glyph mappings. */
.authInputWrapper>span.ui-password>.ui-password-icon {
    font-family: "primeicons";
    font-style: normal;
    font-weight: normal;
}

.authInputWrapper>span.ui-password.ui-password-masked>.ui-password-icon::before {
    content: "\e966";
    /* pi-eye */
}

.authInputWrapper>span.ui-password.ui-password-unmasked>.ui-password-icon::before {
    content: "\e965";
    /* pi-eye-slash */
}

.authInputWrapper .ui-inputfield::placeholder {
    color: #7d8ba3;
    opacity: 1;
}

/* Error state: highlight fields only while validation/global error is visible. */
.authCard:has(.authFormMessages:not([style*="display: none"]) :is(.ui-messages-error, .ui-messages-warn):not(.ui-helper-hidden):not([style*="display: none"])) .authInputWrapper>input.ui-inputfield,
.authCard:has(.authFormMessages:not([style*="display: none"]) :is(.ui-messages-error, .ui-messages-warn):not(.ui-helper-hidden):not([style*="display: none"])) .authInputWrapper>span.ui-password>input.ui-inputfield {
    border-radius: var(--inputtext-border-radius, 6px);
    border: 1px solid var(--inputtext-invalid-border-color, #F87171);
    background: var(--inputtext-background, #FFF);
    box-shadow: 0 1px 2px 0 rgba(18, 18, 23, 0.05);
    display: flex;
    padding: var(--inputtext-padding-y, 7px) var(--inputtext-padding-x, 10.5px);
    align-items: center;
    gap: 10.5px;
    align-self: stretch;
    padding-left: 2.85rem;
    color: #dc2626;
}

.authCard:has(.authFormMessages:not([style*="display: none"]) :is(.ui-messages-error, .ui-messages-warn):not(.ui-helper-hidden):not([style*="display: none"])) .authInputWrapper .ui-inputfield::placeholder {
    color: #dc2626;
}

.authCard:has(.authFormMessages:not([style*="display: none"]) :is(.ui-messages-error, .ui-messages-warn):not(.ui-helper-hidden):not([style*="display: none"])) .authInputWrapper .authInputIcon {
    color: #dc2626;
}

/* If user starts editing, return fields to normal style immediately. */
.authCard:has(.authInputWrapper:focus-within) .authInputWrapper>input.ui-inputfield,
.authCard:has(.authInputWrapper:focus-within) .authInputWrapper>span.ui-password>input.ui-inputfield {
    border: 1px solid #ced4da;
    color: #495057;
}

.authCard:has(.authInputWrapper:focus-within) .authInputWrapper .ui-inputfield::placeholder {
    color: #7d8ba3;
}

.authCard:has(.authInputWrapper:focus-within) .authInputWrapper .authInputIcon {
    color: #8c9ab3;
}

body.authBody .authFormMessages {
    text-align: left;
}

body.authBody .authFormMessages.ui-messages {
    margin: 0;
}

body.authBody .authFormMessages.ui-messages .ui-messages-error,
body.authBody .authFormMessages.ui-messages .ui-messages-warn {
    position: relative;
    display: flex;
    flex: 1 0 0;
    padding: 7px 10.5px;
    padding-right: 3rem;
    align-items: center;
    gap: 7px;
    border: 2px solid #f5b5b5;
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.95);
    color: #dc2626;
    padding-left: 3.2rem;
    width: 70%;
    margin: 0 auto;
}

body.authBody .authFormMessages.ui-messages .ui-messages-error::before,
body.authBody .authFormMessages.ui-messages .ui-messages-warn::before {
    content: "\e922";
    font-family: "primeicons";
    position: absolute;
    left: 1rem;
    font-size: 1.55rem;
    color: #dc2626;
}

body.authBody .authFormMessages.ui-messages .ui-messages-error-icon,
body.authBody .authFormMessages.ui-messages .ui-messages-warn-icon,
body.authBody .authFormMessages.ui-messages .ui-message-error-icon,
body.authBody .authFormMessages.ui-messages .ui-message-warn-icon {
    display: none;
}

body.authBody .authFormMessages.ui-messages .ui-messages-error-summary,
body.authBody .authFormMessages.ui-messages .ui-messages-warn-summary {
    color: #dc2626;
    font-size: 1.05rem;
    font-weight: 500;
}

body.authBody .authFormMessages.ui-messages .ui-messages-error-detail,
body.authBody .authFormMessages.ui-messages .ui-messages-warn-detail {
    display: none;
}

body.authBody .authFormMessages.ui-messages .ui-messages-error ul,
body.authBody .authFormMessages.ui-messages .ui-messages-warn ul {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

body.authBody .authFormMessages.ui-messages .ui-messages-error li,
body.authBody .authFormMessages.ui-messages .ui-messages-warn li {
    margin: 0;
}

body.authBody .authFormMessages.ui-messages .ui-messages-close {
    position: absolute;
    right: 10.5px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    width: auto;
    height: auto;
    color: #dc2626;
    background: transparent;
    float: none;
    flex-shrink: 0;
    line-height: 1;
    z-index: 2;
}

body.authBody .authFormMessages.ui-messages .ui-messages-close .ui-icon {
    display: none;
}

body.authBody .authFormMessages.ui-messages .ui-messages-close::before {
    content: "\e90b";
    font-family: "primeicons";
    font-size: 1.8rem;
    color: #dc2626;
}

body.authBody .authFormMessages.ui-messages .ui-messages-close:hover {
    background: transparent;
}

.authFieldMessage {
    display: block;
    margin-top: 0.35rem;
    text-align: left;
}

.authFieldMessageError {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    margin-top: 0.75rem;
}

.authConfirmPasswordGroup:has(.authConfirmMismatch) .authInputWrapper>span.ui-password>input.ui-inputfield {
    border: 1px solid #f87171;
    color: #dc2626;
}

.authConfirmPasswordGroup:has(.authConfirmMismatch) .authInputWrapper .authInputIcon,
.authConfirmPasswordGroup:has(.authConfirmMismatch) .authInputWrapper>span.ui-password>.ui-password-icon {
    color: #dc2626;
}

.authSubmitButton.ui-button,
.authSubmitButton {
    width: 100%;
    min-height: 3.2rem;
    border-radius: 12px;
}

body .authSubmitButton.ui-button:not(.ui-state-disabled):hover,
body .authSubmitButton.ui-button.ui-state-hover {
    border: 1px solid #000000;
    background: #497bb5;
}

.authSignupLink,
.authResetLink {
    color: #346296;
    font-size: 12.25px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.authSignupLink {
    display: inline;
}

.authResetLink {
    display: inline-block;
}

.authLinkRow {
    text-align: center;
}

.authSignupCheckboxRow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;
    color: #334155;
    width: 100%;
    padding-left: 0.85rem;
    padding-right: 0.25rem;
    box-sizing: border-box;
}

.authSignupCheckboxRow .ui-selectbooleancheckbox,
.authSignupCheckboxRow .ui-chkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: auto;
    min-width: 0;
    height: auto;
    margin-top: 0;
    flex-shrink: 0;
}

.authSignupCheckboxRow .ui-chkbox .ui-helper-hidden-accessible,
.authSignupCheckboxRow .ui-selectbooleancheckbox .ui-helper-hidden-accessible {
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.authSignupCheckboxRow .ui-chkbox .ui-helper-hidden-accessible input,
.authSignupCheckboxRow .ui-selectbooleancheckbox .ui-helper-hidden-accessible input {
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.authSignupCheckboxRow .ui-chkbox .ui-chkbox-box {
    width: 1.375rem;
    height: 1.375rem;
    min-width: 1.375rem;
    min-height: 1.375rem;
    border: 1.5px solid #c5d1e0;
    border-radius: 0.42rem;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.authSignupCheckboxRow .ui-chkbox .ui-chkbox-box.ui-state-hover {
    border-color: #6b89b4;
    box-shadow: 0 0 0 4px rgba(52, 98, 150, 0.08);
}

.authSignupCheckboxRow .ui-chkbox .ui-chkbox-box.ui-state-focus {
    border-color: #346296;
    box-shadow: 0 0 0 4px rgba(52, 98, 150, 0.14);
}

.authSignupCheckboxRow .ui-chkbox .ui-chkbox-box.ui-state-active {
    border-color: #346296;
    background: #346296;
    box-shadow: 0 6px 14px rgba(52, 98, 150, 0.18);
}

.authSignupCheckboxRow .ui-chkbox .ui-chkbox-box .ui-chkbox-icon,
.authSignupCheckboxRow .ui-chkbox .ui-chkbox-box .ui-icon {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-indent: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.authSignupTermsRow {
    text-align: left;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.4;
    width: 100%;
    padding-left: 0.85rem;
    padding-right: 0.25rem;
    box-sizing: border-box;
}

.authSignupTermsText {
    display: block;
}

.authSignupTermsLinkRow {
    margin-top: 0.2rem;
}

.authSignupTermsLink {
    font-weight: 600;
}

.authSignupCaptchaRow {
    display: flex;
    justify-content: center;
}

.resetSuccessGrid {
    text-align: center;
    padding: 0.5rem 0.75rem 1.5rem;
}

.resetSuccessImage {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.resetSuccessTitle {
    display: block;
    color: #334155;
    text-align: center;
    font-family: "Libertinus Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: -0.55px;
}

.resetSuccessSubtitle {
    display: block;
    color: #586681;
    text-align: center;
    font-family: "Inter";
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
}

.resetSuccessBackLink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.3rem;
}

.resetSuccessBackLink::before {
    content: "\e931";
    font-family: "primeicons";
    font-size: 0.8rem;
}

.authPasswordChecksContainer {
    position: relative;
    height: 0;
    overflow: visible;
    z-index: 6;
}

.authPasswordChecksDropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 0.5rem;
    z-index: 10;
    display: block;
    text-align: left;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    padding: 1.3rem 1.5rem 1.1rem;
}

.authPasswordChecks {
    margin: 0;
    text-align: left;
}

.passwordInputWrapper:focus-within>span.ui-password>input.ui-inputfield {
    border: 1px solid #346296;
    box-shadow: 0 0 0 1px rgba(52, 98, 150, 0.15);
}

.passwordGuideTitle {
    display: block;
    color: var(--password-overlay-color, #334155);
    font-family: "Inter";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    margin-bottom: 1rem;
}

.passwordGuideStrengthTrack {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: #cfd8e3;
    overflow: hidden;
    margin-bottom: 1rem;
}

.passwordGuideStrengthFill {
    height: 100%;
    border-radius: 999px;
    background: #346296;
    transition: width 0.2s ease-in-out;
}

.passwordGuideHint {
    display: block;
    color: #334155;
    font-family: "Inter";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.95rem;
}

.passwordGuideDivider {
    width: 100%;
    height: 1px;
    background: #dbe3ef;
    margin-bottom: 0.95rem;
}

.passwordGuideRules {
    margin: 0;
    padding-left: 1.35rem;
}

.passwordGuideRules li {
    color: #334155;
    font-family: "Inter";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
    margin: 0.35rem 0;
}

.passwordGuideRules li::marker {
    color: #334155;
}

.passwordGuideRuleValid {
    color: #16a34a;
}

.passwordGuideRuleValid::marker {
    color: #16a34a;
}

.authTermsRow {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 680px;
    margin: 0.5rem auto;
}

.authTermsText {
    color: #FFF;
    text-align: center;
}

.authLoginTermsText {
    color: var(--content-color-inverse, #FFF);
    text-align: center;
    font-family: var(--paragraph-font, Inter);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: -0.14px;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .authCenter {
        min-height: 100vh;
        align-items: center;
        padding-top: 0;
    }
}

@media screen and (max-width: 767px) {
    .authCenter {
        min-height: 100vh;
        align-items: stretch;
        padding-top: 0;
        margin: 0;
    }

    .authCenter>[class*="col-"] {
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding-left: 0;
        padding-right: 0;
    }

    body.authBody .authCard {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .authLoginTermsRow {
        position: fixed;
        left: 0;
        right: 0;
        bottom: max(12px, env(safe-area-inset-bottom));
        padding: 0 16px;
        margin: 0;
        max-width: none;
        z-index: 8;
    }
}
