.bg-main {
    /* background-image: url(assets/img/login/main-bg.png); */
    background-image: url('../img/login/bg-fix.png');
    background-position: center;
    width: 100%;
    height: 100dvh;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.absolute {
    position: absolute;
}

.logo-pu {
    object-fit: cover;
}

.w-100 {
    width: 100% !important;
}

.p-main {
    padding: 10px;
}

.btn-help {
    background: linear-gradient(180deg, rgba(188, 188, 188, 0.6) 0%, rgba(60, 60, 60, 0.6) 100%) !important;
    border-radius: 10px;
    padding: 4px 14px !important;
    height: auto;
    /* height: 35px !important; */
}

.outline-warning {
    border: 0.6px solid #FFB300;
}

.outline-info {
    border: 0.6px solid #00AAFF
}

.middle {
    vertical-align: middle;
}

.d-flex {
    display: flex;
    gap: 10px;
}

.container-login {
    position: relative;
    height: calc(100% - 75.5px);
    max-width: 100%;

    & .card-login {
        /* border: 2px solid #4387C5; */
        background: #B9B9B966;
        border-radius: 16px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
        /* backdrop-filter: blur(3px); */
        backdrop-filter: blur(2px);
        /* box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; */

        /* Default Desktop */
        width: 500px;
        max-width: 98%;
        z-index: 1;
        /* Proteksi agar tidak pecah di layar sangat kecil */

        /* Media Query untuk Mobile */
        @media screen and (max-width: 768px) {
            width: 400px;
        }

        /* Tambahan: Jika layar HP sangat kecil (misal < 400px) */
        @media screen and (max-width: 420px) {
            width: 98%;
        }
    }

    & .card-forgot {
        /* border: 2px solid #4387C5; */
        background: #B9B9B966;
        border-radius: 16px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
        /* backdrop-filter: blur(3px); */
        backdrop-filter: blur(2px);
        /* box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; */

        /* Default Desktop */
        width: 700px;
        max-width: 98%;
        z-index: 1;
        /* Proteksi agar tidak pecah di layar sangat kecil */

        /* Media Query untuk Mobile */
        @media screen and (max-width: 768px) {
            width: 400px;
        }

        /* Tambahan: Jika layar HP sangat kecil (misal < 400px) */
        @media screen and (max-width: 420px) {
            width: 98%;
        }
    }
}

/* Tambahkan ini untuk border gradien melengkung */
.card-login::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Menempel ke semua sisi */
    border-radius: 16px;
    padding: 2px;
    /* Ini adalah ketebalan border Anda */
    background: linear-gradient(180deg, #66AF6F 0%, #7B76B9 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    /* Agar tidak menghalangi klik pada input */
}

.card-forgot::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Menempel ke semua sisi */
    border-radius: 16px;
    padding: 2px;
    /* Ini adalah ketebalan border Anda */
    background: linear-gradient(180deg, #66AF6F 0%, #7B76B9 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    /* Agar tidak menghalangi klik pada input */
}

.border-box {
    /* 1. Tentukan ketebalan dan gaya border (harus solid) */
    border: 2px solid;
    /* 2. Masukkan sumber gradien */
    border-image-source: linear-gradient(180deg, #66AF6F 0%, #7B76B9 100%);
    /* 3. WAJIB: Slice menentukan bagaimana gambar gradien dipotong */
    border-image-slice: 1;
    border-radius: 16px;
}

.main-txt {
    color: #FFFFFF;
    font-weight: 700;
    font-style: Bold;
    font-size: 26px;
    line-height: 100%;
    letter-spacing: 0%;
    /* text-align: center; */

    & .txt-yellow {
        color: #FFC335
    }
}

.btn-green-new {
    background-color: #0DC322B2 !important;
    color: #FFFFFF;
    padding: 14px 43px;
    border-radius: 8px;
    border: unset;
    backdrop-filter: blur(1px);
    cursor: pointer;
}

.btn-danger-new {
    background-color: #D41D20B2 !important;
    color: #FFFFFF;
    padding: 14px 43px;
    border-radius: 8px;
    border: unset;
    backdrop-filter: blur(1px);
    cursor: pointer;
}

.txt-white {
    color: #FFFFFF;
}

.w-100 {
    width: 100%;
}

.secondary-txt {
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
}

.p-10 {
    padding: 10px !important;
}

.container-role {
    /* padding-top: 20px; */
    padding: 20px;

    & .content-role {
        /* display: flex;
        justify-content: center; */
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        /* background: #1F3368; */
        padding: 7px;
        color: #D3D3D3;
        border-radius: 56px;

        background: #FFFFFF1A;
        border: 1px solid #FFFFFF;
        backdrop-filter: blur(20px);

        & .role:not(.role-ttp) {
            padding: 5px;
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            text-align: center;
            align-content: center;

            background-color: #1F3368;
            color: #FFC335;
            border-radius: 16px;
        }

        & .role-ttp {
            padding: 5px;
            font-size: 10px;
            font-weight: 500;
            cursor: pointer;
            text-align: center;
            align-content: center;

            background-color: #FFC335;
            color: #1F3368;
            border-radius: 16px;
        }

        & .role.active {
            /* color: #FFC335;
            background: #FFFFFF1A; */
            /* border-radius: 16px; */
            background-color: #FFFFFF;
            color: #1F3368;
            padding: 6px 8px;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
    }
}

.btn-login {
    background: linear-gradient(90deg, #DFA929 0%, #FF871F 100%) !important;
    box-shadow: 0px 0px 33.75px 0px #F0952333 !important;
    color: #FFFFFF;
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary {
    background: #060F55B2 !important;
    border-radius: 5px;
    font-weight: 300;
    font-style: Light;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
}

.btn-secondary {
    background: #484848B2 !important;
    border-radius: 5px;
    font-weight: 300;
    font-style: Light;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
}

input.browser-default {
    background: #FFFFFF;
    height: 36px !important;
    border-radius: 5px !important;
    vertical-align: middle;
    align-content: center;
}

/* Mengatur tinggi container utama */
.select2-container .select2-selection--single {
    height: 36px !important;
    /* Sesuaikan tinggi */
    display: flex;
    align-items: center;
    border-radius: 5px !important;
}

/* Menyesuaikan posisi teks di dalamnya agar tetap di tengah vertikal */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    /* Harus sama dengan height di atas */
    padding-left: 12px;
    border-radius: 5px !important;
}

/* Menyesuaikan posisi panah dropdown */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    /* Harus sama dengan height di atas */
    border-radius: 5px !important;
}


.info-pembukaan {
    padding-top: 20px;

    & .content-pembukaan {
        background: #FFFFFF1A;
        padding: 5px;
        border-radius: 15px;
        color: #FFFFFF;
        font-weight: 600;
        font-size: 12px;
        line-height: 100%;
        /* display: flex; */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: fit-content;
        justify-self: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(20px);
    }
}

.copyright {
    position: absolute;
    justify-self: center;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
}

.pt-15 {
    padding-top: 15px;
}

.icon-input-right {
    top: 21px;
}

.modal {
    overflow: hidden !important;
    overflow-y: scroll !important;
    width: 45%;
    max-height: 73%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 12px !important;
}

.modal {
    background: #FFFFFF1A;
    backdrop-filter: blur(20px);
    /* color: #FFFFFF; */
    overflow: unset !important;
    overflow-y: unset !important;
}

.txt-field-name {
    color: #FFFFFF;
}

.modal::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Menempel ke semua sisi */
    border-radius: 16px;
    padding: 2px;
    /* Ini adalah ketebalan border Anda */
    background: linear-gradient(180deg, #66AF6F 0%, #7B76B9 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    /* Agar tidak menghalangi klik pada input */
}

#modal-new-p3a .container-new {
    max-height: 60dvh;
    overflow: overlay;
}

#modal-new-p3a .container-new .container-regis {
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
}

.container-new::-webkit-scrollbar {
    width: 10px;
}

/* 3. The Track (the background of the scrollbar) */
.container-new::-webkit-scrollbar-track {
    background: #D9D9D9;
    /* Light grey as seen in your image */
    border-radius: 10px;
}

/* 4. The Thumb (the draggable part with the gradient) */
.container-new::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1C3A94 0%, #7A99D9 100%);
    border-radius: 10px;
    /* Optional: adds a little space around the thumb to make it look "floating" */
    /* border: 2px solid transparent; */
    background-clip: content-box;
}

/* Hover effect for better UX */
.container-new::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #254bbd 0%, #8fb1f3 100%);
    background-clip: content-box;
}

.main-title {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 24px;
}

.icon-middle {
    vertical-align: -webkit-baseline-middle;
}

.txt-semi-title {
    font-size: 22px;
    color: #FFFFFF;
    font-weight: 600;
    padding-top: 20px !important;
}

.pb-15 {
    padding-bottom: 15px;
}

/* --- Mobile Media Query --- */
@media screen and (max-width: 768px) {
    .logo-pu {
        width: 100% !important;
    }

    .btn-help {
        padding: 0px 3px 0px 12px !important;
        height: auto;
    }

    .container-login {
        /* height: calc(100% - 44.9px) !important; */
        height: calc(100% - 70.9px) !important;
    }

    .secondary-txt {
        font-size: 12px !important;
    }

    .modal {
        width: 90% !important;
        max-height: 78% !important;
    }

    .pt-10-insmall {
        padding-top: 10px;
    }

    .card-forgot {
        width: 500px !important;
    }
}