:root {
    --bs-primary: #293591;
    --bs-primary-rgb: 41, 53, 145;
    --bs-primary-contrast: #ffffff;
    --bs-link-color: #293591;
    --bs-link-hover-color: #ec7737;
    --brand-primary: #293591;
    --brand-accent: #ec7737;
    --brand-white: #ffffff;
}

body {
    background-color: var(--brand-white);
}

.auth-cover-brand {
    color: var(--brand-primary);
}

.authentication-wrapper .authentication-inner {
    background-color: var(--brand-white);
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
    color: var(--brand-white) !important;
}

a,
.text-primary {
    color: var(--brand-primary) !important;
}

a:hover {
    color: var(--brand-accent) !important;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .15rem rgba(41, 53, 145, .15);
}

#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.sk-fold {
    top: calc(50% - 15px);
    left: calc(50% - 15px);
}

.auth-cover-brand img {
    height: 64px;
    width: auto;
}

.authentication-wrapper:has(.partner-auth-art) .auth-cover-brand,
.authentication-wrapper:has(.partner-auth-shell) .auth-cover-brand {
    display: none !important;
}

.authentication-wrapper:has(.partner-auth-shell) {
    position: relative;
    overflow: hidden;
    background-color: #d7e3f8;
    background-image:
        radial-gradient(ellipse 48% 58% at 0% 18%, rgba(236, 119, 55, .55), transparent 62%),
        radial-gradient(ellipse 42% 50% at 100% 8%, rgba(96, 142, 245, .62), transparent 64%),
        radial-gradient(ellipse 55% 48% at 100% 100%, rgba(41, 53, 145, .48), transparent 66%),
        radial-gradient(ellipse 40% 42% at 6% 100%, rgba(255, 186, 130, .5), transparent 62%),
        linear-gradient(125deg, #f6dcc8 0%, #e7eefb 28%, #d5e3fa 62%, #c9d8f6 100%);
}

.partner-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.partner-bg-shapes span {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.partner-bg-shapes span:nth-child(1) {
    width: 340px;
    height: 340px;
    left: 4%;
    top: 8%;
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(255, 255, 255, .45);
}

.partner-bg-shapes span:nth-child(2) {
    width: 180px;
    height: 180px;
    right: 7%;
    top: 14%;
    border: 2px solid rgba(41, 53, 145, .22);
    background: rgba(255, 255, 255, .16);
}

.partner-bg-shapes span:nth-child(3) {
    width: 90px;
    height: 90px;
    right: 18%;
    bottom: 12%;
    background: rgba(236, 119, 55, .35);
}

.partner-bg-shapes span:nth-child(4) {
    width: 260px;
    height: 260px;
    left: 10%;
    bottom: 6%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .14);
}

.partner-bg-shapes span:nth-child(5) {
    width: 46px;
    height: 46px;
    left: 22%;
    top: 22%;
    background: #ec7737;
    opacity: .8;
}

.partner-bg-shapes span:nth-child(6) {
    width: 22px;
    height: 22px;
    right: 12%;
    bottom: 22%;
    background: #293591;
}

.authentication-wrapper:has(.partner-auth-shell) .authentication-inner {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.partner-auth-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-auth-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.05rem;
}

.partner-auth-brand img {
    height: 74px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}

.partner-auth-halo {
    position: absolute;
    z-index: 0;
    left: 3%;
    right: 3%;
    top: 74px;
    bottom: -14px;
    border-radius: 40px;
    background: linear-gradient(115deg, rgba(236, 119, 55, .7), rgba(41, 53, 145, .15) 42%, rgba(88, 132, 235, .72));
    filter: blur(18px);
    opacity: .8;
    pointer-events: none;
}

.partner-auth-modal {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 620px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(28, 42, 92, .16), 0 2px 10px rgba(28, 42, 92, .06);
}

.partner-auth-modal::before {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #293591 0%, #5b6bd6 48%, #ec7737 100%);
}

.partner-auth-art {
    flex: 1.15;
    display: flex;
    min-width: 0;
    min-height: 0;
    background: #d7e6fb;
    padding: 0;
    overflow: hidden;
}

.partner-auth-art .login-banner {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.partner-auth-side {
    flex: 0 0 390px;
    background: #fff;
    padding: 1.75rem 1.45rem !important;
}

.partner-login-card {
    width: 100%;
    max-width: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.partner-login-card .mb-4 {
    margin-bottom: .9rem !important;
}

@media (max-height: 860px) and (min-width: 992px) {
    .authentication-wrapper:has(.partner-auth-shell) .authentication-inner {
        padding: .8rem 1.25rem;
    }
    .partner-auth-brand {
        margin-bottom: .55rem;
    }
    .partner-auth-brand img {
        height: 52px;
    }
    .partner-auth-modal {
        min-height: 0;
        height: calc(100vh - 108px);
    }
}

@media (max-width: 991.98px) {
    .authentication-wrapper:has(.partner-auth-shell) .authentication-inner {
        padding: .75rem;
        align-items: flex-start;
    }
    .partner-auth-brand {
        margin-bottom: .65rem;
    }
    .partner-auth-brand img {
        height: 52px;
    }
    .partner-auth-modal {
        min-height: 0;
        flex-direction: column;
    }
    .partner-auth-art {
        flex: none;
        width: 100%;
        height: 230px;
    }
    .partner-auth-art .login-banner {
        height: 230px;
        object-fit: cover;
        object-position: center 30%;
    }
    .partner-auth-side {
        flex: none;
        width: 100%;
        padding: 1.15rem 1.1rem 1.2rem !important;
    }
}

@media (max-width: 575.98px) {
    .partner-auth-art,
    .partner-auth-art .login-banner {
        height: 190px;
    }
    .partner-auth-brand img {
        height: 46px;
    }
}

.partner-login-card h4 {
    color: #1c2670;
    font-weight: 700;
    letter-spacing: -.02em;
}

.partner-login-card .company-name {
    color: #6b7289;
    margin-bottom: .9rem;
}

.partner-login-card .form-control {
    min-height: 48px;
}

.partner-login-card .code-panel {
    border: 1px solid #e4e6ef;
    border-radius: 14px;
    background: #f7f8fc;
    padding: .7rem;
}

.partner-login-card .code-visual {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .7rem;
}

.partner-login-card .code-visual img {
    display: block;
    width: 100%;
    height: 78px;
    flex: 1;
    min-width: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e4e7f2;
}

.partner-login-card #refreshCaptcha {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: #293591;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-login-card #refreshCaptcha:hover {
    background: #ec7737;
}

.partner-login-card .login-steps {
    display: grid;
    gap: .5rem;
}

.partner-login-card .login-step {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #3d4258;
    font-size: .86rem;
}

.partner-login-card .login-step span {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #293591;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-login-card .btn-primary {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 600;
}

.partner-login-card .captcha-input {
    background: #fff;
    letter-spacing: .12em;
    font-weight: 700;
}

.partner-login-card .qr-box {
    display: inline-block;
    padding: 10px;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    background: #fff;
}

.partner-login-card .secret-key {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f7f8fc;
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    padding: .7rem .8rem;
    word-break: break-all;
}

.partner-login-card #code {
    letter-spacing: .35em;
    font-size: 1.35rem;
    text-align: center;
    font-weight: 700;
}

.partner-login-card .back-login {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: 0;
    width: 100%;
    color: #293591;
}
