/* Login-only presentation. Authentication and password-change styles stay shared. */
.login-header { position: relative; }
.login-topbar { display: contents; }
[data-login-layout="classic"] .login-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 20px;
    width: 100vw;
    max-width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 32px;
    background: #363b3f;
}
[data-login-layout="classic"] #WrapperTopNav {
    height: auto;
    background: transparent;
    text-indent: 0;
}
[data-login-layout="classic"] #WrapperTopNav p { margin: 0; white-space: nowrap; }
.login-intro { display: none; }
.login-logo-modern { display: none; }
[data-login-layout="modern"] #WrapperLogoBar .login-logo-classic { display: none; }
[data-login-layout="modern"] #WrapperLogoBar .login-logo-modern { display: inline-block; }
.login-page :focus-visible { outline: 3px solid #a85200; outline-offset: 3px; }

html[data-login-layout="modern"] { background: #1c2636; }
[data-login-layout="modern"] .login-page {
    min-width: 0;
    background: #1c2636;
    color: #14161a;
    font: 15px/1.6 "Raleway", Arial, sans-serif;
}
[data-login-layout="modern"] #Wrapper { min-height: 100vh; display: flex; flex-direction: column; }
[data-login-layout="modern"] .login-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
    padding: 22px 32px;
    margin: 0 auto;
}
[data-login-layout="modern"] #WrapperLogoBar {
    order: 0;
    padding: 0;
    font-size: 0;
    line-height: 1;
    background: transparent;
}
[data-login-layout="modern"] #WrapperLogoBar br { display: none; }
[data-login-layout="modern"] #WrapperLogoBar img { width: 156px; height: auto; }
[data-login-layout="modern"] #WrapperTopNav {
    order: 1;
    height: auto;
    margin-left: auto;
    background: transparent;
    text-indent: 0;
    line-height: 1.4;
}
[data-login-layout="modern"] #WrapperTopNav p { margin: 0; font-size: 14px; }
[data-login-layout="modern"] #WrapperTopNav img { height: 26px; }
[data-login-layout="modern"] #WrapperHeader { display: none; }
[data-login-layout="modern"] #WrapperContent {
    flex: 1;
    display: flex;
    align-items: center;
    background: transparent;
}
[data-login-layout="modern"] #MainBody,
[data-login-layout="modern"] #MainChannel,
[data-login-layout="modern"] #Content {
    float: none;
    width: 100%;
    box-sizing: border-box;
}
[data-login-layout="modern"] #MainBody { max-width: 1280px; padding: 36px 32px 72px; }
[data-login-layout="modern"] #Content { margin: 0; padding: 0; }
[data-login-layout="modern"] .login-layout {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 484px);
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "intro panel" "announcements panel";
    justify-content: space-between;
    gap: 24px 56px;
}
[data-login-layout="modern"] .login-layout::after { display: none; }
[data-login-layout="modern"] .login-intro { display: block; grid-area: intro; align-self: end; color: #fff; }
[data-login-layout="modern"] #Content .login-eyebrow {
    margin: 0 0 18px;
    color: #ff9a3d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
[data-login-layout="modern"] .login-intro h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}
[data-login-layout="modern"] .login-panel {
    grid-area: panel;
    align-self: center;
    min-width: 0;
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgb(0 0 0 / 25%);
}
[data-login-layout="modern"] #Content .login-panel > h1 {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    color: #14161a;
    font-size: 24px;
    font-weight: 700;
}
[data-login-layout="modern"] .login-classic-welcome { display: none; }
[data-login-layout="modern"] .login-panel table,
[data-login-layout="modern"] .login-panel tbody,
[data-login-layout="modern"] .login-panel tr,
[data-login-layout="modern"] .login-panel td { display: block; width: 100%; box-sizing: border-box; }
[data-login-layout="modern"] .login-panel tr { margin-bottom: 16px; }
[data-login-layout="modern"] .login-panel tr:has(td:only-child),
[data-login-layout="modern"] .login-panel td:empty { display: none; }
[data-login-layout="modern"] .login-panel td.usermessage {
    margin-bottom: 6px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}
[data-login-layout="modern"] .login-panel input[type="text"],
[data-login-layout="modern"] .login-panel input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #c9c6bf;
    border-radius: 10px;
    background: #fff;
    color: #14161a;
    font: inherit;
    font-size: 16px;
}
[data-login-layout="modern"] .login-panel input[type="submit"] {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: #ff7e06;
    color: #14161a;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
[data-login-layout="modern"] .login-panel input[type="submit"]:hover { background: #ff9a3d; }
[data-login-layout="modern"] .login-panel fieldset:disabled { opacity: .6; }
[data-login-layout="modern"] .login-panel fieldset:disabled input { cursor: wait; }
[data-login-layout="modern"] .employee-sign-in {
    width: auto;
    margin: 20px 0;
    padding-top: 20px;
    border-color: #eae8e3;
}
[data-login-layout="modern"] #Content .employee-sign-in > a { color: #a85200; font-size: 15px; font-weight: 700; text-decoration: underline; }
[data-login-layout="modern"] #Content .employee-sign-in p { margin: 6px 0 0; color: #4a4d53; font-size: 13px; }
[data-login-layout="modern"] .login-contact {
    padding: 18px 0 0;
    border-top: 1px solid #eae8e3;
    color: #4a4d53;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
[data-login-layout="modern"] #Content .login-contact a { color: #a85200; text-decoration: underline; }
[data-login-layout="modern"] #Content .login-announcements {
    grid-area: announcements;
    align-self: start;
    margin: 0;
    padding: 0;
    border: 0;
    color: #c3c9d3;
    font-size: 17px;
    line-height: 1.7;
}
[data-login-layout="modern"] #Content .login-announcements a { color: #ff9a3d; text-decoration: underline; }
[data-login-layout="modern"] #page-message { border-radius: 8px; font-size: 14px; }

@media (max-width: 960px) {
    [data-login-layout="modern"] .login-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "intro" "panel" "announcements";
        max-width: 560px;
        margin: 0 auto;
        gap: 28px;
    }
    [data-login-layout="modern"] .login-intro h2 { font-size: 36px; }
    [data-login-layout="modern"] #WrapperTopNav { margin-left: 0; }
}
@media (max-width: 600px) {
    [data-login-layout="modern"] .login-header { padding: 20px; gap: 16px; }
    [data-login-layout="modern"] #WrapperLogoBar img { width: 128px; }
    [data-login-layout="modern"] #WrapperTopNav { order: 3; width: 100%; text-align: left; }
    [data-login-layout="modern"] #WrapperTopNav p { font-size: 13px; }
    [data-login-layout="modern"] #MainBody { padding: 20px 20px 40px; }
    [data-login-layout="modern"] .login-intro h2 { font-size: 30px; }
    [data-login-layout="modern"] .login-panel { padding: 24px; border-radius: 16px; }
    [data-login-layout="modern"] #Content .login-announcements { font-size: 15px; }
}

/* Allow the toolbar to wrap on narrow screens while the Classic page stays fixed-width. */
@media (max-width: 600px) {
    [data-login-layout="classic"] .login-topbar { padding: 6px 12px; }
    [data-login-layout="classic"] #WrapperTopNav { line-height: 1.4; }
    [data-login-layout="classic"] #WrapperTopNav img { height: 26px; }
}
