/* ============================================
   LAYOUT - Clean Modern SaaS Theme
   File: styles/layout.css
   Version: 5.0 (BS3 Compatible)

   Auth layout: Light split-screen
   ============================================ */


/* ==========================================
   AUTH LAYOUT — Split Screen
   ========================================== */
.jpl-auth-layout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel: Brand */
.jpl-auth-panel-brand {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 2rem 2.5rem;
    min-height: 100vh;
}

.jpl-auth-panel-brand__bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
}

.jpl-auth-panel-brand__bg::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
}

.jpl-auth-panel-brand__header,
.jpl-auth-panel-brand__content,
.jpl-auth-panel-brand__footer {
    position: relative;
    z-index: 2;
}

/* Right Panel: Form */
.jpl-auth-panel-form {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
    position: relative;
    overflow-y: auto;
}

.jpl-auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}


/* ==========================================
   AUTH NAVBAR
   ========================================== */
.jpl-auth-navbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1.25rem 2rem;
}

.jpl-auth-navbar__actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
}


/* ==========================================
   AUTH FOOTER
   ========================================== */
.jpl-auth-footer {
    font-size: 0.75rem;
    color: var(--jpl-gray-400);
    text-align: center;
    padding: 1.5rem;
}

.jpl-auth-footer a {
    color: var(--jpl-gray-400);
    -webkit-transition: color var(--jpl-transition-fast);
    transition: color var(--jpl-transition-fast);
}

.jpl-auth-footer a:hover {
    color: var(--jpl-gray-600);
    text-decoration: none;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 991px) {
    .jpl-auth-layout {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .jpl-auth-panel-brand {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .jpl-auth-panel-form {
        padding: 2rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .jpl-auth-panel-brand {
        display: none;
    }

    .jpl-auth-panel-form {
        padding: 1.5rem 1.25rem;
        min-height: 100vh;
    }

    .jpl-auth-navbar {
        padding: 1rem 1.25rem;
    }

    .jpl-auth-form-wrapper {
        max-width: 100%;
    }

    .jpl-modal {
        max-width: 100%;
        border-radius: var(--jpl-radius-2xl) var(--jpl-radius-2xl) 0 0;
        margin-top: auto;
    }

    .jpl-hide-mobile { display: none !important; }
    .jpl-show-mobile { display: block !important; }
    .jpl-show-mobile-flex {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .jpl-auth-panel-form {
        padding: 1.25rem 1rem;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .jpl-hide-desktop { display: none !important; }
    .jpl-show-desktop { display: block !important; }
    .jpl-show-desktop-flex {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }
    .jpl-show-mobile { display: none !important; }
    .jpl-show-mobile-flex { display: none !important; }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .jpl-auth-panel-brand {
        -webkit-box-flex: 1.15;
        -ms-flex: 1.15;
        flex: 1.15;
        padding: 2.5rem 3rem;
    }
}