/* Keep branding outside message bodies and preserve Elastic's responsive layout. */
body.task-login {
    background: radial-gradient(ellipse at 14% 10%, #173b48 0, transparent 48%), #091820;
    color: #142b37;
    overflow: auto;
    min-width: 280px;
    min-height: 100vh;
    height: auto;
}

body.task-login #layout {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: auto;
    padding: 56px 28px;
    overflow: visible;
}

body.task-login #layout-content {
    display: grid;
    grid-template-columns: 1.06fr 1fr;
    width: 100%;
    max-width: 1016px;
    flex: none;
    overflow: hidden;
    border: 1px solid #38545d;
    border-radius: 24px;
    background: #f8fafb;
    box-shadow: 0 36px 100px #0005;
    text-align: left;
}

.fu-identity {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 564px;
    padding: 44px;
    overflow: hidden;
    background: radial-gradient(ellipse at 95% 100%, #225c61 0, transparent 58%), #122e3a;
    color: #eef6f8;
}

.fu-identity::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 1px solid #72cfbb29;
    border-radius: 50%;
    box-shadow: 0 0 0 50px #72cfbb09, 0 0 0 100px #72cfbb07;
    pointer-events: none;
}

.fu-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.3px;
}

body.task-login #logo {
    position: static;
    width: 48px;
    height: 48px;
    margin: 0;
    max-height: none;
}

.fu-brand small {
    display: block;
    margin-top: 5px;
    color: #a8c2cd;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.2px;
}

.fu-intro {
    position: relative;
    z-index: 1;
    margin: 62px 0;
}

.fu-eyebrow {
    color: #71e7cf;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.7px;
}

.fu-intro h2 {
    margin: 20px 0;
    color: #f4f9fa;
    font-size: clamp(34px, 3.2vw, 46px);
    font-weight: 600;
    letter-spacing: -1.6px;
    line-height: 1.15;
}

.fu-intro em {
    color: #79e3cd;
    font-style: normal;
}

.fu-intro p {
    margin: 0;
    color: #bbd1da;
    font-size: 14px;
    line-height: 1.8;
}

.fu-domain {
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
    z-index: 1;
    color: #c4dbdf;
    font-size: 12px;
    letter-spacing: .3px;
}

.fu-domain > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #72e4ca;
}

body.task-login #login-form {
    align-self: center;
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 48px;
    color: #142b37;
}

.fu-form-heading {
    margin-bottom: 32px;
}

.fu-form-heading > p {
    margin: 0 0 12px;
    color: #32655f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.fu-form-heading h2 {
    margin: 0 0 12px;
    color: #142b37;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.9px;
}

.fu-form-heading > span {
    color: #586c77;
    font-size: 14px;
    line-height: 1.6;
}

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;
}

body.task-login #login-form label {
    margin: 0 0 9px;
    color: #304956;
    font-size: 13px;
    font-weight: 600;
}

body.task-login #login-form td.input {
    display: flex;
    padding: 0;
}

body.task-login #login-form .input-group {
    margin-bottom: 0;
}

body.task-login #login-form tr {
    margin: 0 0 20px;
}

body.task-login #login-form .input-group-text {
    border-color: #c5d2d8;
    background: #eef3f5;
    color: #526976;
}

body.task-login #login-form .form-control {
    height: 48px;
    border: 1px solid #b6c8cf;
    border-radius: 8px;
    background: #fff;
    color: #142b37;
    font-size: 15px;
    box-shadow: none;
}

body.task-login #login-form .form-control::placeholder {
    color: #667b86;
    opacity: 1;
}

body.task-login #login-form .input-group .form-control {
    border-radius: 0 8px 8px 0;
}

body.task-login #login-form .form-control:focus {
    border-color: #147868;
    box-shadow: 0 0 0 3px #14786826;
}

body.task-login #rcmloginsubmit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid #116f61;
    border-radius: 8px;
    background: #116f61;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
}

body.task-login #rcmloginsubmit:hover {
    border-color: #0b594e;
    background: #0b594e;
}

body.task-login #rcmloginsubmit:focus-visible {
    outline: 3px solid #14786880;
    outline-offset: 3px;
}

body.task-login #login-form .formbuttons {
    margin: 0 0 24px;
}

.fu-login-note {
    margin: 0;
    color: #596e7a;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.fu-login-note strong {
    color: #365660;
    font-weight: 500;
}

body.task-login #login-footer {
    margin-top: 24px;
    color: #62757e;
    font-size: 10px;
    text-align: center;
}

body.task-login #messagestack {
    z-index: 2000;
}

#layout-menu {
    background-color: #122e3a;
}

#taskmenu a {
    color: #c5d8e0;
}

#taskmenu a:hover,
#taskmenu a.selected,
#taskmenu a.compose {
    color: #76e4ce;
}

#taskmenu a.logout {
    color: #ff9494;
}

#layout-menu #logo {
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 12px auto;
}

html:not(.dark-mode) #mailboxlist li.selected > a {
    background-color: #e0f2ed;
    color: #146b5e;
}

html.dark-mode #layout-menu {
    background-color: #102832;
}

html.dark-mode #taskmenu a.selected,
html.dark-mode #taskmenu a.compose {
    color: #76e4ce;
}

html.dark-mode #mailboxlist li.selected > a {
    background-color: #21433f;
    color: #8ce7d4;
}

@media (max-width: 760px) {
    body.task-login #layout {
        padding: 24px 16px;
    }

    body.task-login #layout-content {
        grid-template-columns: 1fr;
        max-width: 480px;
        border-radius: 18px;
    }

    .fu-identity {
        min-height: auto;
        padding: 26px 30px;
    }

    .fu-intro {
        margin: 28px 0 20px;
    }

    .fu-intro h2 {
        margin: 12px 0 0;
        font-size: 34px;
    }

    .fu-intro p {
        display: none;
    }

    body.task-login #login-form {
        padding: 32px 30px;
    }

    .fu-form-heading {
        margin-bottom: 24px;
    }
}

@media (max-width: 360px) {
    body.task-login #layout {
        padding: 12px;
    }

    .fu-identity,
    body.task-login #login-form {
        padding: 24px;
    }
}
