.page_section p {
    border: none!important
}

.pagination>li>a, .pagination>li>span {
    width: auto!important;
    height: auto!important
}

.breadcrumb {
    background: 0 0!important;
    border-radius: 0
}

.breadcrumb li>a {
    color: #fff
}

.breadcrumb li>a:hover {
    color: #1f3463
}

.breadcrumb .active {
    color: #1f3463!important
}

@font-face {
    font-family: 'Lyon Display Web';
    src: url(LyonDisplay-Bold-Web.eot);
    src: url(LyonDisplay-Bold-Web.eot?#iefix) format("embedded-opentype"), url(LyonDisplay-Bold-Web.woff2) format("woff2"), url(LyonDisplay-Bold-Web.woff) format("woff");
    font-weight: 700;
    font-style: normal;
    font-stretch: normal
}

.LyonDisplay-Bold-Web {
    font-family: 'Lyon Display Web';
    font-weight: 700;
    font-style: normal;
    font-stretch: normal
}

#payButton {
    background: #1f3463!important;
    transition: all .2s linear
}

#payButton:hover {
    background: #182440!important
}

body, html {
    margin: 0;
    padding: 0;
    font-size: 12px;
    height: 100%
}

body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column
}

*, :after, :before {
    box-sizing: border-box
}

.container {
    margin-bottom: 6rem
}

h1, h2, h3, h4, h5 {
    font-family: 'Lyon Display Web', Arial, Helvetica, sans-serif
}

.pagecontent {
    padding: 5rem 15vw;
    font-family: Arimo, Arial, Helvetica, sans-serif
}

.pagecontent h1 {
    color: #4a4a4a;
    margin-bottom: 1.5rem
}

.pagecontent h1:not(:first-child) {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #e8e8e8
}

.pagecontent p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #4a4a4a
}

.wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #4a4a4a;
    background: #f9f9f9;
    padding: 2.5rem 10vw
}

.wrapper__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%
}

.wrapper__content h1 {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .5)
}

.wrapper__content h1:not(:first-child) {
    margin-top: 2rem
}

.wrapper__content p {
    font-size: 1.25rem;
    line-height: 1.75;
    letter-spacing: 1px
}

.wrapper--purple {
    background: #702082;
    color: #fff
}

.wrapper--blue {
    background: #1f3463;
    color: #fff
}

.footer {
    padding: 1rem 15vw;
    font-size: 1rem;
    display: flex;
    width: 100%;
    background: #4a4a4a;
    margin-top: auto
}

.footer a {
    color: rgba(31, 52, 99, .9);
    text-decoration: none;
    margin-right: 2rem;
    transition: all .2s linear
}

.footer a:hover {
    color: #e74022
}

.footer__copyright {
    color: rgba(255, 255, 255, .6);
    margin: 0 auto;
    text-align: center
}

.footer--purple {
    background: #2d2d2d;
    border-top: 1px solid #a52fbf
}

.footer--blue {
    background: #2d2d2d;
    border-top: 1px solid #31539d
}

table {
    width: 100%;
    border-collapse: collapse
}

table thead td, table thead th {
    font-size: 1.25rem;
    padding: .75rem .25rem 1.25rem;
    border-bottom: 1px solid #a52fbf;
    font-weight: 700;
    color: #4a4a4a
}

table tbody td {
    font-size: 1.25rem;
    padding: .75rem 1rem;
    color: #4a4a4a
}

@media screen and (min-width:770px) {
    table thead tbody td:not(:last-child) {
        border-right: 1px solid #cecece
    }
}

.c-header {
    background: #fff;
    width: 100%;
    box-shadow: 0 2px 1px 0 rgba(0, 0, 0, .2);
    position: relative;
    padding-top: 4px
}

.c-header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030
}

.c-header__brand-bar {
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr
}

.c-header:before {
    content: "";
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #ff7412 0, #f82790 29%, #449cc9 70%, #7ecc30 97%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99
}

.c-nav {
    width: 100%;
    background: #fff;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 70%;
    grid-template-columns: 1fr 70%;
    grid-column-gap: 5vw;
    position: relative
}

.c-nav__brand {
    max-height: 6rem;
    margin: 1rem;
    max-width: 100%
}

.c-nav__brand--left {
    margin-left: auto
}

.c-nav__mobile-logo {
    display: none
}

.c-nav__menu {
    display: flex!important;
    justify-content: flex-end;
    align-self: flex-end;
    letter-spacing: 1px;
    -ms-grid-column: 2;
    height: auto!important;
    min-width: 0!important;
    outline: 0!important;
    height: auto!important
}

.c-nav__menu-item {
    position: relative;
    padding: 1rem 1.75rem;
    transition: all .2s linear;
    color: #5b544d;
    font-family: Arimo, Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    text-decoration: none!important;
    cursor: pointer;
    border-bottom: 2px solid transparent
}

.c-nav__menu-item:focus, .c-nav__menu-item:hover {
    color: #2b488a!important;
    border-color: #2b488a!important;
    text-decoration: none!important
}

.c-nav__menu-item--cta {
    background: #182440;
    color: #fff
}

.c-nav__menu-item--cta:focus, .c-nav__menu-item--cta:hover {
    color: #fff!important;
    border-color: #fff!important;
    text-decoration: none!important
}

.c-nav__menu-item--hamburger {
    display: none;
    flex-direction: column;
    justify-content: center
}

.c-nav__menu-item--hamburger span {
    width: 30px;
    height: 3px;
    background: #1e365c;
}

.c-nav__menu-item--hamburger span:not(:first-child) {
    margin-top: 5px
}

.c-nav__menu-item--drop:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #776e64;
    margin-bottom: .2em;
    margin-left: .25em
}

.c-nav__menu-item--drop:hover>.c-nav__dropdown {
    -webkit-transform: scaleY(1);
    transform: scaleY(1)
}

.c-nav__dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border-top: 2px solid #932aab;
    border-radius: 2px;
    width: 100%;
    z-index: 99;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: top center;
    transform-origin: top center;
    transition: all .2s ease;
    box-shadow: 0 5px 6px rgba(0, 0, 0, .2)
}

.c-nav__dropdown-item {
    padding: .5rem 1rem;
    color: #4a4a4a;
    transition: all .2s linear;
    font-size: 1rem;
    display: block;
    text-decoration: none!important;
    cursor: pointer
}

