/*
 * login-green.css
 * Green-theme redesign of the Edsy sign-in screens (login, loginpassword, loginotp,
 * forgotpassword, createPwd). Source design: the "Edsy Login Redesign" canvas.
 *
 * Everything is scoped under .edsylogin so the shared _Layout.cshtml, the legacy
 * loginpage/css/style.css and the *_old.cshtml backups keep working untouched.
 * Reverting a screen = renaming its *_old.cshtml back; this file is then unused.
 *
 * Colours follow the Edsy green token values. The sign-in pages have no saved
 * user theme yet, so dark mode follows the operating system
 * (prefers-color-scheme) and also honours body.darkmodeview.
 */

/* ---------- Tokens (light) ---------- */
.edsylogin {
    --el-brand: #1B5E3B;
    --el-brand-hover: #3D8A60;
    --el-brand-tint: #EBF4EF;
    --el-brand-ink: #FFFFFF;
    --el-bg: #FFFFFF;
    --el-surface: #FFFFFF;
    --el-surface-2: #FAFAF8;
    --el-ink: #1C1C1A;
    --el-ink-2: #5A5A56;
    --el-border: rgba(28, 28, 26, 0.09);
    --el-field-border: rgba(28, 28, 26, 0.16);
    --el-option-border: rgba(28, 28, 26, 0.14);
    --el-option-hover: #F6FAF8;
    --el-link: #1B5E3B;
    --el-link-hover: #3D8A60;
    --el-panel: #1B5E3B;
    --el-panel-accent: #BFE3CD;
    --el-info-bg: #EBF4EF;
    --el-info-ink: #1C1C1A;
    --el-focus: #EBF4EF;
    --el-logo: url("../loginpage/images/edsylogo-green-white.svg");
    color-scheme: light;
}

/* ---------- Tokens (dark) — OS preference, unless the page is forced light ---------- */
@media (prefers-color-scheme: dark) {
    body:not(.whitemodeview) .edsylogin {
        --el-brand: #49B77E;
        --el-brand-hover: #3D8A60;
        --el-brand-tint: #2F3C34;
        --el-brand-ink: #0F2A1C;
        --el-bg: #151719;
        --el-surface: #1B1F23;
        --el-surface-2: #272727;
        --el-ink: #FFFFFF;
        --el-ink-2: #CAC7C7;
        --el-border: rgba(255, 255, 255, 0.14);
        --el-field-border: rgba(255, 255, 255, 0.2);
        --el-option-border: rgba(255, 255, 255, 0.16);
        --el-option-hover: #22282D;
        --el-link: #6FD09C;
        --el-link-hover: #9BE0BB;
        --el-panel: #123F28;
        --el-panel-accent: #BFE3CD;
        --el-info-bg: #2F3C34;
        --el-info-ink: #FFFFFF;
        --el-focus: rgba(73, 183, 126, 0.28);
        --el-logo: url("../loginpage/images/edsylogo-green-white-dark.svg");
        color-scheme: dark;
    }
}

/* ---------- Tokens (dark) — Edsy's own dark-mode class ---------- */
body.darkmodeview .edsylogin {
    --el-brand: #49B77E;
    --el-brand-hover: #3D8A60;
    --el-brand-tint: #2F3C34;
    --el-brand-ink: #0F2A1C;
    --el-bg: #151719;
    --el-surface: #1B1F23;
    --el-surface-2: #272727;
    --el-ink: #FFFFFF;
    --el-ink-2: #CAC7C7;
    --el-border: rgba(255, 255, 255, 0.14);
    --el-field-border: rgba(255, 255, 255, 0.2);
    --el-option-border: rgba(255, 255, 255, 0.16);
    --el-option-hover: #22282D;
    --el-link: #6FD09C;
    --el-link-hover: #9BE0BB;
    --el-panel: #123F28;
    --el-panel-accent: #BFE3CD;
    --el-info-bg: #2F3C34;
    --el-info-ink: #FFFFFF;
    --el-focus: rgba(73, 183, 126, 0.28);
    --el-logo: url("../loginpage/images/edsylogo-green-white-dark.svg");
    color-scheme: dark;
}

/* ---------- Page shell: brand panel + form panel ---------- */
.edsylogin {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    background: var(--el-bg);
    color: var(--el-ink);
    -webkit-font-smoothing: antialiased;
}

.edsylogin *,
.edsylogin *::before,
.edsylogin *::after {
    box-sizing: border-box;
}

