.ifc-body {
    background-color: #F7F2EA;

    .align-items-center {
        padding-bottom: 0px;
    }

    .min-height {
        min-height: 500px;
    }
}

/* Header Styles */
header {
    display: flex !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
    background: rgb(255, 255, 255);
    border-radius: 0;
    height: 88px;

    .contact-section {
        justify-items: end;
        color: #333333;
        font-weight: 700;
        font-style: bold;

        .number {
            font-weight: 800;
            line-height: 35px;
        }
    }

    .logo-section {
        display: flex;
        flex: 1;
        margin-left: 15%;

        img {
            height: 88px;
            padding: 14px 12px;
            margin-left: 10px;
        }
    }

    .lang-section {
         display: flex;
        margin-right: 15%;
    }

    .topbar {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 20px 0px 20px 60px;
      width: fit-content;
    }

    .topbar-phone {
        display: flex;
        align-items: anchor-center;
        gap: 1rem;
        padding: 15px 0px 0px 10px;
        width: fit-content;
    }

    .phone {
      font-weight: bold;
      color: #333333;
    }

    .phone-icon {
        padding-right: 5px;
    }

    .lang-btn {
        font-weight: bold;
        color: #333333;
        border: none;
        background-color: #FFFFFF;
    }

    .lang-btn:focus {
        outline: none;
    }
    /* Dropdown container */
    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-btn {
      border: none;
      background-color: #FFFFFF;
      padding: 8px 12px;
      cursor: pointer;
      min-width: 100px;
      text-align: left;
      color: #333333;
      font-weight: 600;
    }

    .dropdown-btn:focus {
        outline: none;
    }

    .dropdown-toggle::after {
        border-style: solid;
        border-top-width: 0.125em;
        border-top-color: currentColor;
        border-right-width: 0.125em;
        border-right-color: currentColor;
        border-bottom-width: 0;
        border-left-width: 0;
        content: '';
        display: inline-block;
        height: 0.625em;
        left: 0.15em;
        position: relative;
        top: 0.15em;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        vertical-align: .35em;
        width: 0.625em;
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
        margin-right: 0.25em;
    }

    /* Dropdown menu */
    .dropdown-menu {
      display: none;
      position: absolute;
      top: 110%;
      left: 0;
      border: none;
      border-radius: 6px;
      min-width: 120px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      z-index: 100;
    }

    .dropdown-menu a {
      display: block;
      padding: 8px 12px;
      text-decoration: none;
      color: #111;
    }

    .dropdown-menu a:hover {
      background: #f0f0f0;
    }

    /* Show dropdown when active */
    .dropdown.active .dropdown-menu {
      display: block;
    }
}

/* Footer links */
.footer-en,
.footer-fr {
  display: none;
}

/* Show based on html lang */
html[lang="en"] {
    .footer-en {
        display: block;
    }
}

html[lang="fr"] {
    .footer-fr {
        display: block;
    }
}

/* error page */
.error-en,
.error-fr {
  display: none;
}

/* Show based on html lang */
html[lang="en"] {
    .error-en {
        display: block;
    }
}

html[lang="fr"] {
    .error-fr {
        display: block;
    }
}

/* Footer styles*/
footer {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #333333;
    border-radius: 0;
    max-height: 110px;
    max-width: 100%;

    p {
        color:#FFFFFF !important;
    }

    .logo-section, .lang-section {
        display: flex;
        line-height: 16px;
    }

    .logo-section {
        flex: 1;
        margin-left: 2%;

        p svg {
            margin-right: 16px;
        }

        img {
            height: 88px;
            padding: 14px 12px;
            margin-left: 10px;
        }

        .contact-email {
            /* font-weight: 600; */
            color:white;
        }
    }

    .lang-section {
        margin-right: 2%;
        padding-left: 2%;

        .footer-links {
            .devider {
                padding: 2px;
                font-size: 12px;
            }

            a{
                font-weight: 400;
            }
        }
        
    }

}

.separator {
    border: 1px solid #333333 !important;
}

/* Main content styles*/
.container{
    .footer-image {
        display: flex  !important;
        justify-content: center  !important; 
    }

    .login-heading {
        font-size: 24px;
        font-weight: 500 !important;
        line-height: 32px;
    }

    .login-content {
        max-width: 100% !important;
        margin-left: 20%;
    }

    .login-content-deletemfa {
        max-width: 100% !important;
        margin-left: 36%;
    }

    .shadow {
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1), 0 2px 8px 0 rgba(0, 0, 0, 0.1) !important;
    }

    form {
        label {
            font-weight: 600;
            font-size: 14px;
            padding-bottom: 10px;
        }

        /* input:hover, input:focus{
            border: 1px solid #263d3c !important;
            outline: 2px solid #263d3c !important;
            outline-offset: 2px;
        } */

        .form-group.username {
            margin-bottom: 2.5rem;
        }
        .form-group.password {
            margin-bottom: 0.5rem;
        }
    }

    .login-description {
        font-size: 24px;
    }

    .login-button .login-btn {
        width:100%;
    }

    .padding-6 {
        padding: 3rem 4rem;
    }
}

/* Footer stays fixed site-wide */
footer{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
}

/* Desktop/tablet default: no extra scroll from padding */
body{
    margin: 0;
    overflow-x: hidden;
}