.c-nav__dropdown-item:hover {
    color: #1f3463!important;
    background: rgba(43, 72, 138, .2)!important;
    text-decoration: none!important
}

.c-nav__dropdown-item:focus {
    color: #fff!important;
    outline: 0!important
}

.c-nav__dropdown-item:first-child {
    margin-top: .5rem
}

.c-nav__dropdown-item:last-child {
    margin-bottom: .5rem
}

.breadcrumb {
    display: flex;
    position: relative
}

.breadcrumb__item {
    position: relative;
    font-size: 1.2rem;
    padding: .5rem .75rem;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 2px;
    margin: 0 1rem
}

.breadcrumb__item:first-child {
    margin-left: 0
}

.breadcrumb__item:not(:last-child):after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    right: -1.25rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid rgba(255, 255, 255, .25)
}

.c-offcanvas {
    width: 100vw;
    height: 100vh;
    background: #1e365c;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none
}

.c-offcanvas:before {
    content: "";
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #ff7412 0, #f82790 29%, #449cc9 70%, #7ecc30 97%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99
}

.c-offcanvas input {
    border-radius: 0!important
}

.c-offcanvas__search {
    margin-bottom: 2rem
}

.c-offcanvas__content {
    color: #fff;
    opacity: 0;
    transition: all .2s linear
}

.c-offcanvas__header {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 70% 1fr;
    grid-template-columns: 70% 1fr;
    padding: 2rem 5vw;
    background: #fff
}

.c-offcanvas__menu {
    padding: 5vw
}

.c-offcanvas__menu-item {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all .2s linear;
    font-family: Arimo, Arial, Helvetica, sans-serif;
    letter-spacing: 1px
}

.c-offcanvas__menu-item:focus, .c-offcanvas__menu-item:hover {
    color: #a0b4e1;
    text-decoration: none
}

.c-offcanvas__menu-dropdown {
    display: none;
    padding-top: 2rem
}

.c-offcanvas__menu-dropdown-item {
    padding-left: 1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all .2s linear
}

.c-offcanvas__menu-dropdown-item:hover {
    color: #a0b4e1
}

.c-offcanvas__dropdown-label {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.c-offcanvas__dropdown-label.s-active {
    color: #a0b4e1
}

.c-offcanvas__dropdown-label:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, .75);
    position: absolute;
    right: .5rem
}

.c-offcanvas__close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 1.5rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .2s linear;
    -ms-grid-column: 2;
    color: #4a4a4a
}

.c-offcanvas__close:hover {
    color: #2b488a
}

.c-offcanvas__logo {
    height: 5rem;
    fill: #fff;
    -ms-grid-column: 1
}

@media screen and (max-width:1520px) {
    .c-nav__dropdown-item, .c-nav__menu-item {
        font-size: .9rem
    }
}

@media screen and (max-width:1435px) {
    .c-nav__menu {
        -ms-grid-row-align: center;
        align-self: center
    }
    .c-nav__menu-item:not(.c-nav__menu-item--hamburger) {
        display: none!important
    }
    .c-nav__menu-item--hamburger {
        display: flex;
        border: none!important
    }
}

@media screen and (max-width:760px) {
    .c-header__brand-bar {
        display: none
    }
    .c-nav .c-nav__title {
        display: none
    }
    .c-nav__mobile-logo {
        display: block;
        padding: 1rem 2rem;
        display: flex;
        align-items: center
    }
    .c-nav__mobile-logo svg {
        width: 100%
    }
}

@media screen and (max-width:570px) {
    .c-nav__mobile-logo {
        padding: .5rem 1rem
    }
}

@media screen and (max-width:570px) {
    .c-nav__mobile-logo {
        padding: .5rem 1rem
    }
}

h1, h2, h3 {
    font-family: inherit
}

body {
    font-family: Arimo, Arial, Helvetica, sans-serif
}

a:not(.btn):not(.c-nav__menu-item):focus, a:not(.btn):not(.c-nav__menu-item):hover {
    color: #0039e6!important;
    text-decoration: underline!important
}

.banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    position: relative;
    padding: 5rem 15vw
}

.banner__title {
    font-size: 2rem;
    color: #fff;
    position: relative;
    z-index: 1;
    width: 70%
}

.banner__intro {
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .8);
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    width: 70%
}

.banner__contact {
    display: flex;
    align-items: center;
    margin-left: auto;
    align-self: flex-start;
    position: absolute;
    bottom: 0;
    right: 5rem;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
    z-index: 20
}

.banner__contact-details {
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    text-align: right;
    background: #fff;
    padding: .75rem 2rem 1rem;
    color: #4a4a4a;
    border-bottom: 1px solid #932aab
}

.banner__contact-type {
    font-family: Arimo, Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: .5rem
}

.banner__contact-name {
    font-family: Arimo, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: .5rem
}

.banner__contact-email {
    font-family: Arimo, Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
    color: #375db1;
    text-decoration: none;
    transition: all .2s ease-in-out
}

.banner__contact-email:focus, .banner__contact-email:hover {
    color: #2b488a;
    border-color: #2b488a
}

.banner__contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 200%
}

.banner--purple {
    background: #702082
}

.banner--blue {
    background: #1f3463
}

.banner:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(to right, rgba(125, 185, 232, .5) 0, #000 100%);
    opacity: .5;
    top: 0;
    left: 0
}

@media screen and (max-width:1080px) {
    .banner__intro {
        width: 100%
    }
    .banner__title {
        width: 100%
    }
}

.c-form {
    background: rgba(31, 52, 99, .2)
}

.c-form__section {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 3rem;
    grid-row-gap: 4rem;
    padding: 4rem;
    border-bottom: 1px solid #1f3463
}

.c-form__section-header {
    -ms-grid-column: 1;
    grid-column-start: 1;
    -ms-grid-column-span: 2;
    grid-column-end: 3;
    font-family: 'Lyon Display Web', Arial, Helvetica, sans-serif;
    color: #702082;
    font-size: 2rem
}

.c-form__fieldwrap {
    display: flex;
    flex-direction: column
}

.c-form__fieldwrap label {
    color: #702082;
    margin-bottom: 1rem
}

.c-form__fieldwrap input {
    padding: .5rem 1rem;
    line-height: 2;
    border: none
}

.c-form__submit {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #702082;
    color: #fff;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all .2s linear
}

.c-form__submit:hover {
    background: #932aab
}

