/*
 * GovMail login page, split-screen design (new look only; loaded by govmail_ux on the login page).
 * Brand panel on the left, sign-in form on the right. Phones show the form only.
 */
body.task-login.gm-login-b,
body.task-login.gm-login-b #layout,
body.task-login.gm-login-b #layout-content { background: #fbfdfb !important; }

body.task-login.gm-login-b #layout-content {
    margin-left: 46%;
    width: 54%;
    padding: 24px 32px !important;
    min-height: 100vh;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}
body.task-login.gm-login-b #logo,
body.task-login.gm-login-b #login-footer,
body.task-login.gm-login-b .govmail-login-pill { display: none; }

/* brand panel */
.gm-brand {
    position: fixed; left: 0; top: 0; bottom: 0; width: 46%; z-index: 5;
    box-sizing: border-box; padding: 40px;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
    color: #fff; overflow: hidden;
    background: linear-gradient(160deg, #146911 0%, #1b8018 55%, #2da02a 100%);
}
.gm-brand:before, .gm-brand:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.gm-brand:before { width: 380px; height: 380px; border: 60px solid rgba(255,255,255,.07); right: -130px; top: -90px; }
.gm-brand:after  { width: 300px; height: 300px; border: 44px solid rgba(255,255,255,.06); left: -110px; bottom: -100px; }
.gm-brand > * { position: relative; z-index: 1; }
.gm-brand .gm-pill { background: #fff; border-radius: 16px; padding: 12px 20px; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.gm-brand .gm-pill img { height: 46px; width: auto; display: block; }
.gm-brand h2 { margin: 0 auto 10px; max-width: 300px; font-size: 2rem; line-height: 1.2; font-weight: 700; color: #fff; }
.gm-brand p { margin: 0 auto; max-width: 320px; font-size: .95rem; line-height: 1.55; opacity: .9; color: #fff; }
.gm-brand .gm-pw { display: flex; align-items: center; gap: 12px; font-size: .8rem; }
.gm-brand .gm-pw span { opacity: .9; }
.gm-brand .gm-pw div { background: #fff; border-radius: 12px; padding: 6px 12px; }
.gm-brand .gm-pw img { height: 36px; width: auto; display: block; }

/* form side */
body.task-login.gm-login-b #login-form {
    top: 0 !important; margin: 0 !important; max-width: 340px; padding: 0; background: transparent; box-shadow: none; border-radius: 0;
}
body.task-login.gm-login-b #login-form .govmail-login-title {
    margin: 0 0 4px; padding: 0; text-align: center; font-size: 1.6rem; font-weight: 700; color: #14221a;
}
body.task-login.gm-login-b #login-form .govmail-login-sub {
    margin: 0 0 22px; color: #5b6b5b; font-size: .92rem; text-align: center;
}
body.task-login.gm-login-b #login-form .form-group { margin-bottom: 12px; }
body.task-login.gm-login-b #login-form .input-group { flex-wrap: nowrap; }
body.task-login.gm-login-b #login-form .input-group-text {
    border: 1.5px solid #d3e0d5; border-right: 0; border-radius: 12px 0 0 12px; background: #fff; height: 50px; color: #7b8c7b;
}
body.task-login.gm-login-b #login-form .form-control,
body.task-login.gm-login-b #login-form input[type=text],
body.task-login.gm-login-b #login-form input[type=password] {
    height: 50px; border: 1.5px solid #d3e0d5; border-left: 0; border-radius: 0 12px 12px 0; font-size: .95rem;
}
body.task-login.gm-login-b #login-form .input-group:focus-within .input-group-text,
body.task-login.gm-login-b #login-form .input-group:focus-within .form-control { border-color: #1b8018; }
body.task-login.gm-login-b #login-form .input-group:focus-within { box-shadow: 0 0 0 4px rgba(27,128,24,.12); border-radius: 12px; }
body.task-login.gm-login-b #login-form .form-control:focus { box-shadow: none; }
body.task-login.gm-login-b #login-form .gm-show {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%); z-index: 4;
    background: none; border: 0; color: #1b8018; font-weight: 600; font-size: .78rem; cursor: pointer; padding: 4px;
}
body.task-login.gm-login-b #login-form .formbuttons .btn,
body.task-login.gm-login-b #login-form button[type=submit],
body.task-login.gm-login-b #login-form input[type=submit] {
    height: 50px; border-radius: 12px; border: 0 !important; font-size: .95rem; font-weight: 650;
    background: linear-gradient(135deg, #1f9a1b, #146911) !important;
    box-shadow: 0 10px 22px rgba(27,128,24,.32);
}

/* phones: form only, with the GovMail logo above it */
@media (max-width: 800px) {
    .gm-brand { position: absolute; width: 100%; bottom: auto; height: auto; padding: 28px 0 0; background: none; }
    .gm-brand:before, .gm-brand:after, .gm-brand > div:nth-child(n+2) { display: none; }
    .gm-brand .gm-pill { box-shadow: 0 2px 12px rgba(0,60,20,.14); border: 1px solid #e3ece4; }
    body.task-login.gm-login-b #layout-content { margin-left: 0; width: 100%; padding: 130px 20px 40px !important; justify-content: center; }
    body.task-login.gm-login-b #login-form .govmail-login-title,
    body.task-login.gm-login-b #login-form .govmail-login-sub { text-align: center; }
}
