.flex-gap {
  display: flex;
  flex-direction:column;
  gap: 10px;
  justify-content: center;
  padding: 0;
}
.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 15px;
    background-color: #f8f8f8;
    background-image: url(/images/login_bg.png) !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

.login-wrapper .login-form-wrapper{
    max-width: 432px;
    width: 100%;
    padding: 36px;
    border-radius: 8px;
    box-shadow: 0 0 24px 0 rgb(0 0 0 / 6%);
    border: solid 2px #eff3ff;
    background-color: #ffffff;
}

.login-wrapper .login-form-wrapper .login-title h3 {
    /* font-size: 25px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #08104D;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: solid 1px rgba(151, 151, 151, 0.2);
    margin-bottom: 20px; */
    font-size: 24px;
    font-weight: 450;
    color: #666a80;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.login-wrapper .login-form-wrapper .login-title p {
    letter-spacing: 0.88px;
    color: #666a80;
    font-size: 14px;
    font-weight: 450;
    text-align: center;
}
.login-wrapper .login-form-wrapper .input-group .form-control {
    /* height: 50px;
    border-radius: 3px;
    border: solid 1px #d5dce0;
    background-color: #ffffff;
    padding: 15px 20px 15px; */
    padding: 12px 20px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: solid 2px var(--lightblue);
    background-color: #f8f8f8;
    width: 100%;
    height: 44px;
    outline: none;
}
.login-wrapper .login-form-wrapper label {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 450;
    line-height: normal;
    letter-spacing: 1px;
    color: var(--secondaryblue);
    display: block;
}


.login-wrapper .login-form-wrapper .input-login-btn .form-control {
    height: 48px;
    border-radius: 4px;
    background-color: #2843DF;
    font-size: 16px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: #ffffff;
    transition: 0.5s ease-in-out;
}
.login-wrapper .login-form-wrapper .input-group .password-wrapper .form-control {
    padding-right: 30px ;
}


.login-wrapper .login-form-wrapper .input-login-btn .form-control:hover {
    background-color: #08104D;
    transition: 0.5s ease-in-out;
}

.login-wrapper .login-wrapper-logo img {
    height: 64px;
    vertical-align: middle;
    margin-bottom: 28px;
}

.help-block {
    display:block;
    width: 100%;
    margin-top: 5px;
}



/* toggle password button  */
input::-ms-reveal,
input::-ms-clear {
display: none;
}
.toggle-Password-btn{
    position: absolute;   
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: none;
    background: none;
    outline: none;
    padding: 0;
    display: grid;
    place-items: center;
    opacity: 0.4;
}
.toggle-Password-btn img{
    width: 18px;
    height: 18px;
}
/* toggle password button  */


/* 2 factor authentication  */
.resendOtpText{
    font-size: 13px;
}
.otp-input-wrapper{
    max-width: 300px;
    width: 100%;
    margin:auto;
    display: flex;
    justify-content: space-between;
}
.otp-input-wrapper input{
    width: 40px !important;
    text-align: center;
    user-select: none;
}
/* 2 factor authentication  */

/* AP-8070 modern auth screens */
.crm-auth-page {
    --crm-auth-blue: #2843df;
    --crm-auth-blue-strong: #0b4de9;
    --crm-auth-blue-dark: #061057;
    --crm-auth-text: #071142;
    --crm-auth-muted: #66708a;
    --crm-auth-line: #dbe5f6;
    --crm-auth-soft: #eef4ff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 54%, rgba(40, 67, 223, 0.05) 0, rgba(40, 67, 223, 0.05) 27%, transparent 27.5%),
        linear-gradient(135deg, #fbfdff 0%, #ffffff 46%, #f6f9ff 100%);
    color: var(--crm-auth-text);
}

.crm-auth-page::before,
.crm-auth-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
}



.crm-auth-page::after {
    display: none;
}

.crm-auth-page .login-wrapper.crm-auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: 48px clamp(20px, 5vw, 72px);
    background-image: none;
}