@media screen and (max-width:730px) {
    .c-form__section {
        padding: 2rem;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr
    }
    .c-form__section-header {
        -ms-grid-column: 1;
        grid-column-start: 1;
        -ms-grid-column-span: 1;
        grid-column-end: 2
    }
}

.pi-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    background: rgba(31, 52, 99, .75);
    display: flex;
    justify-content: center;
    align-items: center
}

.pi-spinner__icon {
    position: relative;
    width: 45px;
    height: 45px
}

.pi-spinner__segment {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    position: absolute;
    -webkit-animation: spinner-anim 1.4s infinite ease-in-out both;
    animation: spinner-anim 1.4s infinite ease-in-out both
}

.pi-spinner__segment--tl {
    background: #ef8112;
    top: 0;
    left: 0
}

.pi-spinner__segment--tr {
    background: #ce006d;
    top: 0;
    right: 0;
    -webkit-animation-delay: .1s;
    animation-delay: .1s
}

.pi-spinner__segment--bl {
    background: #96c61a;
    bottom: 0;
    left: 0;
    -webkit-animation-delay: .2s;
    animation-delay: .2s
}

.pi-spinner__segment--br {
    background: #3c93e0;
    bottom: 0;
    right: 0;
    -webkit-animation-delay: .3s;
    animation-delay: .3s
}

@-webkit-keyframes spinner-anim {
    0%, 100%, 80% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }
}

@keyframes spinner-anim {
    0%, 100%, 80% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1
    }
}

/* =========================================================
   MyNHC Sign In / Redeem Invitation Shared CSS
   Scoped account-page styling only
   This avoids affecting the Profile page
   ========================================================= */

/*
  Important:
  Do not style #mainContent globally in shared CSS.
  The Profile page also uses #mainContent.
*/

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================================
   Account Page Shell
   Applies only where account tabs or redeem invitation form exist
   ========================================================= */

#content:has(.nav.nav-tabs.nav-account),
#content:has(#submit-redeem-invitation) {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/*
  Sign in page has .nav-account before #mainContent.
  This keeps account page width behaviour away from Profile.
*/
#content > .nav.nav-tabs.nav-account ~ #mainContent.page-content,
#content > .nav.nav-tabs.nav-account ~ #mainContent {
  width: 100%;
}

/*
  Redeem invitation page may hide .nav-account using inline CSS,
  so scope this one by the redeem invitation submit button.
*/
#mainContent:has(#submit-redeem-invitation) {
  width: 100%;
}

/* =========================================================
   Sign In / Redeem Invitation Tabs
   Scoped to actual account tab markup only
   ========================================================= */

#content .nav.nav-tabs.nav-account {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 14px;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #f7f9fd;
  text-align: center;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08);
}

#content .nav.nav-tabs.nav-account > li {
  float: none;
  display: flex;
  margin: 0;
}

#content .nav.nav-tabs.nav-account > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 190px;
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #d8deec;
  border-radius: 9px;
  background: #ffffff;
  color: #22386f;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

#content .nav.nav-tabs.nav-account > li > a .fa {
  color: inherit;
}

#content .nav.nav-tabs.nav-account > li > a:hover,
#content .nav.nav-tabs.nav-account > li > a:focus {
  background: #edf1fb;
  color: #000080;
  border-color: #c8d1e6;
  text-decoration: none;
  transform: translateY(-1px);
}

#content .nav.nav-tabs.nav-account > li.active > a,
#content .nav.nav-tabs.nav-account > li.active > a:hover,
#content .nav.nav-tabs.nav-account > li.active > a:focus {
  border-color: #000080;
  background: #000080;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 128, 0.18);
}

/* =========================================================
   Sign In Page Row Layout
   Scoped by nav-account sibling so Profile is not affected
   ========================================================= */

#content > .nav.nav-tabs.nav-account ~ #mainContent > .row {
  display: flex;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

#content > .nav.nav-tabs.nav-account ~ #mainContent > .row > .col-md-6 {
  width: 100%;
  max-width: 640px;
  float: none;
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   Sign In Page Copy / Access Request Message
   Scoped to account tabs only
   ========================================================= */

#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy {
  margin: 0 auto 24px;
  max-width: 640px;
}

#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy .xrm-attribute-value {
  position: relative;
  padding: 22px 24px;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08);
}

#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy .xrm-attribute-value::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
}

#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy h5 {
  margin: 6px 0 0;
  color: #22386f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy a {
  color: #000080 !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 0, 128, 0.2);
  padding-bottom: 2px;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy a:hover,
#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy a:focus {
  color: #22386f !important;
  border-bottom-color: #22386f;
  text-decoration: none;
}

#content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy .xrm-attribute-value:empty {
  display: none;
}

/* =========================================================
   Sign In Form Card
   Scoped by form action only
   ========================================================= */

#mainContent form[action*="/SignIn"] {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 30, 46, 0.1);
}

#mainContent form[action*="/SignIn"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

#mainContent form[action*="/SignIn"] .form-horizontal {
  padding: 30px 30px 28px;
}

#mainContent form[action*="/SignIn"] .login-heading-section {
  margin: 8px 0 24px;
  color: #000080;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#mainContent form[action*="/SignIn"] .login-heading-section .xrm-attribute-value,
#mainContent form[action*="/SignIn"] .login-heading-section .xrm-attribute-value-encoded {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* =========================================================
   Sign In Validation Summary
   Scoped to login validation only
   ========================================================= */

#loginValidationSummary {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #f0c7c7;
  border-radius: 12px;
  background: #fff5f5;
  color: #8a1f1f;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.06);
}

#loginValidationSummary ul {
  margin: 0;
  padding-left: 18px;
}

#loginValidationSummary li {
  margin: 0;
}

#loginValidationSummary.validation-summary-valid {
  display: none;
}

/* =========================================================
   Sign In Form Layout
   Scoped by form action only
   ========================================================= */

#mainContent form[action*="/SignIn"] .form-group {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 20px;
}

#mainContent form[action*="/SignIn"] .control-label {
  padding-top: 0;
  margin-bottom: 7px;
  color: #22386f;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#mainContent form[action*="/SignIn"] .control-label.required::after {
  content: " *";
  color: #000080;
  font-weight: 700;
}

#mainContent form[action*="/SignIn"] .col-sm-4,
#mainContent form[action*="/SignIn"] .col-sm-8,
#mainContent form[action*="/SignIn"] .col-sm-offset-4 {
  width: 100%;
  float: none;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

