:root {
    --redgate-ink: #1d3160;
    --redgate-muted: #7783a0;
    --redgate-border: #e4eef3;
    --redgate-primary: #1d3160;
    --redgate-accent: #f33a3b;
    --redgate-accent-soft: #fdf7ed;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body.login-page {
    background: #f6f9f7;
    color: var(--redgate-ink);
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
}

.redgate-login,
.redgate-login * {
    box-sizing: border-box;
}

.redgate-login {
    align-items: flex-start;
    background: #f6f9f7;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 80px);
    overflow: visible;
    padding: 50px 24px 70px;
    position: relative;
}

.redgate-login__header {
    align-items: center;
    background: #fff;
    display: flex;
    height: 80px;
    justify-content: space-between;
    padding: 15px 50px;
    position: relative;
    width: 100%;
    z-index: 10;
}

.redgate-login__header-logo {
    display: inline-flex;
}

.redgate-login__header-logo img {
    display: block;
    height: 35px;
    width: auto;
}

.redgate-login__language .dropdown-toggle {
    align-items: center;
    color: var(--redgate-ink);
    display: inline-flex;
    font-size: 17px;
    font-weight: 700;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
}

.redgate-login__language .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(20, 20, 20, .12);
    min-width: 92px;
    padding: 6px;
}

.redgate-login__language .dropdown-item {
    border-radius: 6px;
    color: var(--redgate-ink);
    padding: 8px 12px;
}

.redgate-login__language .dropdown-item:hover,
.redgate-login__language .dropdown-item:focus {
    background: var(--redgate-accent-soft);
}

.redgate-login__content {
    display: block;
    max-width: 680px;
    min-height: 0;
    padding: 0;
    width: 100%;
}

.redgate-login__content > .container,
.redgate-login__content .container__mobile {
    max-width: 680px;
    width: 100%;
}

.redgate-login__content .login__mobile {
    flex: 0 0 100%;
    margin: 0 auto;
    max-width: 620px;
    width: 100%;
}

.redgate-login__card {
    background: #fff;
    max-width: none;
    min-width: 0;
    padding: 50px;
    width: 100%;
}

.redgate-login__card form,
.redgate-login__card .tab-content,
.redgate-login__card [id$="eSignPanel"] {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.redgate-login__card fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.redgate-login__title {
    color: var(--redgate-ink);
    font-family: 'MarkPro-Light', 'Redgate Sans', Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.25;
    margin: 0 0 28px;
    text-align: center;
}

.redgate-login__tabs {
    border: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 0 0 28px;
}

.redgate-login__tabs .nav-link {
    background: transparent;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0;
    color: var(--redgate-muted);
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 !important;
    padding: 8px 2px;
    white-space: normal;
}

.redgate-login__tabs .nav-link,
.redgate-login__tabs .nav-link.active {
    border-top-color: transparent !important;
    border-top-width: 0 !important;
}

.redgate-login__tabs .nav-link:hover,
.redgate-login__tabs .nav-link:focus,
.redgate-login__tabs .nav-link.active {
    border-bottom-color: var(--redgate-accent) !important;
    color: var(--redgate-ink);
}

.redgate-login .floating-label {
    display: block;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.redgate-login .field-input {
    background-color: #fff;
    border: 1px solid var(--redgate-border);
    border-radius: 4px;
    color: var(--redgate-ink);
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
    font-size: 16px;
    height: 46px;
    outline: none;
    padding: 11px 12px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.redgate-login .field-input:hover {
    border-color: rgba(243, 58, 59, .65);
}

.redgate-login .field-input:focus {
    background-color: var(--redgate-accent-soft);
    border-color: var(--redgate-accent);
    box-shadow: 0 0 0 3px rgba(243, 58, 59, .12);
}

.redgate-login select.redgate-login__account-select {
    background-color: #fff;
    color: var(--redgate-ink);
    height: 46px;
    line-height: 24px;
    padding: 8px 36px 8px 12px;
}

.redgate-login select.redgate-login__account-select option {
    background-color: #fff;
    color: var(--redgate-ink);
}

.redgate-login .floating-label > label {
    background: #fff;
    color: var(--redgate-muted);
    font-size: 16px;
    font-weight: 400;
    left: 8px;
    line-height: 1.25;
    padding: 0 4px;
    pointer-events: none;
    position: absolute;
    top: 13px;
    transition: all .2s ease;
}

.redgate-login .floating-label .field-input:focus + label,
.redgate-login .floating-label .field-input:not(:placeholder-shown) + label {
    color: var(--redgate-muted);
    font-size: 12px;
    left: 9px;
    top: -8px;
}

.redgate-login .floating-label .field-input:focus + label {
    background: linear-gradient(#fff 50%, var(--redgate-accent-soft) 50%);
    color: var(--redgate-accent);
}

.redgate-login .field-required-error {
    color: #a52b2b;
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.redgate-login__forgot {
    margin-top: -6px;
    text-align: right;
}

.redgate-login__forgot a {
    color: var(--redgate-muted);
    font-size: 13px;
    text-decoration: none;
}

.redgate-login__forgot a:hover,
.redgate-login__forgot a:focus {
    color: var(--redgate-accent);
    text-decoration: underline;
}

.redgate-login .form__submit {
    padding-top: 25px;
}

.redgate-login .form__submit button {
    background: var(--redgate-primary);
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    height: 44px;
    outline: none;
    transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
    width: 100%;
}

.redgate-login .form__submit button:hover,
.redgate-login .form__submit button:focus {
    background: var(--redgate-accent);
    box-shadow: 0 5px 16px rgba(243, 58, 59, .22);
}

.redgate-login .form__submit button:active {
    transform: translateY(1px);
}

.redgate-login__alert {
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 20px;
}

.redgate-login__secondary-panel {
    padding-top: 8px;
}

.redgate-login__field-label {
    color: var(--redgate-muted);
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

#Dokobit-identity-container:not(:empty) {
    margin-top: 24px;
}

@media (max-width: 991.98px) {
    .redgate-login {
        min-height: calc(100vh - 80px);
        padding: 44px 24px 60px;
    }

    .redgate-login__header {
        padding-left: 28px;
        padding-right: 28px;
    }

    .redgate-login__content {
        background: transparent;
        min-height: 0;
        padding: 0;
        width: 100%;
    }

    .redgate-login__card {
        padding: 42px 36px;
    }
}

@media (max-width: 575.98px) {
    .redgate-login {
        min-height: calc(100vh - 70px);
        padding: 30px 15px 40px;
    }

    .redgate-login__header {
        height: 70px;
        padding: 12px 18px;
    }

    .redgate-login__header-logo img {
        height: 30px;
    }

    .redgate-login__content {
        padding: 0;
    }

    .redgate-login__card {
        padding: 30px 22px;
    }

    .redgate-login__title {
        font-size: 27px;
        margin-bottom: 24px;
    }

    .redgate-login__tabs {
        gap: 8px;
    }

    .redgate-login__tabs .nav-link {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .redgate-login *,
    .redgate-login *::before,
    .redgate-login *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
