:root {
    --erp-auth-primary: #2246a8;
    --erp-auth-primary-dark: #18357f;
    --erp-auth-accent: #13b8a6;
    --erp-auth-ink: #172033;
    --erp-auth-muted: #697386;
    --erp-auth-border: #e4e7ec;
    --erp-auth-surface: #ffffff;
}

.erp-auth-shell,
.erp-auth-shell * {
    box-sizing: border-box;
}

.erp-auth-shell {
    position: fixed;
    inset: 0;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 32px;
    direction: rtl;
    background: #f5f7fb;
    color: var(--erp-auth-ink);
}

.erp-auth-shell__backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.erp-auth-shell__orb {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(2px);
}

.erp-auth-shell__orb--primary {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -90px;
    background: radial-gradient(circle, rgba(79, 70, 229, .16) 0%, rgba(79, 70, 229, 0) 70%);
}

.erp-auth-shell__orb--accent {
    width: 430px;
    height: 430px;
    bottom: -190px;
    left: -130px;
    background: radial-gradient(circle, rgba(6, 182, 212, .13) 0%, rgba(6, 182, 212, 0) 70%);
}

.erp-auth-shell__grid {
    position: absolute;
    inset: 0;
    opacity: .36;
    background-image: linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
    background-size: 42px 42px;
}

.erp-auth-shell__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    width: min(1180px, 100%);
    min-height: min(720px, calc(100dvh - 64px));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    background: var(--erp-auth-surface);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .12), 0 8px 30px rgba(15, 23, 42, .06);
}

.erp-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: 52px;
    color: #fff;
    background: radial-gradient(circle at 10% 90%, rgba(6, 182, 212, .30), transparent 35%), radial-gradient(circle at 90% 10%, rgba(129, 140, 248, .22), transparent 35%), linear-gradient(145deg, #161b3d 0%, #202558 52%, #272b67 100%);
}

    .erp-auth-brand::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        left: -220px;
        top: 145px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 50%;
    }

.erp-auth-brand__top,
.erp-auth-brand__content,
.erp-auth-brand__footer {
    position: relative;
    z-index: 2;
}

.erp-auth-brand__logo {
    display: inline-flex;
    width: min(430px, 100%);
    align-items: center;
    color: #fff;
}

    .erp-auth-brand__logo:hover {
        color: #fff;
    }

.erp-auth-brand__logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 142px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .24));
}

.erp-auth-brand__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    margin-block: 18px 24px;
}

.erp-auth-brand__illustration {
    display: flex;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    margin: 4px -18px 0;
}

    .erp-auth-brand__illustration img {
        display: block;
        width: min(520px, 100%);
        height: auto;
        max-height: 330px;
        object-fit: contain;
        filter: drop-shadow(0 26px 42px rgba(0, 0, 0, .20));
    }

.erp-auth-brand__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.erp-auth-brand__feature {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
    background: rgba(255, 255, 255, .055);
}

.erp-auth-brand__feature-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: #a5f3fc;
}

.erp-auth-brand__feature > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.erp-auth-brand__feature strong {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.erp-auth-brand__feature small {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, .45);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-auth-brand__footer {
    color: rgba(255, 255, 255, .36);
    font-size: 10px;
}

.erp-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 60px 64px;
    background: linear-gradient(180deg, #fff, #fefefe);
}

.erp-auth-card {
    width: 100%;
    max-width: 440px;
}

.erp-auth-mobile-brand {
    display: none;
}

.erp-auth-card__header {
    margin-bottom: 30px;
}

.erp-auth-card__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--erp-auth-primary);
    font-size: 11px;
    font-weight: 700;
}

.erp-auth-card__header h2 {
    margin: 0;
    color: var(--erp-auth-ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.7px;
}


.erp-login-form .form-label {
    font-size: 13.5px;
    line-height: 1.8;
}

.erp-auth-input {
    position: relative;
}

    .erp-auth-input .form-control {
        min-height: 58px;
        padding-right: 48px;
        padding-left: 48px;
        border-color: var(--erp-auth-border);
        border-radius: 13px;
        background: #fcfcfd !important;
        color: var(--erp-auth-ink);
        font-size: 14.5px;
        font-weight: 500;
        transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    }

        .erp-auth-input .form-control::placeholder {
            color: #a7b0bf;
            font-size: 13.5px;
            font-weight: 400;
        }

        .erp-auth-input .form-control:hover {
            border-color: #cbd0d9;
        }

        .erp-auth-input .form-control:focus {
            border-color: var(--erp-auth-primary);
            background: #fff !important;
            box-shadow: 0 0 0 4px rgba(79, 70, 229, .08);
        }

.erp-auth-input__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    transform: translateY(-50%);
    color: #98a2b3;
    pointer-events: none;
}

.erp-auth-input__action {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #98a2b3;
    transition: color .2s ease, background-color .2s ease;
}

    .erp-auth-input__action:hover,
    .erp-auth-input__action:focus-visible {
        outline: none;
        background: #f2f4f7;
        color: #475467;
    }

.erp-auth-submit {
    min-height: 53px;
    border-radius: 13px;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(79, 70, 229, .20);
}

.erp-auth-card__security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: #98a2b3;
    font-size: 10px;
}

.erp-auth-card .fv-plugins-message-container .fv-help-block {
    margin-top: 6px;
    color: var(--bs-danger);
    font-size: 12px;
}

@media (max-width: 1050px) {
    .erp-auth-shell {
        padding: 20px;
    }

    .erp-auth-shell__container {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
        min-height: calc(100dvh - 40px);
    }

    .erp-auth-brand {
        padding: 40px;
    }

    .erp-auth-brand__illustration {
        min-height: 235px;
        margin-inline: -26px;
    }

        .erp-auth-brand__illustration img {
            max-height: 285px;
        }

    .erp-auth-brand__features {
        grid-template-columns: 1fr;
    }

    .erp-auth-main {
        padding: 50px 44px;
    }
}

@media (max-width: 780px) {
    .erp-auth-shell {
        position: fixed;
        inset: 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: block;
        overflow-y: auto;
        padding: 0;
        background: #fff;
    }

    .erp-auth-shell__container {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .erp-auth-brand {
        display: none;
    }

    .erp-auth-main {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        padding: max(34px, env(safe-area-inset-top)) 28px max(30px, env(safe-area-inset-bottom));
    }

    .erp-auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 430px;
        margin: 0 auto 42px;
        color: var(--erp-auth-ink);
    }

        .erp-auth-mobile-brand a {
            display: inline-flex;
            width: min(280px, 80vw);
        }

    .erp-auth-mobile-brand__image {
        display: block;
        width: 100%;
        height: auto;
        max-height: 92px;
        object-fit: contain;
        object-position: right center;
    }

    .erp-auth-card {
        max-width: 430px;
        margin: 0 auto;
    }
}

@media (max-width: 430px) {
    .erp-auth-main {
        padding-right: 20px;
        padding-left: 20px;
    }

    .erp-auth-mobile-brand {
        margin-bottom: 36px;
    }

    .erp-auth-card__header h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .erp-auth-shell *,
    .erp-auth-shell *::before,
    .erp-auth-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