#mainContent form[action*="/SignIn"] input.form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d8deec;
  border-radius: 8px;
  background: #ffffff;
  color: #0c2340;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

#mainContent form[action*="/SignIn"] input.form-control:hover {
  border-color: #c8d1e6;
}

#mainContent form[action*="/SignIn"] input.form-control:focus {
  border-color: #000080;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.12);
}

/* =========================================================
   Sign In Remember Me Checkbox
   Scoped by form action only
   ========================================================= */

#mainContent form[action*="/SignIn"] .checkbox {
  margin: 2px 0 0;
}

#mainContent form[action*="/SignIn"] .checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  padding-left: 0;
  color: #34405a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#mainContent form[action*="/SignIn"] .checkbox input[type="checkbox"] {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #000080;
  cursor: pointer;
}

/* =========================================================
   Sign In Buttons
   Scoped by form action only
   ========================================================= */

#mainContent form[action*="/SignIn"] .form-group:last-child {
  margin-bottom: 0;
}

#mainContent form[action*="/SignIn"] .form-group:last-child .col-sm-8 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

#submit-signin-local,
#mainContent form[action*="/SignIn"] .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 7px;
  background: #000080;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

#submit-signin-local:hover,
#submit-signin-local:focus,
#mainContent form[action*="/SignIn"] .btn.btn-primary:hover,
#mainContent form[action*="/SignIn"] .btn.btn-primary:focus {
  background: #22386f;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 30, 46, 0.16);
}

#mainContent form[action*="/SignIn"] .btn.btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #d8deec;
  border-radius: 7px;
  background: #ffffff;
  color: #000080 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

#mainContent form[action*="/SignIn"] .btn.btn-default:hover,
#mainContent form[action*="/SignIn"] .btn.btn-default:focus {
  background: #f7f9fd;
  color: #22386f !important;
  border-color: #c8d1e6;
  text-decoration: none;
  transform: translateY(-1px);
}

/* =========================================================
   Redeem Invitation / Register Form Card
   Scoped by submit-redeem-invitation only
   ========================================================= */

#mainContent:has(#submit-redeem-invitation) > form {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 30, 46, 0.1);
}

#mainContent:has(#submit-redeem-invitation) > form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

#mainContent:has(#submit-redeem-invitation) > form .form-horizontal {
  padding: 30px 30px 28px;
}

#mainContent:has(#submit-redeem-invitation) .login-heading-section {
  margin: 8px 0 24px;
  color: #000080;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#mainContent:has(#submit-redeem-invitation) .login-heading-section .xrm-attribute-value,
#mainContent:has(#submit-redeem-invitation) .login-heading-section .xrm-attribute-value-encoded {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/*
  The redeem page sometimes has page-copy that only contains a style block.
  Hide that only on the redeem invitation page.
*/
#mainContent:has(#submit-redeem-invitation) .page-copy:has(style[type="text/css"]) {
  display: none;
}

/* =========================================================
   Redeem Invitation Validation Summary
   Scoped to redeem validation only
   ========================================================= */

#redeemInvitation-validation-summary {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #f0c7c7;
  border-radius: 12px;
  background: #fff5f5;
  color: #8a1f1f;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.06);
}

#redeemInvitation-validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

#redeemInvitation-validation-summary li {
  margin: 0;
}

#redeemInvitation-validation-summary.validation-summary-valid {
  display: none;
}

/* =========================================================
   Redeem Invitation Form Layout
   Scoped by submit-redeem-invitation only
   ========================================================= */

#mainContent:has(#submit-redeem-invitation) > form .form-group {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 20px;
}

#mainContent:has(#submit-redeem-invitation) > form .col-sm-2,
#mainContent:has(#submit-redeem-invitation) > form .col-sm-10,
#mainContent:has(#submit-redeem-invitation) > form .col-sm-offset-2 {
  width: 100%;
  float: none;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

#mainContent:has(#submit-redeem-invitation) > form .control-label {
  display: block;
  padding-top: 0;
  margin-bottom: 7px;
  color: #22386f;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#mainContent:has(#submit-redeem-invitation) > form .control-label.required::after {
  content: " *";
  color: #000080;
  font-weight: 700;
}

#mainContent:has(#submit-redeem-invitation) #InvitationCode,
#mainContent:has(#submit-redeem-invitation) > form input.form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d8deec;
  border-radius: 8px;
  background: #ffffff;
  color: #0c2340;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

#mainContent:has(#submit-redeem-invitation) #InvitationCode:hover,
#mainContent:has(#submit-redeem-invitation) > form input.form-control:hover {
  border-color: #c8d1e6;
}

#mainContent:has(#submit-redeem-invitation) #InvitationCode:focus,
#mainContent:has(#submit-redeem-invitation) > form input.form-control:focus {
  border-color: #000080;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.12);
}

/* Checkbox styling only if the inline page CSS stops hiding it later */
#mainContent:has(#submit-redeem-invitation) > form .checkbox {
  margin: 2px 0 0;
}

#mainContent:has(#submit-redeem-invitation) > form .checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  padding-left: 0;
  color: #34405a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#mainContent:has(#submit-redeem-invitation) > form .checkbox input[type="checkbox"] {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #000080;
  cursor: pointer;
}

/* =========================================================
   Redeem Invitation Register Button
   Scoped by submit-redeem-invitation only
   ========================================================= */

#mainContent:has(#submit-redeem-invitation) > form .form-group:last-child {
  margin-bottom: 0;
}

#mainContent:has(#submit-redeem-invitation) > form .form-group:last-child .col-sm-10 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

#submit-redeem-invitation,
#mainContent:has(#submit-redeem-invitation) > form .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 7px;
  background: #000080;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

#submit-redeem-invitation:hover,
#submit-redeem-invitation:focus,
#mainContent:has(#submit-redeem-invitation) > form .btn.btn-primary:hover,
#mainContent:has(#submit-redeem-invitation) > form .btn.btn-primary:focus {
  background: #22386f;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 30, 46, 0.16);
}

/* =========================================================
   Account Page Link and Focus Styling
   Scoped to account pages only
   ========================================================= */

#content:has(.nav.nav-tabs.nav-account) a:focus,
#content:has(.nav.nav-tabs.nav-account) button:focus,
#content:has(.nav.nav-tabs.nav-account) input:focus,
#content:has(#submit-redeem-invitation) a:focus,
#content:has(#submit-redeem-invitation) button:focus,
#content:has(#submit-redeem-invitation) input:focus {
  outline: none;
}