.edsylogin a {
    color: var(--el-link);
    font-weight: 600;
    text-decoration: none;
}

.edsylogin a:hover {
    color: var(--el-link-hover);
    text-decoration: underline;
}

.edsylogin :focus-visible {
    outline: 2px solid var(--el-brand);
    outline-offset: 2px;
}

/* Left brand panel (green, faint grid) */
.edsylogin .el_brand {
    flex: 1 1 520px;
    min-height: 320px;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    color: #FFFFFF;
    background-color: var(--el-panel);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

.edsylogin .el_logo {
    display: block;
    align-self: flex-start; /* stop the flex column stretching the logo to full width */
    height: 44px;
    aspect-ratio: 810 / 254; /* the logo SVG viewBox */
    background: var(--el-logo) no-repeat left center / contain; /* light or dark-panel variant */
}

.edsylogin .el_brand_body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 520px;
}

.edsylogin .el_eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--el-panel-accent);
}

.edsylogin .el_brand h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -1px;
    color: #FFFFFF;
}

.edsylogin .el_brand p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.edsylogin .el_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.edsylogin .el_chips li {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.edsylogin .el_points {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.edsylogin .el_points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.edsylogin .el_points i {
    flex: none;
    margin-top: 1px;
    font-size: 20px;
    color: var(--el-panel-accent);
}

/* Numbered steps (OTP / forgot password) */
.edsylogin .el_steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.edsylogin .el_steps li {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
}

.edsylogin .el_steps .el_stepnum {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.edsylogin .el_steps li.is-current {
    color: rgba(255, 255, 255, 0.95);
}

.edsylogin .el_steps li.is-current .el_stepnum {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #1B5E3B;
}

.edsylogin .el_steps li.is-done .el_stepnum {
    background: rgba(255, 255, 255, 0.16);
    border-color: transparent;
    color: #FFFFFF;
}

.edsylogin .el_brand_note {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.edsylogin .el_brand_note i {
    flex: none;
    font-size: 22px;
    color: var(--el-panel-accent);
}

.edsylogin .el_brand_foot {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Right form panel */
.edsylogin .el_main {
    flex: 1 1 480px;
    min-width: 0; /* let the panel shrink below its content's default width on small phones */
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: var(--el-bg);
}

.edsylogin .el_box {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* The form box stays vertically centred in the panel while the copyright line sits at the bottom. */
.edsylogin .el_main > .el_box {
    margin-top: auto;
    margin-bottom: auto;
}

.edsylogin .el_back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 14px;
}

.edsylogin .el_back i {
    font-size: 18px;
}

.edsylogin .el_head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edsylogin .el_head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--el-ink);
}

.edsylogin .el_head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--el-ink-2);
}

.edsylogin .el_divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--el-ink-2);
}

.edsylogin .el_divider::before,
.edsylogin .el_divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--el-border);
}

/* Sign-in method cards (login page) */
.edsylogin .el_options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edsylogin .el_option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--el-option-border);
    border-radius: 12px;
    background: var(--el-surface);
    color: var(--el-ink);
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.edsylogin .el_option:hover {
    border-color: var(--el-brand);
    background: var(--el-option-hover);
    box-shadow: 0 4px 14px rgba(27, 94, 59, 0.08);
    color: var(--el-ink);
    text-decoration: none;
}

.edsylogin .el_option_icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 10px;
    background: var(--el-brand-tint);
    color: var(--el-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.edsylogin .el_option_icon.is-neutral {
    background: var(--el-surface-2);
    border: 1px solid var(--el-border);
}

.edsylogin .el_option_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edsylogin .el_option_title {
    font-size: 15px;
    font-weight: 600;
}

.edsylogin .el_option_sub {
    font-size: 13px;
    color: var(--el-ink-2);
}

.edsylogin .el_option_chev {
    flex: none;
    font-size: 18px;
    color: var(--el-ink-2);
}

/* Fields */
.edsylogin .el_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edsylogin .el_field > label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--el-ink);
}

.edsylogin .el_input {
    height: 48px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid var(--el-field-border);
    border-radius: 10px;
    background: var(--el-surface);
    color: var(--el-ink);
    font-family: inherit;
    font-size: 15px;
    box-shadow: none;
}

.edsylogin .el_input:focus {
    outline: none;
    border-color: var(--el-brand);
    box-shadow: 0 0 0 4px var(--el-focus);
}

