.remove-hr {
    hr:not([class]) {
        display: none;
    }
}

input.#{$ns}-button:empty {
    padding: 5px 15px !important;
}

#kc-terms-text,
#kc-error-message,
#kc-info-message {
    @extend .#{$eccgui}-typography__contentblock;
}

#kc-terms-text,
#kc-error-message {
    margin-bottom: 1rem;
}

body.user,
body.password,
body.totp {
    .row {
        margin-bottom: 1rem;

        .col-md-10 h2 {
            @extend .#{$eccgui}-card__title;
            @extend .#{$eccgui}-overviewitem__line--large;
        }

        .subtitle {
            @extend .#{$eccgui}-overviewitem__line--small;
        }
    }

    .form-group {
        @extend .#{$eccgui}-fielditem;

        .control-label {
            @extend .#{$eccgui}-label;
            display: inline-block;
        }

        .form-control {
            @extend .#{$ns}-input-group;
            @extend .#{$ns}-fill;
            @extend .#{$eccgui}-textfield !optional;
            @extend .#{$ns}-input;
        }
    }
}

body.sessions,
body.applications {
    .row {
        margin-bottom: 1rem;

        .col-md-10 h2 {
            @extend .#{$eccgui}-card__title;
            @extend .#{$eccgui}-overviewitem__line--large;
        }

        .subtitle {
            @extend .#{$eccgui}-overviewitem__line--small;
        }
    }

    table {
        @extend .cds--data-table;
        @extend .#{$eccgui}-simpletable !optional;
        @extend .#{$eccgui}-simpletable--medium !optional;
        @extend .#{$eccgui}-simpletable--rowdivider;
        @extend .cds--data-table--sm;

        &:not(:last-child) {
            margin-bottom: 1rem;
        }
    }

    thead td {
        @extend th;
    }

    button.btn {
        @extend .#{$ns}-button;
        @extend .#{$eccgui}-button;
    }
}

body.totp {
    .#{$eccgui}-card__content {
        @extend .#{$eccgui}-typography__contentblock;
    }
    hr:not([class]) {
        display: none;
    }
}

// Password toggle

#kc-form-login,
#kc-passwd-update-form {
    .#{$eccgui}-fielditem {
        & > div {
            position: relative;
        }
    }
}
#password,
#password-new,
#password-confirm {
    & + button[data-password-toggle] {
        position: absolute;
        top: 0.125 * $eccgui-size-textfield-height-regular;
        right: 0.125 * $eccgui-size-textfield-height-regular;
        height: 0.75 * $eccgui-size-textfield-height-regular;
        width: $eccgui-size-textfield-height-regular;
        border: none;
        background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzIgMzIiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDpub25lO308L3N0eWxlPjwvZGVmcz48dGl0bGU+dmlldzwvdGl0bGU+PHBhdGggZD0iTTMwLjk0LDE1LjY2QTE2LjY5LDE2LjY5LDAsMCwwLDE2LDUsMTYuNjksMTYuNjksMCwwLDAsMS4wNiwxNS42NmExLDEsMCwwLDAsMCwuNjhBMTYuNjksMTYuNjksMCwwLDAsMTYsMjcsMTYuNjksMTYuNjksMCwwLDAsMzAuOTQsMTYuMzQsMSwxLDAsMCwwLDMwLjk0LDE1LjY2Wk0xNiwyNWMtNS4zLDAtMTAuOS0zLjkzLTEyLjkzLTlDNS4xLDEwLjkzLDEwLjcsNywxNiw3czEwLjksMy45MywxMi45Myw5QzI2LjksMjEuMDcsMjEuMywyNSwxNiwyNVoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgMCkiLz48cGF0aCBkPSJNMTYsMTBhNiw2LDAsMSwwLDYsNkE2LDYsMCwwLDAsMTYsMTBabTAsMTBhNCw0LDAsMSwxLDQtNEE0LDQsMCwwLDEsMTYsMjBaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIi8+PHJlY3QgaWQ9Il9UcmFuc3BhcmVudF9SZWN0YW5nbGVfIiBkYXRhLW5hbWU9IiZsdDtUcmFuc3BhcmVudCBSZWN0YW5nbGUmZ3Q7IiBjbGFzcz0iY2xzLTEiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIvPjwvc3ZnPg==");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        background-color: transparent;
        cursor: pointer;
    }
}
#password,
#password-new,
#password-confirm {
    &[type="text"] + button[data-password-toggle] {
        background-image: url("data:image/svg+xml;base64,PH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