.crm-auth-page--login .login-wrapper.crm-auth-shell {
    display: grid;
    grid-template-columns: minmax(520px, 42vw) minmax(520px, 1fr);
    align-items: center;
    justify-items: center;
    gap: clamp(32px, 5vw, 88px);
    max-width: none;
    padding: 0;
}

.crm-auth-page--centered .login-wrapper.crm-auth-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding-top: clamp(38px, 8vh, 86px);
    padding-bottom: clamp(34px, 6vh, 64px);
}

.crm-auth-page--centered::after {
    display: block;
    width: min(38vw, 420px);
    height: 118vh;
    left: max(-280px, -16vw);
    top: -9vh;
    border-radius: 0 58% 58% 0 / 0 48% 48% 0;
    background: linear-gradient(150deg, rgba(40, 112, 255, 0.8) 0%, rgba(40, 67, 223, 0.5) 54%, rgba(40, 67, 223, 0) 100%);
}

.crm-auth-page--centered .login-wrapper.crm-auth-shell::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 230px;
    left: clamp(34px, 7vw, 120px);
    top: clamp(70px, 12vh, 140px);
    z-index: 0;
    opacity: 0.65;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(40, 67, 223, 0.18) 2px, transparent 2.4px);
    background-size: 22px 22px;
}

.crm-auth-page--centered .login-wrapper.crm-auth-shell::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -160px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(40, 112, 255, 0.14);
    pointer-events: none;
}

