:root:root {
    --green: #008066;
    --success: #008066;
    --secondary: #757575;
    --text-primary: #495057;
    --border-large: #696969;
    --border-light: #DBE1DE;
    --text-secondary: #757575;
    --disabled: #D9D9D9;
    --danger: #B5283A;
    --danger-background: #f8d7da;
    --green-background: #F0F7F7;
    --trans-color: #2F354C;

    body,
    h2,
    h3,
    h4,
    h5 {
        font-family: "Nunito Sans Regular", sans-serif !important;
    }
    
    h1 {
        font-family: "Nunito Sans Bold", sans-serif !important;
    }
}

.rtl {
    direction: rtl;
    text-align: right;

    .uae-pass-message {
        .certify {
            sup {
                left: 1px;
            }
        }
    }
}

@font-face {
    font-family: 'Nunito Sans Bold';
    src: url('../fonts/NunitoSans-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Nunito Sans Regular';
    src: url('../fonts/NunitoSans-Regular.ttf') format('truetype');
}

.hidden {
    display: none;
}

.input-group {
    display: flex !important;
    margin-bottom: 12px;

    input, select {
        border-color: var(--text-secondary);
    }
}

#kc-logout-confirm {
    padding: 180px 20%;
}

#kc-logo-wrapper {
    visibility: hidden;
}

.header {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 138px;
    background: #2F354C;
    align-items: center;
    padding: 0 10%;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: solid 8px var(--text-secondary);
}

#kc-page-title {
    margin-bottom: 0;
}

.logo {
    background: url('../images/delaruelogo_white.png') no-repeat;
    background-size: contain;
    height: 71px;
    width: 60px;
}

.footer {
    position: fixed;
    bottom: 0;
    z-index: 102;
    border-top: solid 4px var(--success);
    background: var(--green-background);
    color: #888;
    display: flex;
    width: 100%;
    height: 56px;
    max-width: 100%;
    align-items: center;
    padding: 0 10%;
    .footerText{
        width: 100%;
        .text-end {
            text-align: end;
        }
    }
}

.footer .container {
    margin-right: 0 !important;
}

.footerText {
    color: var(--text-secondary);
}

.login-inputs-container {
    width: 100%;
}

#username,
#password {
    border-radius: 4px !important;
}

.mainDiv {
    display: flex;
    justify-content: center;
    position: relative;
    height: calc(100vh - 56px - 138px);
    max-height: calc(100vh - 56px - 138px);
    overflow-y: auto;
}

.mainDivBackground {
    object-fit: cover;
    background-image: url('../images/login-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 130px;
    left: 0;
    z-index: -1;
}

.trans-layer {
    top: 138px;
    position: absolute;
    width: 100vw;
    opacity: 50%;
    background-color: var(--trans-color);
    z-index: 100;
    height: calc(100vh - 56px - 138px);
}

.login-form {
    position: fixed;
    top: max(20%, 140px);
    max-height: calc(100vh - 18%);
    left: calc(50vw - (478px / 2));
    overflow: auto;
    z-index: 101;
    background-color: white;
    width: 478px;
    height: fit-content;
    border-radius: 6px;
}

.login-form-mobile-background {
    position: fixed;
    display: none;
}

.login-button-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    margin: 8px 0;
    padding: 0 !important;
}

.login-button-separator::before,
.login-button-separator::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid var(--disabled);
}

.login-button-separator:not(:empty)::before {
  margin-inline-end: 18px;
}

.login-button-separator:not(:empty)::after {
  margin-inline-start: 18px;
}

.login-form-header {
    font-size: 33px;
    font-weight: 400;
    padding-top: 15px;
    padding-bottom: 10px;

    > sup {
        font-size: 12px;
        top: -14px;
    }
}

.panel {
    background-color: white;
    box-shadow: none !important;
    padding: 24px 32px;
    border-radius: 6px;
}

.panel-title {
    padding-bottom: 20px;
}

.panel-info {
    border: none !important;
    overflow-y: auto;
}

.panel-body {
    padding: 0 !important;
}

.input-label {
    font-weight: 700;
    font-size: 16px;
}

#forgetBtnLink {
    color: var(--success);
}

#forgetBtn {
    margin-bottom: 16px;
}

/* login button */
#kc-login, .login-btn-providers.login-btn-providers {
    width: 260px;
    font-weight: 700;
    padding-inline: 16px;
}

.uae-pass-icon {
    background-image: url("../icons/uae-pass.svg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 24px;
    height: 24px;
    margin-inline-end: 8px;
}

#signInBtn {
    position: relative;
    width: 100%;
    display: contents;
}

#kc-form-buttons {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    margin: auto;
}

#kc-form-buttons .login-activity-message {
    padding-top: 15px;
    margin-bottom: 0;
}

.btn {
    border-radius: 0 !important;
    min-height: 50px;
}

.login-btn-providers {
    border: 1px solid #0D0E0E;
    color: #0D0E0E;
    align-items: center;
    display: inline-flex !important;
    justify-content: center;
    margin-top: 16px;

    &:hover,&:focus {
        background-color: unset !important;
        color: #0D0E0E !important;
        box-shadow: 0 0 0 .2rem #28a74580 !important;
    }
}

.login-btn-providers:nth-child(3) {
    margin-top: 0;
}

.uae-login-btn:hover,.uae-login-btn:focus {
    box-shadow: 0 0 0 .2rem #afe1d1 !important;
}

