/* =========================================================
   VARIABLES
========================================================= */

:root {

    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #6d28d9;

    --background: #07070b;
    --surface: rgba(17, 17, 25, .72);
    --surface-solid: #111119;

    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border: rgba(255, 255, 255, .09);

    --input-bg: rgba(255, 255, 255, .045);

    --shadow:
        0 30px 80px rgba(0, 0, 0, .45);

}


/* =========================================================
   LIGHT
========================================================= */

[data-bs-theme="light"] {

    --background: #f5f5f7;

    --surface: rgba(255, 255, 255, .78);

    --surface-solid: #ffffff;

    --text: #18181b;

    --text-secondary: #71717a;

    --text-muted: #a1a1aa;

    --border: rgba(0, 0, 0, .08);

    --input-bg: rgba(0, 0, 0, .025);

    --shadow:
        0 30px 80px rgba(0, 0, 0, .12);

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing: border-box;

}


html,
body {

    width: 100%;

    min-height: 100%;

}


body {

    margin: 0;

    overflow-x: hidden;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        var(--background);

    color:
        var(--text);

    transition:
        background-color .3s ease,
        color .3s ease;

}


/* =========================================================
   BACKGROUND
========================================================= */

.background {

    position: fixed;

    inset: 0;

    overflow: hidden;

    z-index: -1;

    background:
        var(--background);

}


/* =========================================================
   GRID
========================================================= */

.grid-background {

    position: absolute;

    inset: 0;

    opacity: .22;

    background-image:

        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size:
        60px 60px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 0%,
            transparent 75%
        );

}


/* =========================================================
   NOISE
========================================================= */

.noise {

    position: absolute;

    inset: 0;

    opacity: .035;

    pointer-events: none;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");

}


/* =========================================================
   ORBS
========================================================= */

.orb {

    position: absolute;

    border-radius: 50%;

    filter:
        blur(1px);

    opacity: .55;

    animation:
        float 12s ease-in-out infinite;

}


.orb-1 {

    width: 500px;

    height: 500px;

    top: -220px;

    left: -150px;

    background:
        radial-gradient(
            circle,
            rgba(139,92,246,.30),
            transparent 68%
        );

}


.orb-2 {

    width: 600px;

    height: 600px;

    right: -220px;

    bottom: -280px;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.22),
            transparent 68%
        );

    animation-delay:
        -4s;

}


.orb-3 {

    width: 350px;

    height: 350px;

    top: 30%;

    left: 45%;

    background:
        radial-gradient(
            circle,
            rgba(236,72,153,.12),
            transparent 70%
        );

    animation-delay:
        -7s;

}


@keyframes float {

    0%,
    100% {

        transform:
            translate3d(0, 0, 0)
            scale(1);

    }

    50% {

        transform:
            translate3d(30px, -25px, 0)
            scale(1.05);

    }

}


/* =========================================================
   CONTAINER
========================================================= */

.login-container {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    min-height: 720px;

    margin:
        30px auto;

    display: grid;

    grid-template-columns:
        1.08fr .92fr;

    border:
        1px solid var(--border);

    border-radius: 28px;

    overflow: hidden;

    background:
        var(--surface);

    backdrop-filter:
        blur(30px);

    -webkit-backdrop-filter:
        blur(30px);

    box-shadow:
        var(--shadow);

}


/* =========================================================
   VISUAL PANEL
========================================================= */

.visual-panel {

    position: relative;

    min-height: 720px;

    padding:
        55px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:

        radial-gradient(
            circle at 15% 20%,
            rgba(139,92,246,.20),
            transparent 32%
        ),

        radial-gradient(
            circle at 85% 75%,
            rgba(59,130,246,.15),
            transparent 32%
        ),

        linear-gradient(
            135deg,
            rgba(139,92,246,.10),
            transparent 60%
        );

    border-right:
        1px solid var(--border);

}


/* =========================================================
   BRAND
========================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: .13em;

}


.brand-logo {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #6366f1
        );

    box-shadow:
        0 10px 30px rgba(139,92,246,.35);

}


/* =========================================================
   VISUAL TEXT
========================================================= */

.visual-text {

    max-width: 560px;

}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 20px;

    color:
        var(--accent-light);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .18em;

}


