body.task-login {
    background: #eef4f8;
    color: #0a2144;
}

body.task-login #layout {
    background: transparent;
}

body.task-login #layout-content {
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(360px, 1.1fr);
    width: min(920px, calc(100% - 40px));
    min-height: 520px;
    margin: clamp(28px, 6vh, 74px) auto;
    padding: 0;
    overflow: hidden;
    background: #071f45;
    border: 1px solid #173a68;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(5, 34, 73, .13);
}

.knox-welcome {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: #071f45;
    color: #fff;
}

.knox-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 46px 46px;
}

.knox-welcome-copy {
    position: relative;
    z-index: 2;
    width: 67%;
    padding: 44px 34px;
}

.knox-eyebrow,
.knox-signin-heading > span {
    display: block;
    margin-bottom: 14px;
    color: #13bce9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.knox-welcome h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(31px, 3.3vw, 40px);
    line-height: 1.05;
    letter-spacing: 0;
}

.knox-welcome p {
    max-width: 350px;
    margin: 0;
    color: #c9d8e9;
    font-size: 15px;
    line-height: 1.65;
}

.knox-welcome img {
    position: absolute;
    z-index: 1;
    right: -22px;
    bottom: 0;
    width: 250px;
    max-height: 405px;
    object-fit: contain;
    object-position: bottom right;
}

.knox-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.knox-assurances span {
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.knox-signin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 52px;
    background: #071f45;
    border-left: 1px solid rgba(255,255,255,.11);
}

.knox-logo {
    display: block;
    width: 172px;
    margin: 0 0 30px;
}

.knox-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.knox-signin-heading h2 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
}

.knox-signin-heading p {
    margin: 0 0 28px;
    color: #c9d8e9;
    font-size: 15px;
}

body.task-login #login-form {
    width: 100%;
    max-width: none;
    margin: 0;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
}

body.task-login #login-form .row {
    margin-bottom: 18px;
}

body.task-login #login-form label {
    margin-bottom: 7px;
    color: #dbe7f4;
    font-size: 13px;
    font-weight: 700;
}

body.task-login #login-form input.form-control {
    min-height: 50px;
    border: 1px solid #cbd8e3;
    border-radius: 5px;
    background: #fff;
    color: #0b2447;
    font-size: 16px;
    box-shadow: none;
}

body.task-login #login-form input.form-control:focus {
    border-color: #0aaee0;
    box-shadow: 0 0 0 3px rgba(10,174,224,.14);
}

body.task-login #rcmloginsubmit {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 5px;
    background: #087fc9;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

body.task-login #rcmloginsubmit:hover,
body.task-login #rcmloginsubmit:focus {
    background: #0568aa;
}

body.task-login #login-footer {
    display: none;
}

.knox-login-help {
    margin-top: 22px;
    color: #b8cae0;
    font-size: 13px;
    text-align: center;
}

.knox-login-help a {
    color: #38c8ed;
    font-weight: 700;
}

@media (max-width: 980px) {
    body.task-login {
        min-height: 100%;
    }

    body.task-login #layout {
        min-height: 100vh;
        padding: 12px 0;
    }

    body.task-login #layout-content {
        grid-template-columns: 1fr;
        width: min(480px, calc(100% - 20px));
        min-height: 0;
        margin: 0 auto;
    }

    .knox-welcome {
        min-height: 132px;
    }

    .knox-welcome-copy {
        width: 76%;
        padding: 20px 22px;
    }

    .knox-welcome h2 {
        margin-bottom: 0;
        font-size: 25px;
        line-height: 1.08;
    }

    .knox-welcome p,
    .knox-assurances {
        display: none;
    }

    .knox-welcome img {
        right: -5px;
        bottom: -24px;
        width: 145px;
        max-height: 175px;
    }

    .knox-signin {
        padding: 22px 22px 24px;
        border-top: 1px solid rgba(255,255,255,.11);
        border-left: 0;
    }

    .knox-logo {
        width: 138px;
        margin-bottom: 16px;
    }

    .knox-signin-heading h2 {
        font-size: 24px;
    }

    .knox-signin-heading p {
        margin-bottom: 16px;
        font-size: 14px;
    }

    body.task-login #login-form .row {
        margin-bottom: 12px;
    }

    body.task-login #login-form input.form-control,
    body.task-login #rcmloginsubmit {
        min-height: 46px;
    }

    .knox-login-help {
        margin-top: 13px;
    }
}

@media (max-width: 430px) {
    .knox-welcome-copy {
        width: 78%;
    }

    .knox-welcome h2 {
        font-size: 27px;
    }

    .knox-signin {
        padding-inline: 22px;
    }
}

/* Keep login deliberately compact on every device, including desktop-mode mobiles. */
body.task-login #layout {
    min-height: 100vh;
    padding: 16px 0;
}

body.task-login #layout-content {
    grid-template-columns: 1fr;
    grid-template-rows: 142px auto !important;
    width: calc(100% - 24px) !important;
    max-width: 520px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
    align-self: center;
    align-content: start;
}

.knox-welcome {
    min-height: 0 !important;
    height: 142px !important;
    flex: 0 0 142px !important;
}

.knox-welcome-copy {
    width: 76%;
    padding: 22px 24px;
}

.knox-welcome h2 {
    margin-bottom: 0;
    font-size: 27px;
    line-height: 1.08;
}

.knox-welcome p,
.knox-assurances {
    display: none;
}

.knox-welcome img {
    right: 10px;
    top: 12px;
    bottom: auto;
    width: 138px;
    max-height: 166px;
}

.knox-signin {
    padding: 22px 28px 24px;
    border-top: 1px solid rgba(255,255,255,.11);
    border-left: 0;
    min-height: 0 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    justify-content: flex-start;
}

.knox-logo {
    width: 145px;
    margin: 0 auto 17px;
}

.knox-signin-heading h2 {
    font-size: 25px;
}

.knox-signin-heading p {
    margin-bottom: 17px;
    font-size: 14px;
}

body.task-login #login-form .row {
    margin-bottom: 12px;
}

body.task-login #login-form input.form-control,
body.task-login #rcmloginsubmit {
    min-height: 46px;
}

.knox-login-help {
    margin: 14px 0 0;
}
