/* STANDARD LOGO & LOGIN BACKGROUND CLASSES - BUENTAKA LITE ERP */

.app-logo {
    object-fit: contain;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* 1. Sidebar Logo */
.sidebar-logo {
    max-height: 48px;
    padding: 2px 0;
    display: block;
}

/* 2. Header / Navbar Logo */
.header-logo {
    max-height: 40px;
    vertical-align: middle;
}

/* 3. Dashboard Welcome Logo */
.dashboard-logo {
    max-height: 50px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.08));
    align-self: center;
}

/* 4. Login Page Logo */
.login-logo {
    display: block;
    margin: 0 auto;
    padding: 0;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    line-height: 0;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.15));
}

/* --- STANDARISASI LOGIN BACKGROUND & OVERLAY --- */

.login-page-bg {
    margin: 0;
    padding: 0;
    background-image: url('../images/background/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(15, 23, 42, 0.35) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.login-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 3rem 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* --- STANDARISASI GLOBAL LOADER MODERN --- */

.global-loader-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 247, 255, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-logo {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    animation: loaderPulse 1.8s infinite ease-in-out;
    filter: drop-shadow(0 4px 10px rgba(13, 110, 253, 0.15));
}

.loader-spinner-box {
    position: relative;
    width: 42px;
    height: 42px;
    margin-bottom: 1.2rem;
}

.loader-spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(13, 110, 253, 0.12);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: loaderSpin 1s infinite linear;
}

.loader-text {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.loader-dots::after {
    content: '.';
    animation: loaderDots 1.5s infinite steps(4, end);
    display: inline-block;
    width: 1em;
    text-align: left;
}

@keyframes loaderPulse {
    0% { transform: scale(0.96); opacity: 0.85; }
    50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 6px 14px rgba(13, 110, 253, 0.25)); }
    100% { transform: scale(0.96); opacity: 0.85; }
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Media query penyesuaian proporsi khusus layar kecil (Mobile & Tablet) */
@media (max-width: 767.98px) {
    .sidebar-logo {
        max-height: 40px;
    }
    .header-logo {
        max-height: 34px;
    }
    .dashboard-logo {
        max-height: 42px;
    }
    .login-logo {
        max-height: 70px;
    }
    .login-card-modern {
        padding: 2.2rem 1.5rem;
        border-radius: 20px;
        margin: 0 1rem;
        width: auto;
    }
    .loader-logo {
        max-height: 60px;
    }
}