#content:has(.nav.nav-tabs.nav-account) a:focus-visible,
#content:has(.nav.nav-tabs.nav-account) button:focus-visible,
#content:has(.nav.nav-tabs.nav-account) input:focus-visible,
#content:has(#submit-redeem-invitation) a:focus-visible,
#content:has(#submit-redeem-invitation) button:focus-visible,
#content:has(#submit-redeem-invitation) input:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.18);
}

/* =========================================================
   Responsive Behaviour - Account Pages Only
   ========================================================= */

@media (max-width: 700px) {
  #content:has(.nav.nav-tabs.nav-account),
  #content:has(#submit-redeem-invitation) {
    padding: 32px 14px 56px;
  }

  #content .nav.nav-tabs.nav-account {
    max-width: 640px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
  }

  #content .nav.nav-tabs.nav-account > li {
    width: 100%;
    flex: 1 1 100%;
  }

  #content .nav.nav-tabs.nav-account > li > a {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  #content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy .xrm-attribute-value {
    padding: 20px;
    border-radius: 12px;
  }

  #content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy .xrm-attribute-value::before {
    left: 20px;
    right: 20px;
  }

  #content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy h5 {
    font-size: 15px;
  }

  #mainContent form[action*="/SignIn"],
  #mainContent:has(#submit-redeem-invitation) > form {
    border-radius: 12px;
  }

  #mainContent form[action*="/SignIn"]::before,
  #mainContent:has(#submit-redeem-invitation) > form::before {
    left: 20px;
    right: 20px;
  }

  #mainContent form[action*="/SignIn"] .form-horizontal,
  #mainContent:has(#submit-redeem-invitation) > form .form-horizontal {
    padding: 28px 22px 24px;
  }

  #mainContent form[action*="/SignIn"] .login-heading-section,
  #mainContent:has(#submit-redeem-invitation) .login-heading-section {
    font-size: clamp(22px, 7vw, 28px);
    letter-spacing: 0.03em;
  }

  #mainContent form[action*="/SignIn"] input.form-control,
  #mainContent:has(#submit-redeem-invitation) #InvitationCode,
  #mainContent:has(#submit-redeem-invitation) > form input.form-control {
    font-size: 16px;
  }

  #mainContent form[action*="/SignIn"] .form-group:last-child .col-sm-8,
  #mainContent:has(#submit-redeem-invitation) > form .form-group:last-child .col-sm-10 {
    align-items: stretch;
    flex-direction: column;
  }

  #submit-signin-local,
  #mainContent form[action*="/SignIn"] .btn.btn-primary,
  #mainContent form[action*="/SignIn"] .btn.btn-default,
  #submit-redeem-invitation,
  #mainContent:has(#submit-redeem-invitation) > form .btn.btn-primary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 500px) {
  #content:has(.nav.nav-tabs.nav-account),
  #content:has(#submit-redeem-invitation) {
    padding: 28px 12px 48px;
  }

  #content .nav.nav-tabs.nav-account {
    gap: 8px;
    padding: 10px;
  }

  #content .nav.nav-tabs.nav-account > li > a {
    padding: 10px 14px;
    font-size: 14px;
  }

  #content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy .xrm-attribute-value {
    padding: 18px;
  }

  #content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy .xrm-attribute-value::before {
    left: 18px;
    right: 18px;
  }

  #mainContent form[action*="/SignIn"]::before,
  #mainContent:has(#submit-redeem-invitation) > form::before {
    left: 18px;
    right: 18px;
  }

  #mainContent form[action*="/SignIn"] .form-horizontal,
  #mainContent:has(#submit-redeem-invitation) > form .form-horizontal {
    padding: 26px 18px 22px;
  }

  #mainContent form[action*="/SignIn"] .login-heading-section,
  #mainContent:has(#submit-redeem-invitation) .login-heading-section {
    font-size: 23px;
  }

  #mainContent form[action*="/SignIn"] .control-label,
  #mainContent:has(#submit-redeem-invitation) > form .control-label {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  #mainContent form[action*="/SignIn"] .login-heading-section,
  #mainContent:has(#submit-redeem-invitation) .login-heading-section {
    font-size: 21px;
  }

  #content > .nav.nav-tabs.nav-account ~ #mainContent .page-copy h5 {
    font-size: 14px;
  }
}

/* =========================================================
   MyNHC Forgot Password Page Branding
   Shared CSS - safely scoped so it does not affect Profile
   ========================================================= */

/*
  Forgot password page shell.
  Scoped by #submit-forgot-password so this only applies to the
  forgot password page and not the profile page.
*/
#content:has(#submit-forgot-password) {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

#mainContent:has(#submit-forgot-password) {
  width: 100%;
}

/* Centre forgot password form */
#mainContent form[action*="/Account/Login/ForgotPassword"] {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 30, 46, 0.1);
}

/* Navy accent bar */
#mainContent form[action*="/Account/Login/ForgotPassword"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

/* Inner form spacing */
#mainContent form[action*="/Account/Login/ForgotPassword"] .form-horizontal {
  padding: 30px 30px 28px;
}

/* Heading */
#mainContent form[action*="/Account/Login/ForgotPassword"] .forgot-password-heading {
  margin: 8px 0 24px;
  color: #000080;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#mainContent form[action*="/Account/Login/ForgotPassword"] .forgot-password-heading .xrm-attribute-value,
#mainContent form[action*="/Account/Login/ForgotPassword"] .forgot-password-heading .xrm-attribute-value-encoded {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* =========================================================
   Forgot Password Validation Summary
   Scoped to forgot password page only
   ========================================================= */

#mainContent:has(#submit-forgot-password) #loginValidationSummary {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #f0c7c7;
  border-radius: 12px;
  background: #fff5f5;
  color: #8a1f1f;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.06);
}

#mainContent:has(#submit-forgot-password) #loginValidationSummary ul {
  margin: 0;
  padding-left: 18px;
}

#mainContent:has(#submit-forgot-password) #loginValidationSummary li {
  margin: 0;
}

/* Hide empty validation summary */
#mainContent:has(#submit-forgot-password) #loginValidationSummary.validation-summary-valid {
  display: none;
}

/* =========================================================
   Forgot Password Form Layout
   Scoped by form action only
   ========================================================= */

#mainContent form[action*="/Account/Login/ForgotPassword"] .form-group {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 20px;
}

