:root {
    --bs-primary: #18a9ff;
    --bs-primary-soft: #6cd5ff;
    --bs-primary-deep: #0066ff;
    --bs-accent: #72f2c7;
    --bs-ink: #eaf6ff;
    --bs-muted: #a7bdd3;
    --bs-card: rgba(4, 13, 27, .72);
    --bs-card-strong: rgba(7, 20, 38, .86);
    --bs-line: rgba(170, 218, 255, .22);
    --bs-line-strong: rgba(90, 195, 255, .48);
    --bs-shadow: 0 32px 90px rgba(0, 0, 0, .55);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

    body.bs-login-body {
        min-height: 100vh;
        overflow: hidden;
        color: var(--bs-ink);
        background: #03070f;
        font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    }

.bs-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0) scale(1.01);
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
}

.bs-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 50% 45%, rgba(24, 169, 255, .16), transparent 30%), radial-gradient(circle at 18% 80%, rgba(114, 242, 199, .13), transparent 24%), linear-gradient(115deg, rgba(2, 7, 17, .96) 0%, rgba(4, 14, 28, .74) 34%, rgba(2, 8, 18, .50) 62%, rgba(1, 6, 14, .82) 100%);
}

.bs-grid-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .42;
    background-image: linear-gradient(rgba(140, 217, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 217, 255, .06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
}

.bs-ambient {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    border-radius: 999px;
    opacity: .42;
}

.bs-ambient-one {
    width: 360px;
    height: 360px;
    left: -90px;
    top: 22%;
    background: rgba(24, 169, 255, .20);
}

.bs-ambient-two {
    width: 300px;
    height: 300px;
    right: 12%;
    bottom: -100px;
    background: rgba(114, 242, 199, .15);
    animation-delay: 1.2s;
}

.bs-brand-header {
    position: fixed;
    z-index: 6;
    top: 26px;
    left: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: bsHeaderIn .65s ease both;
}

.bs-brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #e8f0fe;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 18px 40px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
}

    .bs-brand-mark img {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

.bs-brand-eyebrow {
    color: var(--bs-primary-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1.15;
}

.bs-brand-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-shadow: 0 12px 34px rgba(0,0,0,.36);
}

.bs-status-chip {
    position: fixed;
    z-index: 6;
    top: 34px;
    right: 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(5, 15, 30, .68);
    border: 1px solid rgba(255,255,255,.14);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
    box-shadow: 0 18px 46px rgba(0,0,0,.38);
    backdrop-filter: blur(8px);
    animation: bsHeaderIn .65s ease both .08s;
}

    .bs-status-chip span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #45f08e;
        box-shadow: 0 0 0 6px rgba(69, 240, 142, .12), 0 0 22px rgba(69, 240, 142, .75);
    }

.bs-login-stage {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 112px 24px 42px;
}

.bs-login-card {
    position: relative;
    width: min(456px, calc(100vw - 40px));
    padding: 30px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045)), var(--bs-card);
    border: 1px solid var(--bs-line);
    box-shadow: var(--bs-shadow), inset 0 1px 0 rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
    transform-origin: center;
    animation: bsCardIn .75s cubic-bezier(.22,1,.36,1) both;
}

    .bs-login-card:before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, rgba(108,213,255,.78), rgba(255,255,255,.10), rgba(114,242,199,.42));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        opacity: .78;
    }

.bs-card-shine {
    position: absolute;
    inset: -120px -130px auto auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 169, 255, .32), transparent 68%);
    pointer-events: none;
}

.bs-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.bs-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(24, 169, 255, .13);
    border: 1px solid rgba(108, 213, 255, .36);
    color: #d9f3ff;
    font-size: 12px;
    font-weight: 850;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

    .bs-secure-pill i {
        color: var(--bs-primary-soft);
    }

.bs-live-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #45f08e;
    box-shadow: 0 0 0 7px rgba(69, 240, 142, .10), 0 0 22px rgba(69, 240, 142, .76);
    animation: bsLive 2.4s ease-in-out infinite;
}

.bs-title-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

    .bs-title-wrap h1 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(38px, 4vw, 54px);
        line-height: .96;
        letter-spacing: -.055em;
        font-weight: 950;
        text-shadow: 0 16px 40px rgba(0,0,0,.42);
    }

    .bs-title-wrap p {
        margin: 15px 0 0;
        color: var(--bs-muted);
        font-size: 15px;
        line-height: 1.55;
    }

    .bs-title-wrap b {
        color: #ffffff;
        font-weight: 900;
    }

