
/* SGS Webmail — Screenshot 2 layout */

body.task-login {
    min-height: 100vh;
    background: #eaf1f8;
}

body.task-login #layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    box-sizing: border-box;
    background: none;
    position: relative;
    isolation: isolate;
}

body.task-login #layout-content {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

body.task-login #layout-content > h1,
body.task-login #layout-content .voice {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

#sgs-login-page {
    position: relative;
    display: grid;
    grid-template-columns: 45% 55%;
    width: min(600px, calc(100vw - 48px));
    min-height: 300px;
    margin: 0 auto;
    transform: translateX(300px);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 65px rgba(24, 53, 88, .22);
    overflow: visible;
}

/* Left branding panel */

#sgs-login-page .sgs-login-brand {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 45px 28px 30px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    background: linear-gradient(145deg, #3937ff 0%, #2523e9 65%, #3835d9 100%);
    border-radius: 24px 0 0 24px;
    overflow: visible;
}

/* Annaya stands to the left of the card */

#sgs-login-page .sgs-lab-professional {
    position: absolute;
    z-index: 5;
    left: -335px;
    bottom: -125px;
    width: 410px;
    height: 650px;
    background-image: url("/skins/elastic/images/sgs-female-model.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    pointer-events: none;
}

/* Keep the branding text above its blue panel */

#sgs-login-page .sgs-brand-mark,
#sgs-login-page .sgs-brand-eyebrow,
#sgs-login-page .sgs-login-brand h2,
#sgs-login-page .sgs-brand-description,
#sgs-login-page .sgs-brand-rule,
#sgs-login-page .sgs-brand-caption {
    position: relative;
    z-index: 2;
}

#sgs-login-page .sgs-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .15);
}

#sgs-login-page .sgs-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#sgs-login-page .sgs-brand-eyebrow {
    margin: 0 0 10px;
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.1px;
    white-space: nowrap;
}

#sgs-login-page .sgs-login-brand h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.2;
}

#sgs-login-page .sgs-brand-description {
    margin: 0 auto;
    max-width: 290px;
    color: rgba(255, 255, 255, .94);
    font-size: 16px;
    line-height: 1.65;
}

#sgs-login-page .sgs-brand-rule {
    width: 54px;
    height: 3px;
    margin: 20px auto;
    background: #a8dfff;
    border-radius: 5px;
}

#sgs-login-page .sgs-brand-caption {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.6;
}

#sgs-login-page .sgs-decoration {
    position: absolute;
    z-index: 0;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

#sgs-login-page .sgs-decoration-one {
    right: -105px;
    bottom: -145px;
}

#sgs-login-page .sgs-decoration-two {
    right: -75px;
    bottom: -115px;
}

/* White login panel */

#sgs-login-page .sgs-login-card {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 46px 10px 100px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 0 24px 24px 0;
}

#sgs-login-page .sgs-card-heading {
    margin-bottom: 18px;
}

#sgs-login-page .sgs-card-kicker {
    display: block;
    margin-bottom: 10px;
    color: #3035f5;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

#sgs-login-page .sgs-card-heading h2 {
    margin: 0 0 8px;
    color: #172b4d;
    font-size: 31px;
    font-weight: 750;
    line-height: 1.2;
}

#sgs-login-page .sgs-card-heading p {
    margin: 0;
    color: #74839b;
    font-size: 13px;
    line-height: 1.6;
}

#sgs-login-page #login-form {
    margin: 0;
    transform: translateY(-70px);
}

#sgs-login-page #login-form label {
    color: #253957;
    font-size: 13px;
    font-weight: 700;
}

#sgs-login-page #login-form input[type="text"],
#sgs-login-page #login-form input[type="email"],
#sgs-login-page #login-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    box-sizing: border-box;
    color: #1d2f4d;
    background: #f9fbfe;
    border: 1px solid #d6e1f0;
    border-radius: 11px;
    box-shadow: none;
    font-size: 14px;
}

#sgs-login-page #login-form input:focus {
    border-color: #3736f5;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(55, 54, 245, .12);
}

