body.auth-page-body,
body:has(.auth-page) {
    background: #0C101B;
}

body.auth-page-body .site-header,
body.auth-page-body .site-footer,
body:has(.auth-page) .site-header,
body:has(.auth-page) .site-footer {
    display: none;
}

.auth-page {
    display: flex;
    align-items: center;
    overflow-y: auto;
    color: var(--color-white);
    font-family: var(--font-primary);
    scrollbar-color:#90c3ef rgba(28, 165, 247, 0.12);
    scrollbar-width: thin;
}

.auth-page-bg {
    background-color: #0C101B;
    background-image: url('../../img/new/login-bg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100dvh;
}

.auth-page__container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-card {
    width: min(100%, 1000px);
    max-height: calc(100dvh - 64px);
    margin: 0;
    overflow-y: auto;
    padding: 32px;
    background: var(--color-white);
    border-radius: var(--auth-radius-card);
    scrollbar-color: var(--color-primary-blue-dark);
    scrollbar-width: thin;
}

.auth-page::-webkit-scrollbar,
.auth-card::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.auth-page::-webkit-scrollbar-track,
.auth-card::-webkit-scrollbar-track {
    background: rgba(28, 165, 247, 0.12);
    border-radius: var(--radius-pill);
}

.auth-page::-webkit-scrollbar-thumb,
.auth-card::-webkit-scrollbar-thumb {
    background: var(--gradient-blue);
    border: 2px solid var(--color-white);
    border-radius: var(--radius-pill);
}

.auth-page::-webkit-scrollbar-thumb:hover,
.auth-card::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-blue-hover);
}

.auth-page::-webkit-scrollbar-corner,
.auth-card::-webkit-scrollbar-corner {
    background: transparent;
    border-radius: var(--radius-pill);
}

.auth-card__row {
    /* min-height: 636px; */
}

.auth-card__form-col,
.auth-card__media-col {
    /* min-height: 636px; */
}

.auth-card__form-col {
    display: flex;
    align-items: center;
}

.auth-form {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
}

.auth-form__header {
    margin-bottom: 32px;
}

.auth-form__header h1 {
    margin: 0 0 8px;
    color: var(--color-dark);
    font-family: var(--font-primary);
    font-size: var(--font-size-32);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
}

.auth-form__header p {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

.signup-progress {
    position: relative;
    width: 100%;
    min-height: 34px;
    padding-left: 41px;
    margin-bottom: 24px;
}

.signup-progress__top {
    display: block;
    margin-bottom: 10px;
}

.signup-progress__back {
    display: inline-flex;
    position: absolute;
    top: 50%;
    left: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--color-white);
    background: var(--gradient-blue);
    border-radius: 50%;
    text-decoration: none;
    transform: translateY(-50%);
}

.signup-progress__back:before {
    content: "";
    width: 7px;
    height: 7px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateX(1px) rotate(45deg);
}

.signup-progress__back:hover,
.signup-progress__back:focus {
    color: var(--color-white);
    background: var(--gradient-blue-hover);
    outline: 0;
    box-shadow: none;
}

.signup-progress__step {
    display: block;
    color: var(--color-dark);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
}

.signup-progress__track {
    height: 4px;
    overflow: hidden;
    background: var(--color-light-blue);
    border-radius: var(--radius-pill);
}

.signup-progress__bar {
    display: block;
    width: var(--signup-progress, 16.6667%);
    height: 100%;
    background: var(--gradient-blue);
    border-radius: inherit;
}

.signup-step-panel {
    display: none;
}

.signup-step-panel.is-active {
    display: block;
}

.auth-form__error {
    display: block;
    min-height: 20px;
    margin: -8px 0 14px;
    color: #FF8A8A;
    font-size: var(--font-size-13);
    font-weight: var(--font-weight-medium);
    line-height: 1.35;
}

.auth-form__error:empty {
    display: none;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 var(--space-24);
    color: var(--color-white);
    background: var(--auth-gradient-button);
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-size: var(--font-size-20);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    color: var(--color-white);
    background: var(--auth-gradient-button-hover);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-page [id$="btnSubmitLogin"].btn-light-blue {
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 18px;
}

.auth-page [id$="btnSubmitLogin"].btn-light-blue:hover,
.auth-page [id$="btnSubmitLogin"].btn-light-blue:focus,
.auth-page [id$="btnSubmitLogin"].btn-light-blue.is-loading {
    color: var(--color-white) !important;
    background: var(--gradient-blue-hover) !important;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(28, 165, 247, 0.22);
    transform: translateY(-1px);
}

.auth-page [id$="btnSubmitLogin"].btn-light-blue:active {
    background: var(--gradient-blue-pressed) !important;
    box-shadow: none;
    transform: translateY(0);
}

.auth-flow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px !important;
    color: var(--color-white) !important;
    background: var(--gradient-blue) !important;
    border: 0 !important;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    /* font-size: var(--font-size-16); */
    /* font-weight: var(--font-weight-bold); */
    line-height: 1;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
}