.edsylogin .el_input::placeholder {
    color: var(--el-ink-2);
    opacity: 0.7;
}

/* Keep Chrome's autofill from painting a light-blue box in dark mode */
.edsylogin .el_input:-webkit-autofill,
.edsylogin .el_input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--el-ink);
    -webkit-box-shadow: 0 0 0 1000px var(--el-surface) inset;
    caret-color: var(--el-ink);
}

.edsylogin .el_input_wrap {
    position: relative;
}

.edsylogin .el_input_wrap .el_input {
    padding-right: 52px;
}

.edsylogin .el_hint {
    margin: 0;
    font-size: 13px;
    color: var(--el-ink-2);
}

/* Show / hide password (keeps the existing .eyeclose / .eyeopen hooks) */
.edsylogin .el_eye {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--el-ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

.edsylogin .el_eye:hover {
    color: var(--el-ink);
}

/* One-time code: six digit boxes (they fill the hidden #userOTP) */
.edsylogin .el_otp {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.edsylogin .el_otp legend {
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--el-ink);
}

.edsylogin .el_digits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.edsylogin .el_digit {
    height: 56px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--el-field-border);
    border-radius: 10px;
    background: var(--el-surface);
    color: var(--el-ink);
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    caret-color: var(--el-brand);
}

.edsylogin .el_digit:focus {
    outline: none;
    border-color: var(--el-brand);
    box-shadow: 0 0 0 4px var(--el-focus);
}

/* Remember me + side link row */
.edsylogin .el_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.edsylogin .el_check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    font-size: 14px;
    color: var(--el-ink-2);
    cursor: pointer;
}

.edsylogin .el_check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--el-brand);
    cursor: pointer;
}

.edsylogin .el_sidelink {
    font-size: 14px;
    color: var(--el-ink-2);
}

/* "Resend OTP" is rendered by the existing script as a clickable span */
.edsylogin #resendOtpLink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--el-link);
    font-weight: 600;
}

.edsylogin #resendOtpLink:hover {
    color: var(--el-link-hover);
    text-decoration: underline;
}

.edsylogin #countdownnumber {
    color: var(--el-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Security code (captcha) — appears after repeated failures */
.edsylogin .el_captcha {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--el-border);
    border-radius: 12px;
    background: var(--el-surface-2);
}

.edsylogin .el_captcha_title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--el-ink);
}

.edsylogin .el_captcha_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.edsylogin .el_captcha_row #imgCaptcha {
    height: 44px;
    max-width: 160px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--el-border);
}

.edsylogin .el_iconbtn {
    width: 44px;
    height: 44px;
    flex: none;
    padding: 0;
    border: 1px solid var(--el-field-border);
    border-radius: 10px;
    background: var(--el-surface);
    color: var(--el-ink-2);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.edsylogin .el_iconbtn:hover {
    color: var(--el-brand);
    border-color: var(--el-brand);
}

.edsylogin .el_captcha_row .el_input {
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
    height: 44px;
}

/* Primary button. The OTP script swaps in a button with the legacy
   edsybtn_button classes, so those are styled here too. */
.edsylogin .el_btn,
.edsylogin .edsybtn_button.edsybtn_button_blue {
    height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--el-brand);
    color: var(--el-brand-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}

.edsylogin .el_btn:hover,
.edsylogin .edsybtn_button.edsybtn_button_blue:hover {
    background: var(--el-brand-hover);
    color: #FFFFFF;
}

.edsylogin .el_btn_outline {
    height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--el-brand);
    border-radius: 10px;
    background: var(--el-surface);
    color: var(--el-brand);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.edsylogin .el_btn_outline:hover {
    background: var(--el-option-hover);
}

/* Inline text links still get a 44px touch height */
.edsylogin .el_alt a,
.edsylogin .el_row > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.edsylogin .el_alt {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--el-border);
    font-size: 14px;
    color: var(--el-ink-2);
}

/* Inline information panel (Microsoft hand-off, OTP recipient, email sent) */
.edsylogin .el_info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--el-info-bg);
    color: var(--el-info-ink);
    font-size: 14px;
    line-height: 1.5;
}

.edsylogin .el_info > i {
    flex: none;
    font-size: 20px;
    color: var(--el-brand);
}

/* OTP recipient chip */
.edsylogin .el_recipient {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 12px;
    border-radius: 10px;
    background: var(--el-brand-tint);
}

