/* =========================================
   1. RESET & VARIABEL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
}

/* =========================================
   2. LAYOUT DESKTOP (SPLIT SCREEN)
   ========================================= */
.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* --- KIRI: HIJAU --- */
.login-brand-panel {
    display: flex;
    flex: 1.2;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    padding: 4rem;
    flex-direction: column;
    justify-content: center;
}

.brand-content {
    max-width: 480px;
    margin: 0 auto;
}

.brand-logo {
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.15);
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}

.brand-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.brand-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 12px;
}

/* --- KANAN: FORM --- */
.login-form-panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8fafc;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding-bottom: 80px
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.login-header-mobile {
    display: none; /* Sembunyikan di Desktop */
}

/* =========================================
   3. FORM ELEMENTS
   ========================================= */
.timestamp-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 13px;
    color: #059669;
    font-weight: 700;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    height: 52px;
    padding: 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
}

.btn-login {
    width: 100%;
    height: 52px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* =========================================
   4. TAMPILAN MOBILE (DI BAWAH 900PX)
   ========================================= */
@media (max-width: 900px) {
    /* 1. Sembunyikan panel kiri */
    .login-brand-panel { 
        display: none !important; 
    }

    /* 2. Panel Kanan jadi Full Screen dengan Background Hijau */
    .login-form-panel { 
        background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
        
        /* TAMBAHAN BARU: */
        padding: 20px 20px 80px 20px !important;
        width: 100vw !important;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        align-items: flex-start;
        padding-top: 40px;
    }

    /* 3. Kartu Putih Melayang di Tengah */
    .login-card {
        padding: 2.5rem 1.5rem !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
        
        /* TAMBAHAN BARU: */
        margin: 0 auto !important;
        margin-bottom: 40px !important;
    }

    /* 4. Munculkan Tulisan GrosirApp di HP */
    .login-header-mobile {
        display: block !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    .login-header-mobile h1 {
        color: #10b981 !important;
        font-size: 2rem !important;
        font-weight: 800 !important;
    }
    
    .login-header-mobile p {
        color: #64748b !important;
        font-size: 0.9rem !important;
    }
}