/* Override generated Bootstrap horizontal layout */
#mainContent form[action*="/Account/Login/ForgotPassword"] .col-sm-2,
#mainContent form[action*="/Account/Login/ForgotPassword"] .col-sm-10,
#mainContent form[action*="/Account/Login/ForgotPassword"] .col-sm-offset-2 {
  width: 100%;
  float: none;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Labels */
#mainContent form[action*="/Account/Login/ForgotPassword"] .control-label {
  display: block;
  padding-top: 0;
  margin-bottom: 7px;
  color: #22386f;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#mainContent form[action*="/Account/Login/ForgotPassword"] .control-label.required::after {
  content: " *";
  color: #000080;
  font-weight: 700;
}

/* Email input */
#mainContent form[action*="/Account/Login/ForgotPassword"] input.form-control,
#mainContent:has(#submit-forgot-password) #Email {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d8deec;
  border-radius: 8px;
  background: #ffffff;
  color: #0c2340;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

#mainContent form[action*="/Account/Login/ForgotPassword"] input.form-control:hover,
#mainContent:has(#submit-forgot-password) #Email:hover {
  border-color: #c8d1e6;
}

#mainContent form[action*="/Account/Login/ForgotPassword"] input.form-control:focus,
#mainContent:has(#submit-forgot-password) #Email:focus {
  border-color: #000080;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.12);
}

/* Help text */
#mainContent form[action*="/Account/Login/ForgotPassword"] .help-block {
  margin: 8px 0 0;
  color: #46516b;
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   Send Button
   Scoped by #submit-forgot-password
   ========================================================= */

#mainContent form[action*="/Account/Login/ForgotPassword"] .form-group:last-child {
  margin-bottom: 0;
}

#mainContent form[action*="/Account/Login/ForgotPassword"] .form-group:last-child .col-sm-10 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

#submit-forgot-password,
#mainContent form[action*="/Account/Login/ForgotPassword"] .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 7px;
  background: #000080;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

#submit-forgot-password:hover,
#submit-forgot-password:focus,
#mainContent form[action*="/Account/Login/ForgotPassword"] .btn.btn-primary:hover,
#mainContent form[action*="/Account/Login/ForgotPassword"] .btn.btn-primary:focus {
  background: #22386f;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 30, 46, 0.16);
}

/* =========================================================
   Forgot Password Focus Styling
   Scoped to forgot password page only
   ========================================================= */

#content:has(#submit-forgot-password) a:focus,
#content:has(#submit-forgot-password) button:focus,
#content:has(#submit-forgot-password) input:focus {
  outline: none;
}

#content:has(#submit-forgot-password) a:focus-visible,
#content:has(#submit-forgot-password) button:focus-visible,
#content:has(#submit-forgot-password) input:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.18);
}

/* =========================================================
   Responsive Behaviour - Forgot Password Only
   ========================================================= */

@media (max-width: 700px) {
  #content:has(#submit-forgot-password) {
    padding: 32px 14px 56px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] {
    border-radius: 12px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"]::before {
    left: 20px;
    right: 20px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] .form-horizontal {
    padding: 28px 22px 24px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] .forgot-password-heading {
    font-size: clamp(22px, 7vw, 28px);
    letter-spacing: 0.03em;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] input.form-control,
  #mainContent:has(#submit-forgot-password) #Email {
    font-size: 16px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] .form-group:last-child .col-sm-10 {
    align-items: stretch;
    flex-direction: column;
  }

  #submit-forgot-password,
  #mainContent form[action*="/Account/Login/ForgotPassword"] .btn.btn-primary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 500px) {
  #content:has(#submit-forgot-password) {
    padding: 28px 12px 48px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"]::before {
    left: 18px;
    right: 18px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] .form-horizontal {
    padding: 26px 18px 22px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] .forgot-password-heading {
    font-size: 23px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] .control-label {
    font-size: 12px;
  }

  #mainContent form[action*="/Account/Login/ForgotPassword"] .help-block {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  #mainContent form[action*="/Account/Login/ForgotPassword"] .forgot-password-heading {
    font-size: 21px;
  }
}

/* =========================================================
   MyNHC Change Password Page Styling
   Shared CSS - matches Profile page layout
   Scoped only to /Account/Manage/ChangePassword
   ========================================================= */

/*
  This block is intentionally scoped using:
  form[action*="/Account/Manage/ChangePassword"]

  It should not affect:
  - Profile page
  - Sign in page
  - Redeem invitation page
  - Forgot password page
*/