.crm-auth-side-panel {
    align-self: stretch;
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(32px, 6vw, 72px);
    background:
        radial-gradient(circle at 22% 88%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(145deg, #0b66ee 0%, #123fe2 48%, #081fa9 100%);
    border-radius: 0 44% 44% 0 / 0 50% 50% 0;
    color: #ffffff;
}

.crm-auth-side-panel::before,
.crm-auth-side-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.crm-auth-side-panel::before {
    /* width: min(620px, 72vw);
    height: min(620px, 72vw);
    left: -190px;
    bottom: -210px;
    opacity: 0.62;
    border-radius: 0; */

        width: min(620px, 72vw);
    height: min(620px, 72vw);
    left: -55px;
    bottom: 0px;
    opacity: 0.62;
    border-radius: 0;
    background-image: url(/images/login-wrapper-bg@3x.png) !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    transform: scaleX(-1);
    transform-origin: center;
    
}

.crm-auth-side-panel::after {
    width: 320px;
    height: 320px;
    right: -130px;
    top: -130px;
    z-index: 0;
    background: rgba(255, 255, 255, 0.08);
}

.crm-auth-side-content {
    position: relative;
    z-index: 1;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.crm-auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.crm-auth-standalone-brand {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.crm-auth-brand img,
.crm-auth-page .login-wrapper .login-wrapper-logo img {
    width: auto;
    height: 58px;
    max-width: min(340px, 100%);
    margin: 0;
    object-fit: contain;
}

.crm-auth-standalone-brand img,
.crm-auth-page .login-wrapper .crm-auth-standalone-brand img {
    height: 72px;
    max-width: min(360px, 88vw);
}

.crm-auth-brand--light {
    justify-content: flex-start;
}

.crm-auth-brand--light img {
    height: 46px;
    filter: brightness(0) invert(1);
}

.crm-auth-side-content h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: 0;
}

.crm-auth-side-content p {
    max-width: 370px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0;
}

.crm-auth-feature-list {
    display: grid;
    gap: 28px;
}

.crm-auth-feature {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: center;
}

.crm-auth-feature > span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.crm-auth-feature svg {
    width: 24px;
    height: 24px;
}

.crm-auth-feature strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 17px;
}

.crm-auth-feature small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.45;
}

.crm-auth-page .login-form-wrapper.crm-auth-card {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    max-width: 520px;
    padding: 46px 48px;
    border: 1px solid rgba(196, 209, 231, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 64px rgba(10, 27, 78, 0.12);
    backdrop-filter: blur(14px);
}

.crm-auth-page--login .login-form-wrapper.crm-auth-card {
    width: min(100%, 620px);
    max-width: 400px;
    padding: 18px;
}

.crm-auth-page--centered .login-form-wrapper.crm-auth-card {
    width: min(100%, 540px);
    max-width: 400px;
    padding: 18px;
}

.crm-auth-page--otp .login-form-wrapper.crm-auth-card {
    width: min(100%, 640px);
    max-width: 400px;
    padding: 18px;
}

.crm-auth-card-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    color: var(--crm-auth-blue);
    background: linear-gradient(145deg, #eef4ff, #ffffff);
    box-shadow: inset 0 0 0 1px rgba(40, 67, 223, 0.08);
}

.crm-auth-card-icon svg {
    width: 38px;
    height: 38px;
}

.crm-auth-page .login-form-wrapper .login-title h3,
.crm-auth-title {
    margin: 0 0 10px;
    color: var(--crm-auth-text);
    font-size: 32px;
    line-height: 1.18;
    text-align: center;
    letter-spacing: 0;
}

.crm-auth-page .login-form-wrapper .login-title p,
.crm-auth-subtitle {
    color: var(--crm-auth-muted);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center ;
    letter-spacing: 0;
}

.crm-auth-subtitle strong {
    color: var(--crm-auth-text);
}

.crm-auth-page .login-form-wrapper .input-group.crm-auth-field {
    display: block;
    width: 100%;
}

.crm-auth-page .login-form-wrapper label {
    margin-bottom: 10px;
    color: var(--crm-auth-text);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
}

.crm-auth-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.crm-auth-input-icon,
.crm-auth-password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: #6b7690;
}

.crm-auth-input-icon {
    left: 18px;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.crm-auth-input-icon svg,
.crm-auth-password-toggle svg {
    width: 22px;
    height: 22px;
}

.crm-auth-page .login-form-wrapper .input-group .form-control.crm-auth-input {
    width: 100%;
    padding: 0 56px;
    color: var(--crm-auth-text);
    border: 1px solid #d4def1;
    border-radius: 11px;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 1px 1px rgba(10, 27, 78, 0.02);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.crm-auth-page .login-form-wrapper .input-group .form-control.crm-auth-input::placeholder {
    color: #8c96a9;
}

.crm-auth-page .login-form-wrapper .input-group .form-control.crm-auth-input:focus {
    border-color: var(--crm-auth-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(40, 67, 223, 0.12);
}

.crm-auth-page .crm-auth-input-wrap.password-wrapper .form-control.crm-auth-input {
    padding-right: 58px;
}

.crm-auth-page .toggle-Password-btn.crm-auth-password-toggle {
    right: 16px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.crm-auth-page .toggle-Password-btn.crm-auth-password-toggle:hover,
.crm-auth-page .toggle-Password-btn.crm-auth-password-toggle:focus {
    color: var(--crm-auth-blue);
    background-color: var(--crm-auth-soft);
    outline: none;
}

.crm-auth-toggle-legacy-icon {
    display: none !important;
}

.crm-auth-password-toggle .crm-auth-eye {
    display: none;
}

.crm-auth-password-toggle.show .crm-auth-eye {
    display: block;
}

.crm-auth-password-toggle.show .crm-auth-eye-slash {
    display: none;
}

.crm-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    color: var(--crm-auth-muted);
    font-size: 14px;
    line-height: 1.4;
}

.crm-auth-actions svg {
    width: 18px;
    height: 18px;
    color: var(--crm-auth-blue);
}

.crm-auth-secondary-link,
.crm-auth-page .crm-auth-secondary-link {
    color: var(--crm-auth-blue);
    font-size: 14px;
    text-decoration: none;
}

.crm-auth-secondary-link:hover,
.crm-auth-secondary-link:focus {
    color: var(--crm-auth-blue-dark);
    text-decoration: none;
}

.crm-auth-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.crm-auth-back-link svg {
    width: 18px;
    height: 18px;
}



.crm-auth-page .login-form-wrapper .input-login-btn .form-control.crm-auth-primary-btn,
.crm-auth-primary-btn {
    width: 100%;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3157ff, #073dde);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 16px 30px rgba(40, 67, 223, 0.22);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.crm-auth-page .login-form-wrapper .input-login-btn .form-control.crm-auth-primary-btn:hover,
.crm-auth-page .login-form-wrapper .input-login-btn .form-control.crm-auth-primary-btn:focus {
    background: linear-gradient(135deg, #2448ef, #062db8);
    box-shadow: 0 18px 34px rgba(40, 67, 223, 0.3);
    transform: translateY(-1px);
    outline: none;
}

.crm-auth-primary-btn svg {
    width: 21px;
    height: 21px;
}

.crm-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    color: var(--crm-auth-muted);
    font-size: 14px;
}

.crm-auth-divider::before,
.crm-auth-divider::after {
    content: "";
    height: 1px;
    background: #e4ebf7;
}

.crm-auth-page .otp-input-wrapper.crm-auth-otp-row {
    max-width: none;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.crm-auth-page .otp-input-wrapper input.crm-auth-otp-input {
    padding: 0;
    border: 1px solid #d4def1;
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--crm-auth-text);
    text-align: center;
    box-shadow: 0 10px 24px rgba(10, 27, 78, 0.06);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.crm-auth-page .otp-input-wrapper input.crm-auth-otp-input:focus {
    border-color: var(--crm-auth-blue);
    box-shadow: 0 0 0 4px rgba(40, 67, 223, 0.12);
}

.crm-auth-page .otp-input-wrapper input.crm-auth-otp-input.border-danger {
    border-color: #ef4444 !important;
}

.crm-auth-page .resendOtpText.crm-auth-actions {
    justify-content: center;
    margin: 0 0 2px;
    font-size: 15px;
}

.crm-auth-error,
.crm-auth-page .help-block,
.crm-auth-page .invalid-feedback,
.crm-auth-page .text-danger {
    color: #d92d20;
    font-size: 13px;
    font-weight: 450;
}

.crm-auth-success,
.crm-auth-page .alert-success {
    color: #067647;
    border-color: #abefc6;
    background-color: #ecfdf3;
}

.crm-auth-page .alert {
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .crm-auth-page--login .login-wrapper.crm-auth-shell {
        grid-template-columns: minmax(340px, 40vw) minmax(390px, 1fr);
        gap: 28px;
    }

    .crm-auth-side-panel {
        padding: 42px;
    }
}

@media (max-width: 900px) {
    .crm-auth-page--login .login-wrapper.crm-auth-shell,
    .crm-auth-page .login-wrapper.crm-auth-shell {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 18px;
    }

    .crm-auth-side-panel {
        display: none;
    }

    .crm-auth-page .login-form-wrapper.crm-auth-card {
        padding: 34px 24px;
    }

    .crm-auth-page .login-form-wrapper .login-title h3,
    .crm-auth-title {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .crm-auth-page {
        overflow-y: auto;
    }

    .crm-auth-page::before {
        right: -300px;
        top: 8%;
    }

    .crm-auth-brand img,
    .crm-auth-page .login-wrapper .login-wrapper-logo img {
        height: 46px;
    }

    .crm-auth-page .login-form-wrapper.crm-auth-card {
        padding: 28px 18px;
        border-radius: 16px;
    }

    .crm-auth-card-icon {
        width: 66px;
        height: 66px;
    }

    .crm-auth-card-icon svg {
        width: 30px;
        height: 30px;
    }

    .crm-auth-page .login-form-wrapper .input-group .form-control.crm-auth-input {
        height: 54px;
        padding-left: 50px;
    }

    .crm-auth-page .otp-input-wrapper.crm-auth-otp-row {
        gap: 8px;
    }

    .crm-auth-page .otp-input-wrapper input.crm-auth-otp-input {
        width: clamp(42px, 13vw, 50px) !important;
        height: 56px;
        font-size: 22px;
    }
}