.uae-pass-message {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    .certify {
        direction: ltr;
        sup {
            font-size: 7px;
            top: -6px;
            left: -2px;
        }
    }
}

.link-profile-auth-message {
    font-weight: 700;
    margin-top: 25px;
}

.link-account-subtitle {
    font-size: 18px;
    margin-bottom: 16px;
}

/* bootstrap overrides */

.btn-success.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    font-weight: 700;

    &:hover,&:focus {
        background-color: var(--trans-color);
        border-color: var(--trans-color);
    }
}

.alert-danger.alert-danger {
    color: var(--danger);
    font-weight: 700;
    font-size: 16px;
    background-color: var(--danger-background);
    border-color: var(--danger-background);
    border-radius: 0;
}

.form-control > option[selected] {
    background-color: var(--green-background) !important;
}

.form-check {
    padding-inline-start: 1.75rem !important;
    padding-top: 13px;
    .form-check-input {
        accent-color: var(--green) !important;
        margin-top: 0.1rem;
        margin-inline-start: -1.75rem !important;
        width: 20px;
        height: 20px;
    }

    .form-check-label {
        font-size: 14px;
    }
}

.login-message {
    padding-bottom: 8px;
}

.login-activity-message {
    line-height: 17px;
    font-size: 14px;
    margin-bottom: 12px;
}

.responsive-form-container {
    display: flex;
}

.login-separator-line {
    height: 80px;
    width: 2px;
    background-color: var(--disabled);
    margin: 4px 0;
}

.social-logins-desktop-actions {
    display: flex;
    flex-direction: column;
    align-items: center;

    .login-btn-providers:nth-last-child(3) {
        margin-bottom: 20px;
    }

    div:nth-last-child(2) {
        margin-bottom: 20px;
    }
}

#disclaimer-text {
    font-size: 14px;
}

/* responsive overrides */

@media (width <=768px) {
    #customer-logo {
        margin: 0 20px;
    }

    #customer-logo img {
        height: 38px;
    }

    .panel {
        border-radius: unset;
    }

    .trans-layer {
        display: none;
    }

    .login-form {
        top: 60px;
        width: 100%;
        min-height: calc(100vh - 60px - 16px);
        left: calc(50vw - (100% / 2));

        &.scrolled-to-bottom {
            min-height: calc(100vh - 60px - 56px);
        }
    }

    .login-form-header {
        font-size: 23px;
    }

    .login-form-mobile-background {
        display: block;
        top: 60px;
        width: 100vw;
        background-color: white;
        height: calc(100vh - 60px - 56px);
    }

    .mainDivBackground {
        display: none;
        background: none;
    }

    .header {
        min-height: 60px;
        justify-content: center;
        border-bottom: unset;
    }

    .logo {
        height: 38px;
        width: 32px;
    }

    .mainDiv {
        height: calc(100vh - 60px - 56px);
        max-height: calc(100vh - 60px - 56px);
    }

    .login-btn-providers.login-btn-providers {
        width: 100%;
        margin: 10px 0;
    }

    #kc-login {
        width: 260px;
        margin-bottom: 10px;
    }

    .narrow-buttons {
        width: 260px;
        margin: auto;
    }

    .responsive-form-container {
        flex-direction: column;
    }

    .social-logins-mobile {
        display: unset;
        min-width: 100%;

        .login-btn-providers:last-child {
            margin-bottom: 20px;
        }
    }

    .login-inputs-container {
        width: 100%;
    }

    .login-container-separator {
        display: none;
    }

    .social-logins-desktop {
        width: 100%;
    }

    .social-logins-desktop-actions {
        display: none;
    }

    .footer {
        justify-content: center;
        background: var(--green-background);

        max-height: 16px;
        padding: 0 5vw;

        &.scrolled-to-bottom {
            max-height: 56px;
        }
    }

    .footerText {
        display: none;

        &.scrolled-to-bottom {
            display: flex;
        }
    }

    .login-modal-wide.login-modal-wide {
        top: 60px;
    }

    #kc-logout-confirm {
        padding: 120px 20%;
    }
}

@media (width > 768px) {
    #customer-logo {
        margin: 0 24px;
    }

    #customer-logo img {
        height: 81px;
    }

    .social-logins-mobile {
        display: none;
    }

    .login-form {
        width: 100%;
        left: calc(50vw - (100% / 2));
    }

    .login-inputs-container.includes-socials {
        width: 45%;
    }

    .login-container-separator {
        width: 10%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        color: var(--text-secondary);
    }

    .social-logins-desktop.includes-socials {
        width: 45%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    
    .login-form-desktop-width.login-form-desktop-width {
        max-width: 768px;
        left: calc(50vw - (768px / 2));
    }

    .login-form-narrow.login-form-narrow {
        max-width: 460px;
        left: calc(50vw - (460px / 2));
    }

    .footerText {
        display: flex;
    }
}

@media (width > 900px) {
    .login-form {
        max-width: 900px;
        left: calc(50vw - (900px / 2));
    }
}

@media (max-width: 541px) {
    .input-group {
        margin-bottom: 6px;
    }
}

.link-account-button {
    width: fit-content !important;
}

.privacy-policy-link {
    color: var(--success);
}

@media (min-width: 992px) {
    .login-form-lg.login-form-lg {
        max-width: 992px;
        left: calc(50vw - (992px / 2));
    }
}

@media (min-width: 1200px) {
    .login-form-lg.login-form-lg {
        max-width: 1200px;
        left: calc(50vw - (1200px / 2));
    }
}