.cl-password-field {
    position: relative;
    width: 100%;
}

.costlight-enterprise .cl-password-field > input {
    width: 100%;
    padding-inline-end: 48px !important;
}

.cl-password-toggle {
    position: absolute;
    inset-block: 1px;
    inset-inline-end: 1px;
    width: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
}

.cl-password-toggle:hover {
    color: var(--brand-ink);
    background: var(--surface-2);
}

.cl-password-toggle:focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: -3px;
}

.cl-password-toggle:disabled {
    opacity: .45;
    cursor: default;
}

.cl-password-toggle .cl-icon {
    width: 20px;
    height: 20px;
}

/* Keep Bootstrap validation feedback visible after wrapping its input. */
.cl-password-field:has(> .is-invalid) ~ .invalid-feedback,
.cl-password-field:has(> [aria-invalid="true"]) ~ .invalid-feedback {
    display: block;
}

.cl-sidebar .cl-brand {
    justify-content: center;
    padding-inline: 12px;
    padding-top: 12px;
    font-size: 26px;
}

.cl-sidebar .cl-brand-symbol {
    width: 52px;
    height: 44px;
}

.cl-auth-logo {
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    gap: 18px;
    font-size: clamp(40px, 4vw, 56px);
}

.cl-auth-logo .cl-brand-symbol {
    width: 92px;
    height: 78px;
}

.cl-auth-content {
    min-width: 0;
}

@media (max-width: 1100px) {
    .cl-auth-logo {
        gap: 14px;
        font-size: 40px;
    }

    .cl-auth-logo .cl-brand-symbol {
        width: 72px;
        height: 61px;
    }
}

@media (max-width: 800px) {
    .cl-auth-page .cl-auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .cl-auth-brand {
        padding: 24px;
        gap: 20px;
    }

    .cl-auth-brand > div:nth-child(2),
    .cl-auth-brand > small {
        display: none;
    }

    .cl-auth-content {
        padding: 36px 24px;
        align-items: flex-start;
    }

    .cl-auth-logo {
        font-size: 36px;
    }

    .cl-auth-logo .cl-brand-symbol {
        width: 64px;
        height: 54px;
    }
}