/* =========================================================
   Page Heading / Breadcrumb
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading {
  background: #ffffff;
  margin: 0;
  padding: 0;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 28px;
}

/* Breadcrumb */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #d8deec;
  border-radius: 12px;
  background: #f7f9fd !important;
  color: #46516b;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(16, 30, 46, 0.06);
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb > li {
  display: inline-flex;
  align-items: center;
  color: #46516b;
  font-weight: 600;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb > li + li::before {
  content: "/";
  padding: 0 8px 0 2px;
  color: #8a94aa;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb > li > a {
  color: #000080 !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 0, 128, 0.18);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb > li > a:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb > li > a:focus {
  color: #22386f !important;
  border-bottom-color: #22386f;
  text-decoration: none !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb > .active {
  color: #22386f !important;
  font-weight: 700;
}

/* Header card */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header {
  position: relative;
  margin: 0 0 28px;
  padding: 24px 26px 18px;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08);
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h1,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h2 {
  margin: 8px 0 0;
  color: #000080;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header .xrm-attribute-value,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header .xrm-attribute-value-encoded,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header .xrm-editable-text {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* =========================================================
   Main Change Password Layout
   Similar to Profile page left/right layout
   ========================================================= */

/*
  Target only the container row that actually contains the Change Password form.
  This avoids touching unrelated .container > .row structures.
*/
body:has(form[action*="/Account/Manage/ChangePassword"])
.container > .row:has(form[action*="/Account/Manage/ChangePassword"]) {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 24px 0 80px !important;
}

/* Override Bootstrap columns only for this specific row */
body:has(form[action*="/Account/Manage/ChangePassword"])
.container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-4,
body:has(form[action*="/Account/Manage/ChangePassword"])
.container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-8 {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0 !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent {
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 0 !important;
}

/* =========================================================
   Left Column - Name Card
   The Change Password page uses plain .well, not .profile-info.well
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"])
.container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-4 > .well {
  position: relative;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px;
  margin-bottom: 22px;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08);
  color: #000080;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

body:has(form[action*="/Account/Manage/ChangePassword"])
.container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-4 > .well::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
}

body:has(form[action*="/Account/Manage/ChangePassword"])
.container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-4 > .well img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 10px auto 6px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f7fb;
  border: 4px solid #edf1fb;
  box-shadow: 0 8px 22px rgba(16, 30, 46, 0.14);
}

/* =========================================================
   Left Column - Profile Navigation
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile {
  overflow: hidden;
  width: 100%;
  margin-bottom: 22px;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08);
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group .weblink.list-group-item,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid #e3e8f4;
  background: #ffffff;
  color: #22386f;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, padding-left 160ms ease;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group .weblink.list-group-item:last-child,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item:last-child {
  border-bottom: 0;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group .weblink.list-group-item::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 0;
  background: #000080;
  border-radius: 0 4px 4px 0;
  transform: translateY(-50%);
  transition: height 160ms ease;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group .weblink.list-group-item:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group .weblink.list-group-item:focus,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item:focus {
  background: #f7f9fd;
  color: #000080;
  padding-left: 22px;
  text-decoration: none;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group .weblink.list-group-item:hover::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group .weblink.list-group-item:focus::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item:hover::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item:focus::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item.active::before {
  height: 70%;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile .list-group-item.active {
  background: #000080 !important;
  color: #ffffff !important;
  padding-left: 22px;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .weblink-name {
  color: inherit;
}

/* =========================================================
   Left Column - Security Panel
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) .panel.panel-default.nav-profile {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08);
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .panel.panel-default.nav-profile > .panel-heading {
  position: relative;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid #e3e8f4;
  background: #f7f9fd;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .panel.panel-default.nav-profile > .panel-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .panel.panel-default.nav-profile .panel-title {
  margin: 8px 0 0;
  color: #000080;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .panel.panel-default.nav-profile .panel-title .fa {
  margin-right: 6px;
  color: #22386f;
}

/* =========================================================
   Right Column - Empty Page Copy
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent .page-copy.no-value,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent .page-copy .xrm-attribute-value-empty,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent .page-copy .xrm-attribute-value:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   Right Column - Change Password Form
   Make the form look like the Profile page form panel
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] {
  position: relative;
  overflow: hidden;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 1px solid #d8deec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08);
}

/* Navy top accent on form card */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 6px;
  background: #000080;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

/* The generated wrapper you called out */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal {
  padding: 30px 30px 28px !important;
}

/* Fieldset inside the form-horizontal */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-width: 0 !important;
}

/* Validation summary */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] #login-validation-summary {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #f0c7c7;
  border-radius: 12px;
  background: #fff5f5;
  color: #8a1f1f;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.06);
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] #login-validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] #login-validation-summary.validation-summary-valid {
  display: none;
}

/* Form groups inside fieldset */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 20px !important;
}