.bs-login-form {
    position: relative;
    z-index: 1;
}

.bs-field {
    position: relative;
    margin-bottom: 16px;
}

    .bs-field > i {
        position: absolute;
        z-index: 2;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #b9d8ef;
        font-size: 15px;
        pointer-events: none;
        transition: color .18s ease, transform .18s ease;
    }

    .bs-field .form-control {
        width: 100%;
        height: 58px;
        margin: 0;
        padding: 0 58px 0 50px !important;
        border-radius: 19px !important;
        border: 1px solid rgba(180, 225, 255, .18) !important;
        background: rgba(8, 21, 39, .72) !important;
        color: #ffffff !important;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: .01em;
        text-align: left;
        outline: none !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.18);
        transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
    }

        .bs-field .form-control::placeholder {
            color: rgba(207, 226, 244, .62);
            font-weight: 650;
        }

        .bs-field .form-control:hover {
            background: rgba(10, 27, 49, .86) !important;
            border-color: rgba(108, 213, 255, .36) !important;
        }

        .bs-field .form-control:focus {
            background: rgba(9, 26, 48, .94) !important;
            border-color: var(--bs-line-strong) !important;
            box-shadow: 0 0 0 4px rgba(24, 169, 255, .16), 0 18px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08) !important;
            transform: translateY(-1px);
        }

    .bs-field:focus-within > i {
        color: var(--bs-primary-soft);
        transform: translateY(-50%) scale(1.05);
    }

.toggle-pwd {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 12px;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #d8ebff;
    background: rgba(255,255,255,.07);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

    .toggle-pwd:hover {
        color: #ffffff;
        background: rgba(24, 169, 255, .20);
        transform: translateY(-50%) scale(1.03);
    }

    .toggle-pwd:focus,
    .toggle-pwd:active {
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(24, 169, 255, .13) !important;
    }

.bs-login-button {
    position: relative;
    width: 100%;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    color: #00131f !important;
    font-weight: 950;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #17a7ff 0%, #66d8ff 52%, #8ef7dc 100%);
    box-shadow: 0 18px 42px rgba(24, 169, 255, .34), inset 0 1px 0 rgba(255,255,255,.55);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .bs-login-button:before {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-120%);
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
        transition: transform .65s ease;
    }

    .bs-login-button:hover {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow: 0 24px 54px rgba(24, 169, 255, .48), inset 0 1px 0 rgba(255,255,255,.65);
    }

        .bs-login-button:hover:before {
            transform: translateX(120%);
        }

    .bs-login-button i,
    .bs-login-button span {
        position: relative;
        z-index: 1;
    }

.bs-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(209, 228, 246, .62);
    font-size: 12px;
    font-weight: 700;
}

.invalid-feedback {
    margin-left: 8px;
    color: #ffb3b3;
    font-weight: 700;
}

.was-validated .form-control:invalid {
    border-color: rgba(255, 118, 118, .72) !important;
    box-shadow: 0 0 0 4px rgba(255, 76, 76, .12) !important;
}

.bs-password-modal .modal-content {
    color: #eaf6ff;
    border: 1px solid rgba(170, 218, 255, .22);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 22, 43, .94), rgba(4, 12, 24, .96));
    box-shadow: 0 34px 88px rgba(0,0,0,.60);
    backdrop-filter: blur(10px);
}

.bs-password-modal .modal-header,
.bs-password-modal .modal-footer {
    border-color: rgba(255,255,255,.10);
    padding: 18px 20px;
}

.bs-password-modal .modal-body {
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(24,169,255,.15), transparent 35%);
}

.bs-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .bs-modal-title img {
        border-radius: 14px;
        background: rgba(255,255,255,.08);
        padding: 4px;
    }

.bs-modal-copy {
    color: var(--bs-muted);
    margin-bottom: 18px;
}

.bs-label {
    color: #dceeff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bs-modal-field .form-control {
    height: 52px;
    border-radius: 17px !important;
}

