/* Host-scoped presentation for mobile.kasspargroup.com. Roundcube remains the login handler. */
body.task-login {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    color: #172b4d;
    background: #f7f9fc;
    font-family: "Segoe UI", Arial, sans-serif;
}

body.task-login::before {
    content: "";
    position: fixed;
    inset: 0 auto 0 0;
    width: 36%;
    background:
        url("kasspar-group-logo.png") center 30% / 170px auto no-repeat,
        linear-gradient(145deg, #0059a6, #0078d4);
    box-shadow: 12px 0 42px rgba(13, 43, 74, .12);
}

body.task-login::after {
    content: "KASSPAR\A MOBILE WEBMAIL\A\A Secure Roundcube access";
    white-space: pre;
    position: fixed;
    left: 0;
    top: 52%;
    width: 36%;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 2px;
}

body.task-login #layout {
    position: relative;
    min-height: 100vh;
    margin-left: 36%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc !important;
}

body.task-login #layout-content {
    position: relative;
    inset: auto;
    display: block !important;
    box-sizing: border-box !important;
    width: 460px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 80px) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0;
    padding: 48px 54px 42px;
    overflow: visible;
    border: 1px solid #dfe5ec;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(13, 43, 74, .10);
}

body.task-login #layout-content::before {
    content: "Kasspar Mobile Webmail";
    display: block !important;
    width: 100%;
    text-align: left;
    margin-bottom: 6px;
    color: #0067b8;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -.5px;
}

body.task-login #layout-content::after {
    content: "Sign in with your Kasspar Group mailbox";
    position: absolute;
    top: 91px;
    left: 54px;
    color: #5f6f82;
    font-size: 14px;
}

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

body.task-login #login-form {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    margin: 55px 0 0;
}

body.task-login #login-form table,
body.task-login #login-form tbody,
body.task-login #login-form tr,
body.task-login #login-form td {
    display: block;
    width: 100%;
}

body.task-login #login-form td.title {
    padding: 0 0 7px;
    color: #31455f;
    font-size: 13px;
    font-weight: 600;
}

body.task-login #login-form td.input {
    padding: 0 0 20px;
}

body.task-login #login-form .form-control {
    width: 100%;
    height: 46px;
    padding: 10px 12px;
    border: 1px solid #8997a8;
    border-radius: 2px;
    background: #fff;
    color: #172b4d;
    font-size: 16px;
    box-shadow: none;
}

body.task-login #login-form .form-control:focus {
    border-color: #0078d4;
    outline: 2px solid rgba(0, 120, 212, .17);
    outline-offset: 0;
}

body.task-login #login-form .formbuttons {
    margin: 5px 0 0;
    text-align: left;
}

body.task-login #rcmloginsubmit {
    min-width: 132px;
    height: 45px;
    padding: 0 24px;
    border: 0;
    border-radius: 2px;
    background: #0078d4;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
}

body.task-login #rcmloginsubmit:hover,
body.task-login #rcmloginsubmit:focus {
    background: #005a9e;
}

body.task-login #login-footer {
    margin-top: 30px;
    color: #76869a;
    font-size: 12px;
    text-align: left;
}

/* Keep Roundcube's post-login interface familiar while using Kasspar blue accents. */
body:not(.task-login) #layout-menu,
body:not(.task-login) #taskmenu {
    background-color: #075a9c;
}

body:not(.task-login) .listing li.selected,
body:not(.task-login) .listing tr.selected td {
    background-color: #e8f3fb;
}

@media (max-width: 760px) {
    body.task-login {
        overflow: auto;
        background: #fff;
    }

    body.task-login::before {
        position: absolute;
        inset: 0 0 auto;
        width: 100%;
        height: 168px;
        background:
            url("kasspar-group-logo.png") center 28px / 92px auto no-repeat,
            linear-gradient(145deg, #0059a6, #0078d4);
        box-shadow: none;
    }

    body.task-login::after {
        top: 104px;
        width: 100%;
        font-size: 12px;
        line-height: 1.3;
        letter-spacing: 1.4px;
    }

    body.task-login #layout {
        min-height: 100vh;
        margin: 0;
        padding: 196px 20px 28px;
        align-items: flex-start;
    }

    body.task-login #layout-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 24px 26px;
        border: 0;
        box-shadow: none;
    }

    body.task-login #layout-content::before {
        font-size: 25px;
    }

    body.task-login #layout-content::after {
        top: 70px;
        left: 24px;
    }

    body.task-login #login-form {
        margin-top: 52px;
    }

    body.task-login #rcmloginsubmit {
        width: 100%;
    }
}