/* Image sticks to footer on desktop */
.image-stick {
    position: fixed;
    /* right: clamp(12px, 9vw, 120px); */
    bottom: var(--footer-h);
    transform: translateY(2px);
    width: min(40vw, 520px);
    height: auto;
    z-index: 1029;
    pointer-events: none;
}

/* Mobile behaviour: image UNDER content, normal scroll */
@media (max-width: 768px){
    body{ padding-bottom: var(--footer-h); }

    /* make the footer image part of the document flow */
    .image-stick {
        position: static;
        display: block;
        width: 90%;
        max-width: 360px;
        margin: 24px auto 0;
        bottom: auto; right: auto;
        transform: none;
        z-index: auto;
        pointer-events: auto;
    }
}

/* Old Styles */
@media all and (-ms-high-contrast:none)
{
    *::-ms-backdrop, .ie11 { margin-top: 25vh; } /* IE11 */
}

img.brand-ifc {
    padding-right: 0;
}

.btn-link {
    margin-right: 15px;
}

.login-content {
    max-width: 407px;
}

.ui-phone {
    margin-top: 27px;
    margin-right: 10px;
}

.separator {
    height: 42px;
    width: 2px;
    margin-right: 22px;
    border: 1px solid rgb(228, 228, 228);
}

.mobile .separator {
    margin-top: 22px;
}

.desktop .separator {
    margin: 0;
}

.login-footer {
    display: flex;
    justify-content: space-between;
}

.login-footer label {
    padding-right: 32px;
    /* color: #007b87; */
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.terms {
    display: flex;
}

.elem-1 {
    flex: 1;
}

.elem-2 {
    margin-right: 32px;
    margin-bottom: 16px;
}

.terms a {
    color: rgb(0, 123, 135);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 24px;
}

.modal-footer,
.modal-header {
    border: none;
    display: flex;
    justify-content: center;
}

.modal-content {
    font-size: 16px;
    line-height: 24px;
}

.modal-header {
    height: 62px;
    margin-top: 10px;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
}

#toggle-lang-btn {
    font-weight: bold;
}

.align-items-center {
    min-height: 750px;
    padding-bottom: 80px;
    position: relative;
}

.modal-footer .btn-primary {
    background: rgb(255, 255, 255);
    border-radius: 4px;
    border: 1px solid rgb(0, 123, 135);
    height: 48px;
    color: rgb(0, 123, 135);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 24px;
    text-align: center;
}

.modal-footer .btn-primary:hover {
    color: white;
}

@media only screen and (min-width: 768px) {
    .modal-content {
        min-width: 603px;
        padding: 32px;
    }

    #toggle-lang-btn {
        margin: 0;
    }

    .contact-section {
        padding: 24px;
    }

    .atlantic-side,
    .west-side {
        padding-left: 10px;
    }

    .contact-section p {
        margin: 0;
        color: #484848;
    }

    .mobile {
        display: none;
    }

    .desktop {
        display: block;
    }
}

@media screen and (max-width: 1024px) {
    .mobile {
        display: block;
    }

    .container {
        padding: 5px;
        padding-top: 200px;

        .login-content {
            max-width: 100% !important;
            margin-left: 10%;
            margin-right:10%
        }

    }

    footer {
        position: fixed;
        /* background-color: white; */
        padding-top: 8px;
    }

    .elem-2 {
        margin-bottom: 0;
        margin-right: 16px;
    }

    .desktop {
        display: none;
    }

    .atlantic-side p,
    .west-side p {
        margin: 0;
    }

    .atlantic-side,
    .west-side {
        margin-bottom: 24px;
    }

    .modal-header {
        display: block;
    }

    .modal-content {
        margin: 10px 10px 0 0;
    }
}

@media (min-height: 750px) {
    .align-items-center {
        min-height: 100vh;
    }

    footer {
        position: fixed;
    }
}

.pointer-event:hover {
    cursor: pointer;
}

/* Base styling for resend block when JS kicks in */
.resend-code {
  position: absolute; /* will be placed with JS */
  width: 100%;        /* optional, adjust as needed */
}

#formID {
  position: relative;
}

p#qr-help1, p#qr-help2, p#totpSecretKeyUrl {
    margin-bottom: 0 !important;
}

/* Make modal look like the screenshot */
#removeMfaModal {
    .close {
        position: absolute;
        right: 15px;
        top: 0px !important;
        float: right;
        font-size: 3.5rem !important;
        font-weight: 100 !important;
        line-height: 1;
        color: #333333 !important;
        text-shadow: 0 1px 0 #fff;
        opacity: 1 !important;
    }

    .remove-mfa-modal {
        border-radius: 2px;
        padding: 3rem;
        position: relative;
    }

    /* Position the X button exactly like the screenshot */
    .remove-mfa-close {
        position: absolute;
        top: 0.8rem;
        right: 0.8rem;
    }

    /* Optional: light blur + softer backdrop */
    .modal-backdrop.show {
        opacity: 0.35;
        backdrop-filter: blur(50%);
    }

    .modal-content {
        min-width: 450px;
        padding: 40px;
    }
    
}

.stick-footer-image {
    .image-stick {
        width: min(30vh, 520px);
    }
}

a.ice-btn-primary {
    &:hover {
        color: white;
    }
}

button.close {
    border: none;
    span {
        border: none;   
    }
    &:hover, &:active {
        border: none;
    }
}