#sgs-login-page #login-form .form-group,
#sgs-login-page #login-form .row {
    margin-bottom: 16px;
}

#sgs-login-page #login-form .input-group {
    display: flex;
    width: 100%;
}

#sgs-login-page #login-form .input-group .form-control {
    flex: 1 1 0%;
    width: 1%;
    min-width: 0;
     box-sizing: border-box;
}

#sgs-login-page #login-form button,
#sgs-login-page #login-form input[type="submit"],
#sgs-login-page #login-form button.btn-primary {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    color: #fff;
    background: #2927f5;
    border: 0;
    border-radius: 11px;
    box-shadow: 0 10px 22px rgba(41, 39, 245, .22);
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
}

#sgs-login-page #login-form button:hover,
#sgs-login-page #login-form input[type="submit"]:hover {
    background: #1e1bdc;
}

#sgs-login-page #login-footer {
    margin-top: 14px;
    color: #8593a9;
    text-align: center;
    font-size: 11px;
}

#sgs-login-page .sgs-security-note {
    margin: 13px 0 0;
    color: #8593a9;
    text-align: center;
    font-size: 12px;
}

#sgs-login-page .sgs-security-note span {
    margin-right: 5px;
}

/* Responsive layout */

@media (max-width: 1050px) {
    #sgs-login-page {
        transform: none;
        width: min(820px, calc(100vw - 40px));
    }

    #sgs-login-page .sgs-lab-professional {
        left: -190px;
        width: 220px;
        height: 460px;
    }
}

@media (max-width: 720px) {
    body.task-login #layout {
        padding: 24px 14px;
        background-attachment: scroll;
    }

    #sgs-login-page {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 0;
        transform: none;
        overflow: hidden;
        border-radius: 20px;
    }

    #sgs-login-page .sgs-login-brand {
        min-height: 270px;
        padding: 28px 22px;
        border-radius: 20px 20px 0 0;
    }

    #sgs-login-page .sgs-lab-professional {
        left: -15px;
        bottom: 0;
        width: 135px;
        height: 270px;
    }

    #sgs-login-page .sgs-brand-mark {
        width: 58px;
        height: 58px;
        margin-bottom: 10px;
    }

    #sgs-login-page .sgs-login-brand h2 {
        font-size: 23px;
    }

    #sgs-login-page .sgs-brand-description,
    #sgs-login-page .sgs-brand-caption {
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    #sgs-login-page .sgs-login-card {
        padding: 30px 24px;
        border-radius: 0 0 20px 20px;
    }

    #sgs-login-page .sgs-card-heading h2 {
        font-size: 27px;
    }
}

#sgs-login-page #login-form {
    transform: translateY(-130px);
}

/* SGS model: increase visible height */
#sgs-login-page .sgs-lab-professional {
    width: 500px !important;
    height: 760px !important;
    background-size: auto 100% !important;
    background-position: center bottom !important;
}

/* Tablet */
@media (max-width: 1050px) {
    #sgs-login-page .sgs-lab-professional {
        width: 340px !important;
        height: 560px !important;
        background-size: auto 100% !important;
    }
}

/* Mobile */
@media (max-width: 720px) {
    #sgs-login-page .sgs-lab-professional {
        width: 180px !important;
        height: 320px !important;
        background-size: auto 100% !important;
    }
}

/* SGS Webmail copyright positioning */
#layout-content .sgs-login-copyright {
    position: fixed;
    right: 30px;
    bottom: 12px;
    left: auto;
    width: auto;
    margin: 0;
    text-align: right;
    z-index: 100;
    color: #010813;
    font-size: 12px;
}

body.task-login #layout::before {
    content: "";
    position: fixed;
    inset: -8px;
    z-index: -1;
    background:
        linear-gradient(
            rgba(226, 238, 250, .12),
            rgba(226, 238, 250, .18)
        ),
        url("/skins/elastic/images/sgs-webmail-background.png")
        center / cover no-repeat;
    filter: blur(2px);
}