/* Convert Bootstrap horizontal columns to stacked Profile-style layout */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > .col-sm-4,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > .col-sm-8,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > .col-sm-offset-4 {
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Labels */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > label.control-label {
  display: block !important;
  padding-top: 0 !important;
  margin-bottom: 7px !important;
  color: #22386f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > label.control-label.required::after {
  content: " *";
  color: #000080;
  font-weight: 700;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] label .xrm-attribute-value,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] label .xrm-attribute-value-encoded {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* Inputs */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control {
  width: 100% !important;
  min-height: 46px !important;
  padding: 11px 13px !important;
  border: 1px solid #d8deec !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0c2340 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control:hover {
  border-color: #c8d1e6 !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control:focus {
  border-color: #000080 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.12) !important;
}

/* Readonly email field */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input[readonly],
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input[disabled] {
  background: #f4f7fb !important;
  color: #46516b !important;
  border-color: #dce4f2 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* Button row */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group:last-child {
  margin-bottom: 0 !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group:last-child .col-sm-8 {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* Submit button */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #000080 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button:focus,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary:focus {
  background: #22386f !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(16, 30, 46, 0.16) !important;
}

/* =========================================================
   Responsive - Change Password Only
   ========================================================= */

@media (max-width: 900px) {
  body:has(form[action*="/Account/Manage/ChangePassword"])
  .container > .row:has(form[action*="/Account/Manage/ChangePassword"]) {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 0 56px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"])
  .container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-4,
  body:has(form[action*="/Account/Manage/ChangePassword"])
  .container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-8 {
    width: 100% !important;
  }
}

@media (max-width: 700px) {
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .container {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 22px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb {
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header {
    margin-bottom: 24px;
    padding: 22px 20px 16px;
    border-radius: 12px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header::before,
  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"]::before {
    left: 20px;
    right: 20px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h1,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h2 {
    font-size: clamp(26px, 8vw, 34px);
    letter-spacing: 0.03em;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .col-md-4 > .well,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .weblinks.list-group,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .list-group.nav-profile,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .panel.panel-default.nav-profile,
  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] {
    border-radius: 12px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"])
  .container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-4 > .well {
    padding: 24px 20px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"])
  .container > .row:has(form[action*="/Account/Manage/ChangePassword"]) > .col-md-4 > .well img {
    width: 92px;
    height: 92px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal {
    padding: 28px 22px 24px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control {
    font-size: 16px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group:last-child .col-sm-8 {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button,
  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary {
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 500px) {
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .container,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb {
    align-items: flex-start;
    padding: 10px 12px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .breadcrumb > li + li::before {
    padding: 0 6px 0 0;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header::before,
  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"]::before {
    left: 18px;
    right: 18px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h1,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h2 {
    font-size: 26px;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal {
    padding: 26px 18px 22px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > label.control-label {
    font-size: 12px !important;
  }
}

@media (max-width: 360px) {
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h1,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading .page-header h2 {
    font-size: 23px;
  }
}

/* =========================================================
   CHANGE PASSWORD PAGE - PROFILE STYLE LAYOUT FIX
   Add this at the VERY BOTTOM of shared CSS
   ========================================================= */

/*
  Purpose:
  - Move profile card/navigation/security panel to the left
  - Move Change Password form up and to the right
  - Make Change Password form wide like the Profile form
  - Avoid affecting Sign In / Redeem Invitation / Forgot Password pages

  This targets the generated Change Password page structure:
  .page-heading + .container > .row
  and the form action:
  /Account/Manage/ChangePassword
*/

/* =========================================================
   Main layout container
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto 1rem !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Force the row containing profile nav and change password form into two columns */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 0 80px !important;
}

/* Remove Bootstrap column behaviour on this page */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-4,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-8 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Force left column hard left */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-4 {
  grid-column: 1 !important;
  justify-self: stretch !important;
  align-self: start !important;
}

/* Force right column hard right/up */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > #mainContent,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-8#mainContent {
  grid-column: 2 !important;
  justify-self: stretch !important;
  align-self: start !important;
  width: 100% !important;
  margin-top: 0 !important;
}

/* =========================================================
   Left column profile card
   ========================================================= */

/* Style the simple generated .well used on the Change Password page */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-4 > .well {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 28px 24px !important;
  border: 1px solid #d8deec !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08) !important;
  color: #000080 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

/* Accent bar */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-4 > .well::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 24px !important;
  right: 24px !important;
  height: 6px !important;
  background: #000080 !important;
  border-radius: 0 0 8px 8px !important;
}

/* Profile image */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-4 > .well img {
  width: 112px !important;
  height: 112px !important;
  display: block !important;
  margin: 10px auto 6px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #f4f7fb !important;
  border: 4px solid #edf1fb !important;
  box-shadow: 0 8px 22px rgba(16, 30, 46, 0.14) !important;
}

/* =========================================================
   Left navigation cards
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile {
  overflow: hidden !important;
  width: 100% !important;
  margin-bottom: 22px !important;
  border: 1px solid #d8deec !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08) !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group .weblink.list-group-item,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #e3e8f4 !important;
  background: #ffffff !important;
  color: #22386f !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition:
    background 160ms ease,
    color 160ms ease,
    padding-left 160ms ease !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group .weblink.list-group-item:last-child,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item:last-child {
  border-bottom: 0 !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group .weblink.list-group-item::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  width: 4px !important;
  height: 0 !important;
  background: #000080 !important;
  border-radius: 0 4px 4px 0 !important;
  transform: translateY(-50%) !important;
  transition: height 160ms ease !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group .weblink.list-group-item:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group .weblink.list-group-item:focus,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item:focus {
  background: #f7f9fd !important;
  color: #000080 !important;
  padding-left: 22px !important;
  text-decoration: none !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group .weblink.list-group-item:hover::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .weblinks.list-group .weblink.list-group-item:focus::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item:hover::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item:focus::before,
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item.active::before {
  height: 70% !important;
}

/* Active change password item */
body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .list-group.nav-profile .list-group-item.active {
  background: #000080 !important;
  color: #ffffff !important;
  padding-left: 22px !important;
}

/* =========================================================
   Security panel
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .panel.panel-default.nav-profile {
  overflow: hidden !important;
  margin-bottom: 22px !important;
  border: 1px solid #d8deec !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08) !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .panel.panel-default.nav-profile > .panel-heading {
  position: relative !important;
  padding: 18px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #e3e8f4 !important;
  background: #f7f9fd !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .panel.panel-default.nav-profile > .panel-heading::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 20px !important;
  right: 20px !important;
  height: 6px !important;
  background: #000080 !important;
  border-radius: 0 0 8px 8px !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container .panel.panel-default.nav-profile .panel-title {
  margin: 8px 0 0 !important;
  color: #000080 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* =========================================================
   Right column - remove empty page copy
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent .page-copy,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent .page-copy.no-value,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent .page-copy .xrm-attribute-value-empty,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent .page-copy .xrm-attribute-value:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* =========================================================
   Right column - Change Password form container
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid #d8deec !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.08) !important;
}

/* Form accent bar */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"]::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 26px !important;
  right: 26px !important;
  height: 6px !important;
  background: #000080 !important;
  border-radius: 0 0 8px 8px !important;
  z-index: 2 !important;
}

/* Generated wrapper */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal {
  width: 100% !important;
  padding: 30px 30px 28px !important;
}

/* Fieldset */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* =========================================================
   Validation summary
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] #login-validation-summary {
  margin: 0 0 22px !important;
  padding: 16px 18px !important;
  border: 1px solid #f0c7c7 !important;
  border-radius: 12px !important;
  background: #fff5f5 !important;
  color: #8a1f1f !important;
  font-size: 15px !important;
  box-shadow: 0 8px 24px rgba(16, 30, 46, 0.06) !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] #login-validation-summary.validation-summary-valid {
  display: none !important;
}

/* =========================================================
   Generated form groups
   ========================================================= */

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 20px !important;
}

/* Convert Bootstrap horizontal form into profile-style stacked form */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > .col-sm-4,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > .col-sm-8,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > .col-sm-offset-4 {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Labels */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > label.control-label {
  display: block !important;
  width: 100% !important;
  padding-top: 0 !important;
  margin-bottom: 7px !important;
  color: #22386f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > label.control-label.required::after {
  content: " *" !important;
  color: #000080 !important;
  font-weight: 700 !important;
}

/* Inputs */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control {
  width: 100% !important;
  max-width: none !important;
  min-height: 46px !important;
  padding: 11px 13px !important;
  border: 1px solid #d8deec !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0c2340 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control:hover {
  border-color: #c8d1e6 !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control:focus {
  border-color: #000080 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.12) !important;
}

/* Readonly email field */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input[readonly],
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input[disabled] {
  background: #f4f7fb !important;
  color: #46516b !important;
  border-color: #dce4f2 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* Button row */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group:last-child {
  margin-bottom: 0 !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group:last-child .col-sm-8 {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* Submit button */
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #000080 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button:focus,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary:hover,
body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary:focus {
  background: #22386f !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(16, 30, 46, 0.16) !important;
}

/* =========================================================
   Responsive behaviour
   ========================================================= */

@media (max-width: 900px) {
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 0 56px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > .col-md-4,
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container > .row > #mainContent {
    width: 100% !important;
  }
}

@media (max-width: 700px) {
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal {
    padding: 28px 22px 24px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] input.form-control {
    font-size: 16px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] button,
  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] .btn.btn-primary {
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 500px) {
  body:has(form[action*="/Account/Manage/ChangePassword"]) .page-heading + .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal {
    padding: 26px 18px 22px !important;
  }

  body:has(form[action*="/Account/Manage/ChangePassword"]) #mainContent form[action*="/Account/Manage/ChangePassword"] > .form-horizontal > fieldset > .form-group > label.control-label {
    font-size: 12px !important;
  }
}