.eyebrow::before {

    content: "";

    width: 25px;

    height: 1px;

    background:
        var(--accent-light);

}


.visual-text h1 {

    margin: 0;

    font-size:
        clamp(44px, 5vw, 70px);

    line-height:
        .98;

    letter-spacing:
        -.055em;

    font-weight:
        750;

}


.visual-text h1 span {

    background:
        linear-gradient(
            100deg,
            #a78bfa,
            #60a5fa,
            #f0abfc
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


.visual-text p {

    max-width: 500px;

    margin:
        28px 0 0;

    color:
        var(--text-secondary);

    font-size: 15px;

    line-height: 1.8;

}


/* =========================================================
   STATS
========================================================= */

.visual-stats {

    display: flex;

    align-items: center;

    gap: 30px;

}


.stat {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.stat strong {

    font-size: 18px;

    font-weight: 700;

}


.stat span {

    color:
        var(--text-muted);

    font-size: 11px;

}


.stat-divider {

    width: 1px;

    height: 30px;

    background:
        var(--border);

}


/* =========================================================
   ORBITS
========================================================= */

.visual-orbit {

    position: absolute;

    border:
        1px solid rgba(139,92,246,.15);

    border-radius: 50%;

    pointer-events: none;

}


.orbit-1 {

    width: 520px;

    height: 520px;

    right: -310px;

    top: 60px;

}


.orbit-2 {

    width: 340px;

    height: 340px;

    right: -170px;

    top: 150px;

}


.orbit-dot {

    position: absolute;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    top: 50%;

    left: 0;

    background:
        #a78bfa;

    box-shadow:
        0 0 20px #a78bfa;

}


/* =========================================================
   VISUAL FOOTER
========================================================= */

.visual-footer {

    display: flex;

    justify-content: space-between;

    color:
        var(--text-muted);

    font-size: 11px;

}


/* =========================================================
   LOGIN PANEL
========================================================= */

.login-panel {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        55px;

    background:
        rgba(0,0,0,.04);

}


/* =========================================================
   LOGIN BOX
========================================================= */

.login-box {

    width: 100%;

    max-width: 390px;

}


/* =========================================================
   MOBILE BRAND
========================================================= */

.mobile-brand {

    display: none;

}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {

    margin-bottom: 30px;

}


.login-icon {

    width: 48px;

    height: 48px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    color:
        var(--accent-light);

    background:
        rgba(139,92,246,.12);

    border:
        1px solid rgba(139,92,246,.16);

    font-size: 20px;

}


.login-eyebrow {

    display: block;

    margin-bottom: 8px;

    color:
        var(--accent);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .15em;

}


.login-header h2 {

    margin: 0;

    font-size: 34px;

    font-weight: 750;

    letter-spacing: -.04em;

}


.login-header p {

    margin:
        10px 0 0;

    color:
        var(--text-secondary);

    font-size: 14px;

}


/* =========================================================
   FIELD
========================================================= */

.field-group {

    margin-bottom: 20px;

}


.field-label {

    display: block;

    margin-bottom: 8px;

    color:
        var(--text);

    font-size: 12px;

    font-weight: 600;

}


.password-label-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.forgot-link {

    color:
        var(--accent-light);

    font-size: 11px;

    text-decoration: none;

}


.forgot-link:hover {

    color:
        var(--accent);

}


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {

    position: relative;

}


.input-icon {

    position: absolute;

    z-index: 2;

    top: 50%;

    left: 17px;

    transform:
        translateY(-50%);

    color:
        var(--text-muted);

    font-size: 15px;

    pointer-events: none;

}


.premium-input {

    width: 100%;

    height: 54px;

    padding:
        0 48px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    outline: none;

    color:
        var(--text);

    background:
        var(--input-bg);

    box-shadow: none !important;

    font-size: 13px;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;

}


.premium-input::placeholder {

    color:
        var(--text-muted);

}


.premium-input:focus {

    border-color:
        rgba(139,92,246,.7);

    background:
        rgba(139,92,246,.045);

    box-shadow:
        0 0 0 4px
        rgba(139,92,246,.08) !important;

}


/* =========================================================
   PASSWORD
========================================================= */

.password-toggle {

    position: absolute;

    z-index: 3;

    top: 50%;

    right: 14px;

    transform:
        translateY(-50%);

    width: 30px;

    height: 30px;

    border: 0;

    background: transparent;

    color:
        var(--text-muted);

    cursor: pointer;

}


.password-toggle:hover {

    color:
        var(--text);

}


/* =========================================================
   REMEMBER
========================================================= */

.login-options {

    margin:
        4px 0 22px;

}


.remember {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        var(--text-secondary);

    font-size: 12px;

    cursor: pointer;

}


.remember input {

    display: none;

}


.custom-checkbox {

    width: 17px;

    height: 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 5px;

    background:
        var(--input-bg);

    transition:
        .2s ease;

}


.custom-checkbox i {

    display: none;

    color: white;

    font-size: 11px;

}


.remember input:checked
+ .custom-checkbox {

    border-color:
        var(--accent);

    background:
        var(--accent);

}


.remember input:checked
+ .custom-checkbox i {

    display: block;

}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {

    position: relative;

    width: 100%;

    height: 56px;

    border: 0;

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            110deg,
            #7c3aed,
            #8b5cf6,
            #6366f1
        );

    box-shadow:
        0 15px 30px
        rgba(124,58,237,.25);

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.login-button::before {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 70%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.18),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .6s ease;

}


.login-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 18px 40px
        rgba(124,58,237,.35);

}


.login-button:hover::before {

    left: 140%;

}


.button-content {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

}


.button-loading {

    display: none;

    align-items: center;

    justify-content: center;

    gap: 9px;

}


.login-button.loading
.button-content {

    display: none;

}


.login-button.loading
.button-loading {

    display: flex;

}


/* =========================================================
   DIVIDER
========================================================= */

.divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        25px 0 18px;

}