.edsylogin .el_avatar {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    background: var(--el-brand);
    color: var(--el-brand-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.edsylogin .el_recipient_email {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edsylogin .el_recipient a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-size: 14px;
}

/* Footer: copyright line in the bottom right corner of the page */
.edsylogin .el_foot {
    width: 100%;
    text-align: right;
    padding-right: 32px; /* 24px panel padding + 32px = 56px, mirroring the green panel's side padding */
    font-size: 13px;
    color: var(--el-ink-2);
}

/* ---------- Microsoft hand-off state (login page) ---------- */
.edsylogin .el_spinner {
    position: relative;
    width: 72px;
    height: 72px;
}

.edsylogin .el_spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--el-brand-tint);
    border-top-color: var(--el-brand);
    animation: el_spin 1.1s linear infinite;
}

.edsylogin .el_spinner svg {
    position: absolute;
    left: 23px;
    top: 23px;
}

@keyframes el_spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .edsylogin .el_spinner::before {
        animation-duration: 3s;
    }
}

/* Which view is shown is driven by data-view on the .edsylogin root */
.edsylogin .el_view_microsoft {
    display: none;
}

.edsylogin[data-view="microsoft"] .el_view_choose {
    display: none;
}

.edsylogin[data-view="microsoft"] .el_view_microsoft {
    display: flex;
}

/* ---------- OTP two-step state (loginotp page) ---------- */
.edsylogin .el_step2only {
    display: none;
}

.edsylogin[data-step="2"] .el_step1only {
    display: none;
}

.edsylogin[data-step="2"] .el_step2only {
    display: flex;
}

.edsylogin[data-step="2"] .el_head.el_step2only {
    display: flex;
}

/* Bootstrap's d-none / layout's .hidden must still win inside the new markup */
.edsylogin .d-none,
.edsylogin .hidden {
    display: none !important;
}

/* ---------- Shared alert dialog (alertifynew, appended to <body>) ----------
   Only on pages that use this design: match the green brand instead of the legacy purple. */
body:has(.edsylogin) .alertify {
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body:has(.edsylogin) .alertify .alertify-button-ok {
    background: #1B5E3B;
    border-color: #1B5E3B;
    color: #FFFFFF;
}

body:has(.edsylogin) .alertify .alertify-button-ok:hover,
body:has(.edsylogin) .alertify .alertify-button-ok:focus {
    background: #3D8A60;
    border-color: #3D8A60;
}

/* ---------- "Please wait" loader (wizemenpreloader.js, appended to <body>) ----------
   Only on these sign-in pages: the shared purple Edsy GIF is hidden and the green Edsy
   animation is shown on a card over a soft backdrop. Other pages keep the shared loader. */
body:has(.edsylogin) .centerpreloader {
    background: rgba(21, 23, 25, 0.28);
}

body:has(.edsylogin) .centerpreloader img {
    display: none;
}

body:has(.edsylogin) .centerpreloader::after {
    content: "";
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: #FFFFFF url("../loginpage/images/edsylogo-green-animation.gif") no-repeat center / 96px 96px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* ---------- Narrow screens: compact brand header above the form ---------- */
@media (max-width: 1023px) {
    /* Stacked: one column, so the form panel fills the rest of the screen height and the
       copyright line can sit at the bottom right of the page. */
    .edsylogin {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .edsylogin .el_brand {
        flex: 0 0 auto;
        min-height: 0;
        padding: 32px 24px 28px;
        gap: 18px;
    }

    .edsylogin .el_brand .el_hide_narrow {
        display: none;
    }

    .edsylogin .el_brand h1 {
        font-size: 28px;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .edsylogin .el_brand_body {
        gap: 0;
    }

    .edsylogin .el_logo {
        height: 34px;
    }

    .edsylogin .el_main {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 24px 24px 20px;
    }

    .edsylogin .el_foot {
        padding-right: 0; /* stacked: line up with the 24px page gutter */
    }

}

/* Phones: the form starts right under the green header (on tablets it stays centred in the
   space below the header); only the copyright line is pushed to the bottom. */
@media (max-width: 599px) {
    .edsylogin .el_main > .el_box {
        margin-top: 0;
        margin-bottom: 0;
    }

    .edsylogin .el_foot {
        margin-top: auto;
    }
}

@media (max-width: 480px) {
    .edsylogin .el_head h2 {
        font-size: 24px;
    }
}