.auth-flow-button:hover,
.auth-flow-button:focus {
    color: var(--color-white) !important;
    background: var(--gradient-blue-hover) !important;
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.auth-flow-button:active {
    transform: translateY(1px);
}

.auth-form__signup {
    margin: 18px 0 0;
    color: var(--color-dark-secondary);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    text-align: center;
}

.auth-form__signup a {
    color: var(--color-dark);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-16);
    text-decoration: underline;
    text-underline-offset: 2px;
    background: -webkit-linear-gradient(#1CA5F7, #0876DF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-form__signup a:hover,
.auth-form__signup a:focus {
    color: var(--color-dark);
}

.auth-media {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 636px;
    overflow: hidden;
    border-radius: var(--auth-radius-media);
}

.auth-media__image {
    display: block;
    width: 100%;
    height: calc(100dvh - 150px);
    max-height: 636px;
    object-fit: cover;
    background: url(../../img/new/login-side-img.jpg) center / cover no-repeat;
}

.auth-media__logo {
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: 1;
    width: 250px;
    height: auto;
    transform: translateX(-50%);
}

.auth-media__logo-link {
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: 2;
    display: block;
    width: 250px;
    transform: translateX(-50%);
}

.auth-media__logo-link .auth-media__logo {
    position: static;
    display: block;
    width: 100%;
    transform: none;
}

@media only screen and (max-width: 1199px) { .auth-card {
        width: min(100%, 920px);
    } }

@media only screen and (max-width: 991px) {
    .auth-page__container {
        align-items: center; 
        min-height: 0; 
        overflow: hidden;
    }
    .auth-card {
        width: 100%;
        min-height: 0;
        max-height: calc(100dvh - 32px);
        padding: 32px 16px;
        border-radius: var(--auth-radius-card);
        overflow: auto;
    }
    .auth-card__row,
    .auth-card__form-col {
        min-height: 0;
    } 
    .auth-form {
        max-width: none;
    }
    .auth-form__header {
        margin-bottom: 32px;
    } 
    .signup-progress {
        margin-bottom: 22px;
    }
    .auth-form__header h1 {
        font-size: var(--font-size-24);
    }
    .auth-field {
        margin-bottom: 24px;
    }
}

@media only screen and (max-width: 480px) {
    .auth-form__header p {
        font-size: var(--font-size-15);
    }
    .signup-progress {
        padding-left: 39px;
    }
    .signup-progress__back {
        width: 32px;
        height: 32px;
    }
}

@media only screen and (max-width: 767.98px) {
    .auth-submit.auth-flow-button{
        box-sizing: border-box;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        padding-top: 0;
        padding-bottom: 0;
        font-size: var(--font-size-12);
        line-height: 1;
    }
}

@media only screen and (max-width: 360px) {
    /* .auth-page__container {
        padding-right: 12px;
        padding-left: 12px;
    } */
    .auth-card {
        padding-right: 14px;
        padding-left: 14px;
    }
    .auth-field__topline {
        gap: var(--space-8);
    }
    .auth-field__helper {
        font-size: var(--font-size-11);
    }
}

@media only screen and (max-height: 640px) and (max-width: 991px) {
    /* .auth-page__container {
        padding-top: 12px;
        padding-bottom: 12px;
    } */
    .auth-card {
        max-height: calc(100dvh - 24px);
        padding-top: 22px;
        padding-bottom: 22px;
    }
    .auth-form__header {
        margin-bottom: 20px;
    }
    .signup-progress {
        margin-bottom: 16px;
    }
    .auth-field {
        margin-bottom: 16px;
    } 
    .auth-form__error {
        min-height: 16px;
        margin-bottom: 10px;
        font-size: var(--font-size-12);
    }
    .auth-submit {
        height: 46px;
    }
    .auth-form__signup {
        margin-top: 12px;
    }
}

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-card {
        padding-top: 14px;
        padding-bottom: 14px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-form__header {
        margin-bottom: 12px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .signup-progress {
        margin-bottom: 12px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-form__header h1 {
        margin-bottom: 4px;
        font-size: var(--font-size-22);
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-form__header p,
    .auth-form__signup,
    .auth-field__control,
    .auth-field__label {
        font-size: var(--font-size-12);
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-field {
        margin-bottom: 10px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-field__label,
    .auth-field__helper {
        margin-bottom: 5px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-field__control {
        height: 36px;
        line-height: 36px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-form__error {
        min-height: 14px;
        margin-top: -4px;
        margin-bottom: 6px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-submit {
        height: 40px;
        font-size: var(--font-size-16);
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-form__signup {
        margin-top: 8px;
    } }

.auth-page--simple .auth-page__container {
    padding: 24px 20px;
}

.auth-card--simple {
    position: relative;
    width: min(100%, 535px);
    min-height: 0;
    padding: 32px;
    border-radius: var(--auth-radius-card);
}

.auth-card--verification .auth-form {
    display: flex;
    flex-direction: column;
}

.auth-card--flow {
    width: min(100%, 560px);
    min-height: 0;
    padding: 32px;
}

.auth-card--flow .auth-form {
    max-width: none;
}

.auth-card--signup.signup-wizard__card {
    width: min(100%, 596px);
    min-height: 0;
    padding: 32px;
}

.auth-card--signup .signup-wizard__row,
.auth-card--signup .signup-wizard__form-col {
    min-height: 0;
}

.auth-card--signup .signup-wizard__form-col {
    align-items: stretch;
}

.auth-card--signup .auth-form--signup {
    max-width: none;
}

.signup-wizard__card.is-flow-step,
.signup-wizard__card.is-verification-step {
    width: min(100%, 596px);
    min-height: 0;
    padding: 32px;
}

.signup-wizard__card.is-verification-step {
    width: min(100%, 535px);
}

.signup-wizard__card.is-flow-step .signup-wizard__media-col,
.signup-wizard__card.is-verification-step .signup-wizard__media-col {
    display: none !important;
}

.signup-wizard__card.is-flow-step .signup-wizard__row,
.signup-wizard__card.is-flow-step .signup-wizard__form-col,
.signup-wizard__card.is-verification-step .signup-wizard__row,
.signup-wizard__card.is-verification-step .signup-wizard__form-col {
    min-height: 0;
}

.signup-wizard__card.is-flow-step .signup-wizard__form-col,
.signup-wizard__card.is-verification-step .signup-wizard__form-col {
    flex: 0 0 100%;
    max-width: 100%;
    align-items: stretch;
}

.signup-wizard__card.is-flow-step .auth-form,
.signup-wizard__card.is-verification-step .auth-form {
    max-width: none;
}

.signup-wizard__card.is-verification-step .auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form--simple {
    max-width: none;
}

.auth-form__header--simple {
    margin-bottom: 24px;
}

.auth-form__header--simple h1 {
    margin-bottom: 6px;
    font-size: var(--font-size-32);
}

.auth-form__header--simple p {
    font-size: var(--font-size-16);
    line-height: 1.35;
}

.auth-field--simple {
    margin-bottom: 24px;
}

.auth-hidden-label {
    display: none !important;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-bottom: 24px;
    color: var(--color-white);
    background: var(--gradient-blue);
    border-radius: 50%;
    text-decoration: none;
}

.auth-back:before {
    content: "";
    width: 7px;
    height: 7px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateX(1px) rotate(45deg);
}

.auth-back:hover,
.auth-back:focus {
    color: var(--color-white);
    background: var(--gradient-blue-hover);
    outline: 0;
    box-shadow: none;
}

.auth-submit--simple {
    height: 44px;
    background: var(--gradient-blue);
    font-size: var(--font-size-14);
    text-decoration: none;
}

.auth-submit--simple:hover,
.auth-submit--simple:focus {
    background: var(--gradient-blue-hover);
    text-decoration: none;
}

.auth-form__resend {
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: var(--font-size-11);
    line-height: 1.3;
    text-align: center;
}

.auth-form__resend a {
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-medium);
}

.auth-form__resend span {
    color: var(--color-muted);
    font-size: var(--font-size-14);
}

.auth-card--success {
    width: min(100%, 535px);
    padding: 32px;
}

.auth-page--success {
    overflow-x: hidden;
}

.auth-page--success .auth-page__container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.auth-page--success .auth-card--success {
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

.auth-page--success .auth-flow-button {
    max-width: 100%;
}

.auth-success {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.auth-success__copy {
    text-align: left;
}

.auth-success h1 {
    margin: 0 0 8px;
    color: var(--color-dark);
    font-family: var(--font-primary);
    font-size: var(--font-size-28);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
}

.auth-success__icon {
    align-self: center;
    width: 100px;
    height: 100px;
    margin: 32px 0;
    background: url("../../img/new/success-tick-img.png") center / contain no-repeat;
}

.auth-success__icon:before {
    content: none;
}

.auth-success-modal__content {
    padding: 32px;
    background: var(--color-white);
    border: 0;
    border-radius: var(--auth-radius-card);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.18);
}

.auth-page .form-check-label {
    min-width: 0;
    flex: 0 0 88%;
    width: fit-content !important;
}

.auth-page .form-check-label a,
.auth-page .form-check-label {
    font-weight: var(--font-weight-medium);
}

@media only screen and (max-width: 991px) { .auth-page--simple .auth-page__container {
        padding: 12px;
    } }

@media only screen and (max-width: 991px) { .auth-card--simple {
        width: min(100%, 322px);
        max-height: calc(100dvh - 24px);
        padding: 32px 16px;
    } }

@media only screen and (max-width: 991px) { .auth-page--verification .auth-page__container {
        align-items: center;
        padding: 24px 8px;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification {
        display: flex;
        flex-direction: column;
        width: min(100%, 322px);
        min-height: calc(100dvh - 48px);
        max-height: calc(100dvh - 48px);
        padding: 24px 8px 18px;
        overflow: auto;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .signup-progress {
        margin-bottom: 16px;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-form--simple {
        flex: 1 1 auto;
        min-height: 0;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-form__header--simple {
        margin-bottom: 14px;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-form__header--simple h1 {
        margin-bottom: 6px;
        font-size: var(--font-size-22);
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-form__header--simple p {
        font-size: var(--font-size-11);
        line-height: 1.25;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-field--simple {
        margin-bottom: auto;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-field__label {
        font-size: var(--font-size-10);
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-field__control {
        height: 36px;
        padding: 0 12px;
        font-size: var(--font-size-11);
        line-height: 36px;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-flow-button {
        flex: 0 0 auto;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-form__resend {
        flex: 0 0 auto;
        margin-top: 10px;
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-form__resend a {
        font-size: var(--font-size-11);
    } }

@media only screen and (max-width: 991px) { .auth-card--verification .auth-form__resend span {
        font-size: var(--font-size-10);
    } }

@media only screen and (max-width: 991px) { .auth-form__header--simple h1 {
        font-size: var(--font-size-24);
    } }

@media only screen and (max-width: 991px) { .auth-back {
        width: 32px;
        height: 32px;
        margin-bottom: 24px;
    } }

@media only screen and (max-width: 991px) { .auth-back:before {
        width: 5px;
        height: 5px;
        border-width: 1px;
    } }

@media only screen and (max-width: 991px) { .auth-submit--simple {
        height: 40px;
        font-size: var(--font-size-12);
    } }

@media only screen and (max-width: 991px) { .auth-card--success {
        width: min(100%, 310px);
        padding: 32px 16px;
    } }

@media only screen and (max-width: 991px) { .auth-page--success .auth-page__container {
        padding-right: 12px;
        padding-left: 12px;
    } }

@media only screen and (max-width: 991px) { .auth-page--success .auth-card--success {
        width: 100%;
        max-width: 310px;
    } }

@media only screen and (max-width: 991px) { .auth-success h1 {
        font-size: var(--font-size-24);
    } }

@media only screen and (max-width: 991px) { .auth-success p {
        font-size: var(--font-size-11);
    } }

@media only screen and (max-width: 991px) { .auth-success__icon {
        margin: 28px 0;
    } }

@media only screen and (max-width: 991px) { .auth-success-modal .modal-dialog {
        padding-right: 12px;
        padding-left: 12px;
    } }

@media only screen and (max-width: 991px) { 
    .auth-success-modal__content,
    .auth-card--signup.signup-wizard__card {
        padding: 32px 16px;
    } 
}

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-form__resend {
        margin-top: 8px;
    } }

@media only screen and (max-height: 480px) and (max-width: 991px) { .auth-success__icon {
        margin: 18px 0;
    } }

@media only screen and (max-width: 991px) { .auth-success p {
        font-size: var(--font-size-16);
    } }

.auth-success p {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

.auth-success-modal .modal-dialog {
    min-width: min(100%, 596px);
    margin-right: auto;
    margin-left: auto;
    padding-right: 16px;
    padding-left: 16px;
}

.auth-success-modal .btn-close {
    display: none !important;
}

.auth-page .form-check {
    align-items: flex-start;
    gap: 10px;
    color: var(--color-dark);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-medium);
    line-height: 1.35;
    padding-left: 0;
    flex-wrap: wrap;
}

.auth-page .form-check>span.form-check-input {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Force dark styling on btn-light-blue when loading */
.auth-page .btn.btn-light-blue.is-loading {
    background: var(--gradient-blue-hover) !important;
    opacity: 1 !important;
    box-shadow: 0 8px 20px rgba(28, 165, 247, 0.22) !important;
}