.pwd-rules {
    margin: 12px 0 4px;
    padding: 13px 16px 13px 32px;
    color: var(--bs-muted);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.7;
}

    .pwd-rules li.ok {
        color: #72f2c7;
    }

    .pwd-rules li.bad {
        color: #ff8888;
    }

.pwd-match {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 800;
}

    .pwd-match.ok {
        color: #72f2c7;
    }

    .pwd-match.bad {
        color: #ff8888;
    }

.close {
    text-shadow: none;
    opacity: .82;
}

    .close:hover {
        opacity: 1;
    }

@keyframes bsCardIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(.975);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes bsHeaderIn {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bsPulse {
    0% {
        transform: scale(.96);
        opacity: .55;
    }

    100% {
        transform: scale(1.06);
        opacity: .85;
    }
}

@keyframes bsLive {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(.78);
    }
}

@keyframes bsGridFloat {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 72px 72px, 72px 72px;
    }
}

@media (max-width: 992px) {
    body.bs-login-body {
        overflow-y: auto;
    }

    .bs-brand-header {
        position: relative;
        top: auto;
        left: auto;
        margin: 24px 22px 0;
        z-index: 6;
    }

    .bs-status-chip {
        display: none;
    }

    .bs-login-stage {
        min-height: calc(100vh - 90px);
        padding: 32px 18px 28px;
        place-items: start center;
    }

    .bs-login-card {
        width: 100%;
        max-width: 460px;
        padding: 24px;
        border-radius: 28px;
    }
}

@media (max-width: 520px) {
    .bs-brand-title {
        font-size: 14px;
    }

    .bs-brand-eyebrow {
        font-size: 10px;
    }

    .bs-title-wrap h1 {
        font-size: 39px;
    }

    .bs-login-card {
        padding: 22px;
    }

    .bs-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


.bs-login-body.bs-video-loading .bs-bg-video {
    opacity: 0;
}

.bs-bg-video {
    opacity: 1;
    transition: opacity .45s ease;
}

@media (max-width: 768px) {
    .bs-bg-video {
        transform: translateZ(0) scale(1.04);
    }

    .bs-grid-layer,
    .bs-ambient {
        display: none;
    }

    .bs-login-card,
    .bs-brand-mark,
    .bs-status-chip {
        backdrop-filter: none;
    }
}





/* ===== SWEETALERT2 - BORDERSYNC THEME ===== */

.swal2-popup {
    background: rgba(15, 25, 40, 0.95) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 180, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 30px 25px;
}

/* TITLE */
.swal2-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 26px !important;
    letter-spacing: 0.5px;
}

/* TEXT */
.swal2-html-container {
    color: #cfd8e3 !important;
    font-size: 17px !important;
    line-height: 1.5;
}

/* ICON BASE */
.swal2-icon {
    border-width: 3px !important;
}

    /* SUCCESS */
    .swal2-icon.swal2-success {
        border-color: rgba(0, 255, 180, 0.4) !important;
        color: #00ffb4 !important;
    }

    /* ERROR */
    .swal2-icon.swal2-error {
        border-color: rgba(255, 90, 90, 0.4) !important;
        color: #ff5a5a !important;
    }

    /* WARNING */
    .swal2-icon.swal2-warning {
        border-color: rgba(255, 200, 0, 0.4) !important;
        color: #ffc400 !important;
    }

    /* INFO */
    .swal2-icon.swal2-info {
        border-color: rgba(0, 180, 255, 0.4) !important;
        color: #00b4ff !important;
    }

    /* QUESTION */
    .swal2-icon.swal2-question {
        border-color: rgba(120, 120, 255, 0.4) !important;
        color: #7c7cff !important;
    }

/* BUTTON */
.swal2-confirm {
    background: linear-gradient(135deg, #1ea6ff, #00e0b8) !important;
    border-radius: 12px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 180, 255, 0.3);
    transition: all 0.25s ease;
}

    /* BUTTON HOVER */
    .swal2-confirm:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(0, 180, 255, 0.5);
    }

/* CANCEL BUTTON */
.swal2-cancel {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cfd8e3 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* LOADER */
.swal2-loader {
    border-color: #00b4ff transparent #00e0b8 transparent !important;
}

/* ANIMATION */
.swal2-show {
    animation: swalFadeIn 0.25s ease-out;
}

@keyframes swalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* BACKDROP */
.swal2-container {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
