/* Shared login only. Mailbox styles and authentication are provided by Roundcube. */
body.task-login {
    margin: 0;
    background: #f4f6f8 !important;
    color: #17243c !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    overflow: auto !important;
}
body.task-login *, body.task-login *::before, body.task-login *::after { box-sizing: border-box; }
body.task-login #layout {
    display: block !important;
    min-height: 100vh;
    height: auto !important;
    background: transparent !important;
}
body.task-login #layout-content.wm-login {
    display: flex !important;
    flex-direction: column;
    width: min(1184px, 100%) !important;
    min-height: 100vh;
    height: auto !important;
    margin: 0 auto;
    padding: 0 48px;
    background: transparent !important;
    text-align: left;
}
body.task-login #layout-content::before,
body.task-login #login-footer::before,
body.task-login #login-footer::after { content: none; display: none; }
.task-login .wm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 118px;
    gap: 20px;
}
.task-login .wm-brand { display: flex; align-items: center; gap: 12px; color: #17243c; font-size: 26px; font-weight: 750; letter-spacing: -1px; }
.task-login .wm-brand-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #172d50; }
.task-login .wm-brand-icon svg { width: 25px; height: 25px; stroke: #fff; stroke-width: 1.5; }
.task-login .wm-brand-dot { color: #e99464; }
.task-login .wm-topbar-caption { color: #687588; font-size: 10px; font-weight: 650; letter-spacing: 1.8px; }
.task-login .wm-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 562px;
    margin: auto 0;
    overflow: hidden;
    border: 1px solid #e0e5ec;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 56px -28px rgba(23, 45, 80, .2);
}
.task-login .wm-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 52px 46px 32px;
    overflow: hidden;
    background: radial-gradient(ellipse at 100% 100%, #294766 0%, transparent 65%), #172d50;
    color: #fff;
}
.task-login .wm-eyebrow { display: flex; align-items: center; gap: 9px; color: #d8e2ef; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; }
.task-login .wm-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #efac83; }
.task-login .wm-intro h1 { position: relative; z-index: 1; margin: 30px 0 20px; color: #fff; font-size: clamp(36px, 3.6vw, 48px); font-weight: 650; letter-spacing: -1.8px; line-height: 1.15; }
.task-login .wm-intro h1 > span { color: #f0b894; }
.task-login .wm-intro-copy > p { margin: 0; color: #d0dbe9; font-size: 14px; line-height: 1.8; }
.task-login .wm-mail-art { position: relative; width: 100%; height: 175px; margin: 22px 0 6px; }
.task-login .wm-art-orbit { position: absolute; width: 250px; height: 250px; top: -24px; left: 41px; border: 1px solid rgba(224, 234, 246, .12); border-radius: 50%; }
.task-login .wm-art-back { position: absolute; top: 30px; left: 10px; width: min(300px, 95%); height: 74px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px; background: rgba(255, 255, 255, .04); transform: rotate(-7deg); }
.task-login .wm-art-message { position: relative; top: 39px; display: flex; align-items: center; gap: 15px; width: min(316px, 100%); height: 82px; padding: 21px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 13px; background: #f6f8fb; box-shadow: 0 14px 30px rgba(0, 0, 0, .1); transform: rotate(3deg); }
.task-login .wm-art-avatar { display: grid; flex: 0 0 40px; place-items: center; height: 40px; border-radius: 12px; background: #e4ecf5; }
.task-login .wm-art-avatar svg { width: 23px; height: 23px; stroke: #345578; stroke-width: 1.5; }
.task-login .wm-art-lines { display: grid; flex: 1; gap: 10px; }
.task-login .wm-art-lines i { display: block; width: 82%; height: 6px; border-radius: 8px; background: #c6d3e2; }
.task-login .wm-art-lines i + i { width: 60%; background: #e0e6ee; }
.task-login .wm-art-dot { width: 7px; height: 7px; border-radius: 50%; background: #df9466; }
.task-login .wm-art-note { position: absolute; bottom: 3px; left: 3px; color: #d3dfed; font-size: 11px; letter-spacing: .15px; }
.task-login .wm-intro-bottom { position: relative; display: flex; align-items: center; gap: 15px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); color: #c6d4e5; font-size: 9px; font-weight: 550; letter-spacing: 1.6px; }
.task-login .wm-intro-bottom i { width: 3px; height: 3px; border-radius: 50%; background: #7a91ad; }
.task-login .wm-access { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 52px 55px 40px; }
.task-login .wm-access-eyebrow { color: #66758b; font-size: 10px; font-weight: 650; letter-spacing: 1.8px; }
.task-login .wm-access h2 { margin: 15px 0 9px; color: #17243c; font-size: 28px; font-weight: 650; letter-spacing: -.8px; line-height: 1.2; }
.task-login .wm-access-heading > p { margin: 0 0 32px; color: #667388; font-size: 13px; line-height: 1.6; }
body.task-login #login-form { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.task-login #login-form tr { display: block; margin: 0 0 21px; }
body.task-login #login-form td.title label { display: block; margin: 0 0 9px; color: #25354e; font-size: 12px; font-weight: 600; line-height: 1.4; }
body.task-login #login-form td.title label::after,
body.task-login #login-form td.input::before { content: none !important; display: none !important; }
body.task-login #login-form td.input { position: relative; }
body.task-login #login-form .input-group-prepend { display: none !important; }
body.task-login #login-form .form-control {
    width: 100% !important;
    height: 49px;
    padding: 0 14px;
    border: 1px solid #cdd5df;
    border-radius: 8px;
    background: #fff !important;
    color: #17243c;
    font-family: inherit;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(23, 45, 80, .025);
    transition: border-color .15s, box-shadow .15s;
}
body.task-login #login-form .form-control:focus { border-color: #3c638f; box-shadow: 0 0 0 3px rgba(60, 99, 143, .12); outline: 0; }
body.task-login #login-form .form-control::placeholder { color: #8491a2; font-size: 13px; }
body.task-login #login-form #rcmloginpwd { padding-right: 78px; }
.task-login .wm-password-toggle { position: absolute; top: 7px; right: 7px; min-height: 35px; margin: 0; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #35587c; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.task-login .wm-password-toggle:hover { background: #edf2f7; }
.task-login .wm-password-toggle:focus-visible { outline: 2px solid #3c638f; outline-offset: 1px; }
body.task-login #login-form .formbuttons { margin: 8px 0 0; padding: 0; }
body.task-login #rcmloginsubmit { display: block; width: 100%; min-height: 49px; height: auto; padding: 13px 16px; border: 1px solid #172d50; border-radius: 8px; background: #172d50 !important; color: #fff !important; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: .1px; box-shadow: 0 4px 10px rgba(23, 45, 80, .1); transition: background .15s, box-shadow .15s; }
body.task-login #rcmloginsubmit:hover,
body.task-login #rcmloginsubmit:focus { background: #25456e !important; box-shadow: 0 4px 16px rgba(23, 45, 80, .16); }
body.task-login #rcmloginsubmit:focus-visible { outline: 3px solid #98b8da; outline-offset: 3px; }
body.task-login #rcmloginsubmit:disabled { opacity: .65; cursor: wait; }
.task-login .wm-account-help { margin: 14px 0 0; color: #667388; font-size: 11px; line-height: 1.6; text-align: center; }
body.task-login #login-footer { margin: 17px 0 0; padding: 0; color: #667388; font-size: 11px; line-height: 1.5; text-align: center; }
body.task-login #login-footer:empty { display: none; }
.task-login .wm-access-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 26px 0 0; padding-top: 23px; border-top: 1px solid #edf0f4; color: #718095; font-size: 10px; line-height: 1.6; text-align: center; }
.task-login .wm-access-note svg { flex-shrink: 0; width: 15px; height: 15px; stroke: #718095; stroke-width: 1.3; }
.task-login .wm-page-footer { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 25px 0 30px; color: #6e7b8d; font-size: 10px; line-height: 1.6; }
body.task-login .noscriptwarning { position: relative; width: min(100% - 32px, 700px); margin: 16px auto; padding: 14px; border: 1px solid #edc5b4; border-radius: 8px; background: #fff4ee; color: #7a3826; text-align: center; }
body.task-login #messagestack { z-index: 10000; max-width: calc(100vw - 32px); }
@media (min-width: 1500px) { body.task-login #layout-content.wm-login { padding-top: 10px; padding-bottom: 10px; } }
@media (max-width: 1000px) {
    body.task-login #layout-content.wm-login { padding: 0 30px; }
    .task-login .wm-topbar { min-height: 94px; }
    .task-login .wm-shell { min-height: 530px; }
    .task-login .wm-intro { padding: 42px 30px 28px; }
    .task-login .wm-intro h1 { font-size: 37px; }
    .task-login .wm-access { padding: 44px 32px 36px; }
    .task-login .wm-access h2 { font-size: 25px; }
    .task-login .wm-art-orbit { left: 0; }
}
@media (max-width: 700px) {
    body.task-login #layout-content.wm-login { padding: 0 22px; }
    .task-login .wm-topbar { min-height: 86px; }
    .task-login .wm-topbar-caption { display: none; }
    .task-login .wm-brand { font-size: 23px; }
    .task-login .wm-brand-icon { width: 35px; height: 35px; border-radius: 10px; }
    .task-login .wm-shell { grid-template-columns: 1fr; min-height: 0; max-width: 460px; margin: auto; border-radius: 20px; }
    .task-login .wm-intro { padding: 25px 28px 27px; }
    .task-login .wm-eyebrow { font-size: 8px; letter-spacing: 1.4px; }
    .task-login .wm-intro h1 { margin: 18px 0 0; font-size: 30px; letter-spacing: -.9px; line-height: 1.15; }
    .task-login .wm-intro h1 br { display: none; }
    .task-login .wm-intro-copy > p, .task-login .wm-mail-art, .task-login .wm-intro-bottom { display: none; }
    .task-login .wm-access { padding: 30px 28px 26px; }
    .task-login .wm-access-eyebrow { font-size: 9px; }
    .task-login .wm-access h2 { margin-top: 12px; font-size: 24px; }
    .task-login .wm-access-heading > p { margin-bottom: 24px; font-size: 12px; }
    .task-login .wm-access-note { margin-top: 22px; padding-top: 18px; }
    .task-login .wm-page-footer { max-width: 460px; align-self: center; justify-content: center; padding: 20px 0 24px; font-size: 9px; }
    .task-login .wm-page-footer > span + span { display: none; }
}
@media (max-width: 360px) {
    body.task-login #layout-content.wm-login { padding: 0 14px; }
    .task-login .wm-intro, .task-login .wm-access { padding-left: 22px; padding-right: 22px; }
    .task-login .wm-intro h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { body.task-login * { transition: none !important; } }
