/* ============================================
   SSO Rebranded Styles (Post-MUI Migration)
   Only: sso-container, background, header, footer
   Legacy form/button/label styles removed — MUI handles these now.
   ============================================ */

.background {
    background-color: #1a2a3a;
    background-image: url("https://www.ice.com/publicdocs/images/ICE-Login-01.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.sso-container {
    margin: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* Fix: Center SSO page panels — counteract float:left applied by [class*=true-grid-] in ice-core.css.
   .page is the common wrapper div used by all login/password/TFA/registration screens.
   Using display:flex + justify-content:center centers the inner panel horizontally.
   The child combinator (>) restricts the float override to the outermost panel container only —
   inner form-group elements that also carry true-grid-* classes (not direct children of .page)
   are unaffected, so existing form column widths and layouts remain intact. */
.page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.page>[class*="true-grid-"] {
    float: none;
}

/* HEADER Styles */

.sso-header {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 0.0625rem solid #e0e0e0;
    padding: 1rem;
}

.sso-header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    gap: 2rem;
}

.sso-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sso-header-logo-ice {
    height: 2.5rem;
    width: auto;
}

.sso-header-logo-nyse {
    height: 2rem;
    width: auto;
    margin-left: 15px;
}

.sso-header-left a {
    display: flex;
    align-items: center;
    outline: none;
}

.sso-header-left a:focus-visible {
    outline: 0.125rem solid #000000;
    outline-offset: 0.25rem;
    border-radius: 0.25rem;
}

.sso-header-center {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ff0000;
}

.sso-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sso-header-nav-btn {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
}

.header-bar-list {
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.header-bar-list>li {
    display: inline-block;
    vertical-align: baseline;
    padding: 0;
    cursor: pointer;
}

.header-bar-list>li>a {
    line-height: 2.1875;
    color: #000;
    text-transform: uppercase;
    padding: 15px 0;
}

.header-bar-list>li.is-active>a,
.header-bar-list>li>a:hover {
    color: #000;
    font-weight: bolder;
}

.header-bar-list>li:first-child {
    padding-left: 0;
}

.header-bar-list>li:last-child {
    padding-right: 0;
}

.text-right .header-bar-list>li {
    padding-left: 1.125rem;
    padding-right: 0;
}

.sso-header-nav-btn a {
    text-decoration: none;
}

@media (min-width: 980px), print {
    .text-right .header-bar-list>li:not(:first-child) {
        padding-left: 2.25rem;
    }
}

@media (min-width: 768px), print {
    .header-bar-list>li>a {
        display: inline-block;
        padding-top: .3125em;
        padding-bottom: .3125em;
        line-height: 1.5;
    }

    .header-bar-list>li.is-active>a,
    .header-bar-list>li>a:hover:not(.has-sprite) {
        position: relative;
        text-decoration: none;
    }
}

/* Mobile Responsive Styles for Header */
@media screen and (max-width: 768px) {
    .sso-header {
        min-height: 80px;
    }

    .sso-header-content {
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .sso-header-left {
        gap: 1rem;
    }

    .sso-header-logo-ice,
    .sso-header-logo-nyse {
        height: 2.5rem;
    }

    .sso-header-right {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .sso-header-nav-btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

}

/* FOOTER Styles */

.sso-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
}

.sso-footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
}

.sso-footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.sso-footer-logo img {
    height: 80px;
    width: auto;
}

.sso-footer-logo a {
    display: inline-block;
    outline: none;
}

.sso-footer-logo a:focus-visible {
    outline: 0.125rem solid #ffffff;
    outline-offset: 0.25rem;
    border-radius: 0.25rem;
}

.sso-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
}

.sso-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sso-footer-links li {
    display: inline-flex;
    align-items: center;
}

.sso-footer-links li:not(:first-child)::before {
    content: '|';
    color: #ffffff;
    margin: 0 0.625rem;
    font-size: 0.875rem;
    speak: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sso-footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0.125rem;
    transition: opacity 0.2s ease;
    outline: none;
    border-radius: 0.125rem;
}

.sso-footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.sso-footer-links a:focus {
    outline: 0.125rem solid #ffffff;
    outline-offset: 0.125rem;
}

.sso-footer-links a:focus:not(:focus-visible) {
    outline: none;
}

.sso-footer-links a:focus-visible {
    outline: 0.125rem solid #ffffff;
    outline-offset: 0.125rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.sso-footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    text-align: left;
    margin-top: 0.625rem;
}

.sso-footer-confidential,
.sso-footer-copyright {
    color: #ffffff;
    font-size: 0.75rem;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.sso-footer-confidential {
    max-width: 50rem;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .sso-footer {
        padding: 1.5rem 0;
        min-height: auto;
    }

    .sso-footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .sso-footer-logo {
        justify-content: center;
        width: 100%;
    }

    .sso-footer-logo img {
        height: 60px;
    }

    .sso-footer-right {
        width: 100%;
        align-items: center;
    }

    .sso-footer-links {
        justify-content: center;
    }

    .sso-footer-links a {
        font-size: 0.8125rem;
    }

    .sso-footer-legal {
        justify-content: center;
        align-items: center;
        margin-top: 0.5rem;
    }

    .sso-footer-confidential,
    .sso-footer-copyright {
        text-align: center;
        font-size: 0.6875rem;
    }
}

/* NYSE referer registration panel (member-login flow) */
.nyse-reg-panel {
    margin-top: 1.5rem;
}

.nyse-reg-panel .nyse-reg-divider {
    border: 0;
    border-top: 1px solid #d2d4d3;
    margin: 0 0 1rem 0;
}

.nyse-reg-panel .nyse-reg-heading {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
}

.nyse-reg-panel .nyse-reg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nyse-reg-panel .nyse-reg-card {
    display: flex;
    align-items: center;
    border: 1px solid #d2d4d3;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
}

.nyse-reg-panel .nyse-reg-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.nyse-reg-panel .nyse-reg-label {
    flex-grow: 1;
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
}

.nyse-reg-panel .nyse-reg-link {
    color: #888;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}

.nyse-reg-panel .nyse-reg-link:hover,
.nyse-reg-panel .nyse-reg-link:focus {
    color: #555;
    text-decoration: underline;
}