html {
    min-height: 100%;
    padding: 0 4px !important;
}

body {
    min-height: 100%;
}

html body {
    margin: 0;
    padding: 0;
    background: #f8f7f5;
    color: #1f2937;
}

body #divMaster {
    margin-top: 0;
}

body #MasterPageTable,
body #MasterPageTable > tbody,
body #MasterPageTable > tbody > tr:first-child,
body #MainContentTD {
    display: block;
    width: 100%;
}

body #LeftSideContentTD,
body #RightSideContentTD,
body #MasterPageTable > tbody > tr:nth-child(2) {
    display: none;
}

body #MainContentTD.mainworkcontent {
    min-width: 0;
    height: auto;
    border-radius: 0;
    background: transparent;
}

body #divMainWorkContent {
    min-height: 0;
}

.login-page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: calc(100vh - 112px);
    padding: 56px 24px 19px;
    overflow: visible;
}

.login-decoration {
    position: fixed;
    z-index: -1;
    width: clamp(320px, 46vw, 720px);
    opacity: .10;
    filter: grayscale(1);
    pointer-events: none;
    user-select: none;
}

.login-decoration-left {
    left: clamp(-380px, -20vw, -120px);
    bottom: clamp(-250px, -17vw, -80px);
    transform: rotate(-27deg);
}

.login-decoration-right {
    top: clamp(-245px, -13vw, -70px);
    right: clamp(-355px, -18vw, -100px);
    transform: rotate(34deg);
}

.login-card {
    box-sizing: border-box;
    width: min(100%, 600px);
    overflow: hidden;
    border: 1px solid #d9dde1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .14);
}

.login-card-accent {
    height: 8px;
    background: #008fa3;
}

.login-card-content {
    padding: 10px clamp(20px, 7vw, 20px) 0px;
}

.login-brand-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.login-brand-logo {
    display: block;
    grid-column: 2;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.login-brand-back {
    grid-column: 1;
    justify-self: start;
    color: #008fa3;
    font-size: 24px;
    line-height: 1;
}

.login-brand-back:hover {
    color: #006e7e;
}

.login-heading {
    margin: 0;
    color: #101827;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.login-subheading {
    margin: 10px 0 27px;
    color: #4e5766;
}

.login-process {
    text-align: left;
}

.login-form {
    margin: 0;
}

.login-field {
    margin: 0 0 19px;
}

.login-field-row {
    display: flex;
    gap: 16px;
}

.login-field-row .login-field {
    flex: 1 1 0;
    min-width: 0;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
}

.login-field input[type="text"],
.login-field input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #c7cdd4;
    border-radius: 8px;
    color: #1f2937;
    font-size: 16px;
}

.login-input-with-icon {
    position: relative;
}

.login-input-with-icon .fa-user,
.login-input-with-icon .fa-lock {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.login-input-with-icon input[type="text"],
.login-input-with-icon input[type="password"] {
    padding-left: 42px;
}

.login-field-validation {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 7px;
    padding: 9px 12px;
    border-radius: 5px;
    background: #b91c1c;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

.login-field-validation[style*="display: inline"] {
    display: block !important;
}

.login-field input:focus {
    outline: 3px solid rgba(0, 143, 163, .22);
    outline-offset: 1px;
    border-color: #008fa3;
}

.login-submit {
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 17px 0 0;
    padding: 10px 18px;
    border: 1px solid #551366;
    border-radius: 8px;
    background: #551366;
    box-shadow: none;
    color: #ffffff !important;
    font-family: var(--cb-font-family, Arial, sans-serif);
    font-size: 18px;
    font-weight: 700;
}

.login-page input.login-submit {
    margin-left: 0px !important;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: #6b197d;
    border-color: transparent;
    font-style: normal;
}

.login-submit:focus-visible,
.login-page a:focus-visible {
    outline: 3px solid rgba(0, 143, 163, .35);
    outline-offset: 2px;
}

.login-recovery {
    margin-top: -2px;
    margin-bottom: 7px;
}

.login-recovery-with-icon {
    display: flex;
    align-items: center;
    gap: 7px;
}

.login-recovery-with-icon .fa-circle-question {
    color: #008fa3;
}

.login-page .login-recoverytext,
.login-page .loginrecoverytext {
    padding: 0;
    color: #008fa3;
    font-size: 16px;
    text-decoration: none;
}

.login-page .loginrecoverytext:hover {
    color: #006e7e;
    text-decoration: underline;
}

.login-page .errorMessage,
.login-page .responseMessage {
    display: block;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 6px;
}

.login-page .errorMessage {
    background: #fff0ee;
    color: #8a2112;
}

.login-page .responseMessage {
    background: #eaf7f9;
    color: #004b35;
}

.login-support {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #008fa3;
    text-align: center;
    margin-top: 15px;
}

.login-support::before,
.login-support::after {
    flex: 1;
    height: 1px;
    background: #d6dbe0;
    content: "";
}

.login-support a {
    padding: 0;
    color: #008fa3;
    font-size: 16px;
    white-space: nowrap;
}

.login-support a:hover {
    color: #006e7e;
    text-decoration: underline;
}

.login-page .compliancygroupcontainer {
    display: flex;
    min-height: 54px;
    transform: scale(0.5);
    transform-origin: center;
    align-items: center;
    justify-content: center;
}

body #divFooter {
    box-sizing: border-box;
    padding: 0 24px 30px;
    color: #4e5766;
    font-size: 13px;
    line-height: 1.55;
}

body #divFooter > div:first-child {
    margin: 0 0 2px !important;
}

body #divFooter .masterpagefootertext,
body #divFooter a {
    color: #4e5766;
    font-weight: 400;
}

body #divFooter a:hover {
    color: #008fa3;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .login-page {
        min-height: calc(100vh - 102px);
        padding: 28px 14px 30px;
    }

    .login-decoration {
        width: 380px;
        opacity: .08;
    }

    .login-card-content {
        padding: 34px 24px 28px;
    }

    .login-brand-header {
        margin-bottom: 36px;
    }

    .login-heading {
        font-size: 27px;
    }

    .login-subheading {
        font-size: 16px;
    }

    .login-field-row {
        display: block;
    }

    .login-field-row .login-field {
        min-width: auto;
    }

    body #divFooter {
        padding: 0 16px 22px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-decoration {
        display: none;
    }
}