.divider span {

    flex: 1;

    height: 1px;

    background:
        var(--border);

}


.divider small {

    color:
        var(--text-muted);

    font-size: 9px;

    letter-spacing: .12em;

    text-transform: uppercase;

}


/* =========================================================
   SECURITY
========================================================= */

.security-message {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color:
        var(--text-muted);

    font-size: 10px;

}


.security-message i {

    color:
        #22c55e;

    font-size: 14px;

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    margin-top: 30px;

    text-align: center;

    color:
        var(--text-muted);

    font-size: 11px;

}


.login-footer a {

    margin-left: 5px;

    color:
        var(--accent-light);

    text-decoration: none;

    font-weight: 600;

}


.login-footer a:hover {

    color:
        var(--accent);

}


/* =========================================================
   THEME BUTTON
========================================================= */

.theme-toggle {

    position: absolute;

    top: 24px;

    right: 24px;

    width: 38px;

    height: 38px;

    border:
        1px solid var(--border);

    border-radius: 50%;

    background:
        var(--input-bg);

    color:
        var(--text-secondary);

    cursor: pointer;

    transition:
        .2s ease;

}


.theme-toggle:hover {

    color:
        var(--text);

    background:
        var(--surface);

}


/* =========================================================
   SWEET ALERT
========================================================= */

.swal2-popup {

    border:
        1px solid var(--border) !important;

    border-radius:
        18px !important;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .login-container {

        grid-template-columns:
            1fr;

        max-width: 520px;

        min-height: auto;

        margin:
            20px auto;

    }


    .visual-panel {

        display: none;

    }


    .login-panel {

        min-height:
            680px;

        padding:
            60px 45px;

    }


    .mobile-brand {

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 10px;

        margin-bottom: 45px;

        font-size: 13px;

        font-weight: 700;

        letter-spacing: .12em;

    }


    .mobile-brand .brand-logo {

        width: 36px;

        height: 36px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .login-container {

        width:
            100%;

        min-height:
            100vh;

        min-height:
            100dvh;

        margin: 0;

        border: 0;

        border-radius: 0;

        background:
            transparent;

        box-shadow:
            none;

    }


    .login-panel {

        min-height:
            100vh;

        min-height:
            100dvh;

        padding:
            45px 24px;

    }


    .login-box {

        max-width:
            100%;

    }


    .theme-toggle {

        top: 18px;

        right: 18px;

    }


    .mobile-brand {

        margin-bottom:
            40px;

    }


    .login-header h2 {

        font-size:
            30px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

    }

}